Work around build breakages with GCC 4.2.

Reported by:	tinderbox
This commit is contained in:
Jung-uk Kim 2013-05-23 05:42:35 +00:00
parent 57778110dc
commit 9c5a52cf88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250926
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