diff options
Diffstat (limited to 'bin/expr')
-rw-r--r-- | bin/expr/expr.gpr | 6 | ||||
-rw-r--r-- | bin/expr/expr.y | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/expr/expr.gpr b/bin/expr/expr.gpr new file mode 100644 index 0000000..676bdf6 --- /dev/null +++ b/bin/expr/expr.gpr @@ -0,0 +1,6 @@ +project expr extends "template/bin.gpr" is + + for Main use (project'Name); + for Object_Dir use External ("BUILDROOT") & "/" & project'Name; + +end expr; diff --git a/bin/expr/expr.y b/bin/expr/expr.y index e9b6212..2760888 100644 --- a/bin/expr/expr.y +++ b/bin/expr/expr.y @@ -105,7 +105,7 @@ expr: item { $$ = $1; } int eval; /* compile regular expression */ - if ((eval = regcomp(&rp, $3, REG_BASIC)) != 0) { + if ((eval = regcomp(&rp, $3, 0)) != 0) { char errbuf[256]; (void)regerror(eval, &rp, errbuf, sizeof(errbuf)); yyerror("%s", errbuf); |