File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ if [ x"$RE2C_BIN" = x ]; then
5454 exit 2
5555fi
5656
57+ re2c_vernum=` re2c --vernum 2> /dev/null`
58+ if test -z " $re2c_vernum " ; then
59+ echo " error: unable to locate the re2c"
60+ exit 2
61+ fi
62+
5763if [ x" $CC " == x ]; then
5864 if [ x" $GCC_BIN " != x ]; then
5965 export CC=" gcc"
@@ -138,7 +144,11 @@ rm -f \
138144
139145rm -rf .libs
140146
141- ${RE2C_BIN} ${RE2C_FLAGS} -W --no-generation-date -o scanner.c scanner.re
147+ if test " $re2c_vernum " -gt " 9999" ; then
148+ ${RE2C_BIN} ${RE2C_FLAGS} -W --no-generation-date -o scanner.c scanner.re
149+ else
150+ ${RE2C_BIN} ${RE2C_FLAGS} --no-generation-date -o scanner.c scanner.re
151+ fi
142152
143153# Compile lemon
144154${CC} lemon.c -o lemon
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ array(2) {
240240 ["value " ]=>
241241 string(10 ) "909.999999 "
242242 ["file " ]=>
243- string(66 ) "/home/klay/workspace/c/php-zephir-parser /tests/data/base/types.zep "
243+ string(%s ) "%s /tests/data/base/types.zep "
244244 ["line " ]=>
245245 int(12 )
246246 ["char " ]=>
You can’t perform that action at this time.
0 commit comments