From 4b05e0e49c979e4a49f37a441556ee11cd6a0c5e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 5 Jul 2019 21:25:26 -0500 Subject: build: add gprbuild projects --- bin/expr/expr.gpr | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bin/expr/expr.gpr (limited to 'bin/expr') 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; -- cgit v1.2.3-70-g09d2 From 5b502a0ebc714bac3e679334c30faaf12e295cfb Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 5 Jul 2019 22:15:43 -0500 Subject: bin/expr: POSIX BRE is default and has no flag --- bin/expr/expr.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/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); -- cgit v1.2.3-70-g09d2