]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
fix build issues with flex ver 2.5
authorBart Trojanowski <bart@jukie.net>
Mon, 19 Apr 2010 13:12:57 +0000 (09:12 -0400)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 22 Apr 2010 22:27:42 +0000 (15:27 -0700)
commit608a96c727db69498c1310f21e73045c95f2ad5d
treec76d3d60eca82b9e1fa929acd89a8d9b55064b58
parent4ec1933dfddfccb112f6664fa5466db548363f81
fix build issues with flex ver 2.5

When building on an old environment, the flex generated
tc/emp_ematch.lex.c file would not compile.  The error given was:

emp_ematch.lex.c:1686: error: expected â\80\98\80\99, â\80\98\80\99 or â\80\98\80\99 before numeric constant

The emp_ematch.l uses 'str' as a start symbol name, and  flex would create
a '#define str 1' statement.  This particular version of flex,
unfortunately, used 'str' as names of string variables in the generated
parser functions.  This is line 1686 in the generated file:

YY_BUFFER_STATE ematch__scan_string (yyconst char * str )

This patch just substitutes 'str' for 'lexstr' in emp_ematch.l to avoid
the collision.
tc/emp_ematch.l