mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
fixes for latest flex
This commit is contained in:
parent
ce44d350b7
commit
7ca2aae6f0
1 changed files with 20 additions and 0 deletions
|
@ -57,10 +57,28 @@ static __attribute__ ((unused)) const char rcsid[] =
|
|||
#include "type.h"
|
||||
#include "qc-parse.h"
|
||||
|
||||
#ifndef YY_PROTO
|
||||
# define YY_PROTO(x) x
|
||||
#else
|
||||
# define YY_FLEX_REALLOC_HACK
|
||||
#endif
|
||||
int yyget_lineno (void);
|
||||
FILE *yyget_in (void);
|
||||
FILE *yyget_out (void);
|
||||
int yyget_leng (void);
|
||||
char *yyget_text (void);
|
||||
void yyset_lineno (int line_number);
|
||||
void yyset_in (FILE * in_str);
|
||||
void yyset_out (FILE * out_str);
|
||||
int yyget_debug (void);
|
||||
void yyset_debug (int bdebug);
|
||||
int yylex_destroy (void);
|
||||
|
||||
#define YY_NO_UNPUT
|
||||
#define YY_DECL int yylex YY_PROTO(( void ))
|
||||
YY_DECL;
|
||||
|
||||
|
||||
int type_or_name (char *token);
|
||||
|
||||
int do_grab (char *token);
|
||||
|
@ -621,4 +639,6 @@ make_string (char *token)
|
|||
return save_string (str->str);
|
||||
}
|
||||
|
||||
#ifdef YY_FLEX_REALLOC_HACK
|
||||
static void *(*const yy_flex_realloc_hack)(void *,yy_size_t) = yy_flex_realloc;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue