/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1995-2012 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> *
* *
***********************************************************************/
#pragma prototyped
#include "sed.h"
{
int code;
int c;
int n;
if(!(c = *t->w) || c == '\n' || !(n = *(t->w + 1)) || n == '\n')
syntax("unterminated regular expression");
else if (c != n) {
if (code = regcomp((regex_t*)rebuf->w,(char*)t->w,reflags|REG_DELIMITED|REG_MUSTDELIM|((reflags®_LENIENT)?0:REG_ESCAPE)))
if (!sub && *t->w == 'I') {
if (!(reflags®_ICASE) && (code = regcomp((regex_t*)rebuf->w,(char*)t->w-((regex_t*)rebuf->w)->re_npat,reflags|REG_ICASE|REG_DELIMITED|REG_MUSTDELIM|((reflags®_LENIENT)?0:REG_ESCAPE))))
t->w++;
}
syntax("no previous regular expression");
else {
if (sub) {
}
t->w += 2;
}
return lastre;
}
void
{
}
}
int
{
int code;
return code;
}
int
{
word n;
int c;
return 0;
return 0;
}
return 1;
}