ifdef strdup
brange-dead version of list of special characters to make stupid lex accept it. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1228 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -7,15 +7,19 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "symbol.h"
|
||||
#include "parse.h"
|
||||
|
||||
#ifndef HAVE_STRDUP
|
||||
char *strdup(char *);
|
||||
#endif
|
||||
|
||||
void error_message(char *, ...);
|
||||
|
||||
static unsigned lineno = 1;
|
||||
static char filename[256];
|
||||
/* ","|"{"|"}"|"("|")"|"["|"]"|"|" { return *yytext; } */
|
||||
%}
|
||||
|
||||
|
||||
@@ -33,7 +37,9 @@ OPTIONAL { return OPTIONAL; }
|
||||
BEGIN { return TBEGIN; }
|
||||
END { return END; }
|
||||
DEFINITIONS { return DEFINITIONS; }
|
||||
,|\{|\}|\(|\)|\[|\]|\| { return *yytext; }
|
||||
[,{}()|] { return *yytext; }
|
||||
"[" { return *yytext; }
|
||||
"]" { return *yytext; }
|
||||
::= { return EEQUAL; }
|
||||
--[^\n]*\n { ; }
|
||||
-?[0-9]+ { yylval.constant = atoi(yytext); return CONSTANT; }
|
||||
|
Reference in New Issue
Block a user