Return to expr.y CVS log | Up to [cvs.NetBSD.org] / src / bin / expr |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.29, 2003/02/14 16:17:30 | version 1.30, 2004/03/20 08:45:05 | ||
---|---|---|---|
|
|
||
int eval; | int eval; | ||
/* compile regular expression */ | /* compile regular expression */ | ||
if ((eval = regcomp(&rp, $3, 0)) != 0) { | if ((eval = regcomp(&rp, $3, REG_BASIC)) != 0) { | ||
char errbuf[256]; | char errbuf[256]; | ||
(void)regerror(eval, &rp, errbuf, sizeof(errbuf)); | (void)regerror(eval, &rp, errbuf, sizeof(errbuf)); | ||
yyerror("%s", errbuf); | yyerror("%s", errbuf); |