|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: parse.y,v 1.51 2013/10/21 08:48:22 phessler Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: parse.y,v 1.52 2013/11/25 12:58:42 benno Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -386,9 +386,9 @@ lookup(char *s) |
|
|
|
|
|
|
|
|
#define MAXPUSHBACK 128 |
|
|
#define MAXPUSHBACK 128 |
|
|
|
|
|
|
|
|
char *parsebuf; |
|
|
|
|
|
|
|
|
u_char *parsebuf; |
|
|
int parseindex; |
|
|
int parseindex; |
|
|
char pushback_buffer[MAXPUSHBACK]; |
|
|
|
|
|
|
|
|
u_char pushback_buffer[MAXPUSHBACK]; |
|
|
int pushback_index = 0; |
|
|
int pushback_index = 0; |
|
|
|
|
|
|
|
|
int |
|
|
int |
|
@ -481,8 +481,8 @@ findeol(void) |
|
|
int |
|
|
int |
|
|
yylex(void) |
|
|
yylex(void) |
|
|
{ |
|
|
{ |
|
|
char buf[8096]; |
|
|
|
|
|
char *p; |
|
|
|
|
|
|
|
|
u_char buf[8096]; |
|
|
|
|
|
u_char *p; |
|
|
int quotec, next, c; |
|
|
int quotec, next, c; |
|
|
int token; |
|
|
int token; |
|
|
|
|
|
|
|
@ -523,7 +523,7 @@ yylex(void) |
|
|
yyerror("string too long"); |
|
|
yyerror("string too long"); |
|
|
return (findeol()); |
|
|
return (findeol()); |
|
|
} |
|
|
} |
|
|
*p++ = (char)c; |
|
|
|
|
|
|
|
|
*p++ = c; |
|
|
} |
|
|
} |
|
|
yylval.v.string = strdup(buf); |
|
|
yylval.v.string = strdup(buf); |
|
|
if (yylval.v.string == NULL) |
|
|
if (yylval.v.string == NULL) |
|
|