• Bart Trojanowski's avatar
    fix build issues with flex ver 2.5 · 608a96c7
    Bart Trojanowski authored
    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 ‘;’, ‘,’ or ‘)’ 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.
    608a96c7
emp_ematch.l 3.32 KB