Work around build breakages with GCC 4.2.

Reported by:	tinderbox
This commit is contained in:
jkim 2013-05-23 05:42:35 +00:00
parent 68b09f240d
commit b6198521c8
8 changed files with 13 additions and 0 deletions

View File

@ -52,6 +52,7 @@ int depth;
int lineno;
#define DP do { } while (0)
#define YY_DECL int yylex(void)
%}
%option noinput

View File

@ -40,6 +40,8 @@ int lineno = 1;
int yylex(void);
#define YY_DECL int yylex(void)
%}
%option nounput

View File

@ -46,6 +46,7 @@ static void init_strbuf(void);
static void add_str(const char *);
static int bc_yyinput(char *, int);
#define YY_DECL int yylex(void)
#define YY_NO_INPUT
#undef YY_INPUT
#define YY_INPUT(buf,retval,max) \

View File

@ -31,6 +31,8 @@ extern int32_t yylval;
int32_t number(void);
int32_t parse_radix(void);
extern int yylex(void);
#define YY_DECL int yylex(void)
%}
delim [ \t\n]

View File

@ -47,6 +47,8 @@ __FBSDID("$FreeBSD$");
#include "ldef.h"
#include "y.tab.h"
#include "extern.h"
#define YY_DECL int yylex(void)
%}
ODIGIT [0-7]

View File

@ -37,6 +37,8 @@
#include "parser.h"
int yylex (void);
#define YY_DECL int yylex(void)
%}
%option yylineno noyywrap nounput noinput

View File

@ -93,6 +93,7 @@ unsigned int octal(const char *);
unsigned int hex(const char *);
int yyerror(const char *);
#define YY_DECL int yylex(void)
%}
%option nounput

View File

@ -42,6 +42,8 @@ static ssize_t text2lval(size_t triml, size_t trimr, int tovar);
static int instr;
static int lineno = 1;
#define YY_DECL int yylex(void)
%}
%option noinput