mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
Work around build breakages with GCC 4.2.
Reported by: tinderbox
This commit is contained in:
parent
57778110dc
commit
9c5a52cf88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250926
@ -52,6 +52,7 @@ int depth;
|
||||
int lineno;
|
||||
|
||||
#define DP do { } while (0)
|
||||
#define YY_DECL int yylex(void)
|
||||
%}
|
||||
|
||||
%option noinput
|
||||
|
@ -40,6 +40,8 @@ int lineno = 1;
|
||||
|
||||
int yylex(void);
|
||||
|
||||
#define YY_DECL int yylex(void)
|
||||
|
||||
%}
|
||||
|
||||
%option nounput
|
||||
|
@ -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) \
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -37,6 +37,8 @@
|
||||
#include "parser.h"
|
||||
|
||||
int yylex (void);
|
||||
|
||||
#define YY_DECL int yylex(void)
|
||||
%}
|
||||
|
||||
%option yylineno noyywrap nounput noinput
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user