[GRASS5] PATCH: sql expression parser

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Jun 13 06:44:30 EDT 2005


On Mon, 13 Jun 2005, Glynn Clements wrote:

> The attached patch (which supersedes the previous version) should
> handle boolean operations correctly, and fix the bug.

With that latest version of the patch plus the comments surrounded by %{ / 
%}, there is now only one error with Solaris lex: the undefined macro 
YY_CURRENT_BUFFER. I'd guess this could be worked around fairly easily?
Full output below.
Paul



/usr/ccs/bin/lex lex.l
482/1200 nodes(%e), 1047/2500 positions(%p), 144/500 (%n), 8347 
transitions,
448/10000 packed char classes(%k),  1318/2000 packed transitions(%a), 
1655/12000 output slots(%o)
gcc -I/home/pkelly/grass/grass6/include 
-I/home/pkelly/grass/grass6/dist.sparc-sun-solaris2.8/include/grass  -O2 
-Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\" 
-DPACKAGE=\""grasslibs"\"  -I/home/pkelly/grass/grass6/include 
-I/home/pkelly/grass/grass6/dist.sparc-sun-solaris2.8/include/grass \
         -o OBJ.sparc-sun-solaris2.8/lex.yy.o -c lex.yy.c
lex.l:40: warning: return type defaults to `int'
lex.l: In function `yylex':
lex.l:41: warning: unused variable `yyprevious'
lex.l:54: warning: label `yyfussy' defined but not used
lex.l: In function `my_yyinput':
lex.l:226: warning: passing arg 3 of `memcpy' as unsigned due to prototype
lex.l: In function `yyerror':
lex.l:244: warning: implicit declaration of function `yy_flush_buffer'
lex.l:244: error: `YY_CURRENT_BUFFER' undeclared (first use in this 
function)
lex.l:244: error: (Each undeclared identifier is reported only once
lex.l:244: error: for each function it appears in.)
lex.l: At top level:
lex.l:698: warning: missing braces around initializer
lex.l:698: warning: (near initialization for `yycrank[0]')
lex.l:1114: warning: missing braces around initializer
lex.l:1114: warning: (near initialization for `yysvec[0]')
lex.l:1312: warning: ignoring #pragma ident
make: *** [OBJ.sparc-sun-solaris2.8/lex.yy.o] Error 1




More information about the grass-dev mailing list