/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* regexp interface and partial implementation
* what a novel approach
* don't do it again
*
* OBSOLETE: use <regex.h>
*/
#ifndef _REGEXP_H
#define _REGEXP_H
typedef struct
{
char* re_loc1;
char* re_loc2;
char* re_locs;
int re_circf;
int re_nbra;
int re_nodelim;
int re_sed;
} regexp_t;
#if _BLD_ast && defined(__EXPORT__)
#define extern __EXPORT__
#endif
extern char* _re_putc(int);
#undef extern
#ifndef _REGEXP_DECLARE
char*
{
register int c;
static const char* prev;
#ifdef INIT
INIT;
#endif
re->re_nodelim = 0;
{
if (c != seof)
{
UNGETC(c);
}
{ ERROR(41); }
}
UNGETC(c);
prev = 0;
for (;;)
{
{
{ ERROR(36); }
UNGETC(c);
break;
}
if (c == '\\')
{
_re_putc(c);
{ ERROR(36); }
}
_re_putc(c);
}
{ ERROR(c); }
}
#endif
#endif