regexp.h revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
9da57d7b0ddd8d73b676ce12c040362132cdd538bt/* : : generated by proto : : */
9da57d7b0ddd8d73b676ce12c040362132cdd538bt/***********************************************************************
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* This software is part of the ast package *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Copyright (c) 1985-2008 AT&T Intellectual Property *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* and is licensed under the *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Common Public License, Version 1.0 *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* by AT&T Intellectual Property *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* A copy of the License is available at *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Information and Software Systems Research *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* AT&T Research *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Florham Park NJ *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Glenn Fowler <gsf@research.att.com> *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* David Korn <dgk@research.att.com> *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt* Phong Vo <kpv@research.att.com> *
9da57d7b0ddd8d73b676ce12c040362132cdd538bt***********************************************************************/
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China * regexp interface and partial implementation
9da57d7b0ddd8d73b676ce12c040362132cdd538bt * what a novel approach
9da57d7b0ddd8d73b676ce12c040362132cdd538bt * don't do it again
9da57d7b0ddd8d73b676ce12c040362132cdd538bt * OBSOLETE: use <regex.h>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#if !defined(__PROTO__)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#if !defined(__LINKAGE__)
9da57d7b0ddd8d73b676ce12c040362132cdd538bttypedef struct
9da57d7b0ddd8d73b676ce12c040362132cdd538btextern __MANGLE__ int _re_comp __PROTO__((regexp_t*, const char*, char*, unsigned int));
9da57d7b0ddd8d73b676ce12c040362132cdd538btextern __MANGLE__ int _re_exec __PROTO__((regexp_t*, const char*, const char*, int));
9da57d7b0ddd8d73b676ce12c040362132cdd538btextern __MANGLE__ char* _re_read __PROTO__((regexp_t*, const char*, char*, const char*, int));
9da57d7b0ddd8d73b676ce12c040362132cdd538bt_re_read __PARAM__((register regexp_t* re, const char* instring, char* ep, const char* endbuf, int seof), (re, instring, ep, endbuf, seof)) __OTORP__(register regexp_t* re; const char* instring; char* ep; const char* endbuf; int seof;){
9da57d7b0ddd8d73b676ce12c040362132cdd538bt register int c;
9da57d7b0ddd8d73b676ce12c040362132cdd538bt static const char* prev;
9da57d7b0ddd8d73b676ce12c040362132cdd538bt if ((c = GETC()) == seof || c == '\n' || c == -1 || c == 0)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt if ((c = GETC()) == seof || c == '\n' || c == -1 || c == 0)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt if (c == '\\')
9da57d7b0ddd8d73b676ce12c040362132cdd538bt if ((c = GETC()) == seof || c == '\n' || c == -1 || c == 0)