[qfcc] Fix some debian flex incompatibilities

I need upstream flex for its line handling and nicer interface, but
debian's flex is ancient and stuck with the legacy interface, and I want
QF to be buildable on at least sid.
This commit is contained in:
Bill Currie 2024-04-18 10:34:18 +09:00
parent 4e2d713400
commit 6266ac4d94

View file

@ -170,6 +170,12 @@ typedef enum {
rua_num_term,
} rua_term;
// for debian flex
#ifndef yystart
#define yystart() YY_START
#define yybuffer YY_BUFFER_STATE
#endif
#define YY_USER_ACTION \
update_loc (yylloc, yyleng); \
save_text (yylval, yytext, yyleng, yystart(), extra); \