projects
/
henge
/
webcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system 3
[henge/webcc.git]
/
src
/
apc
/
lexer.c
diff --git
a/src/apc/lexer.c
b/src/apc/lexer.c
index
dd1eb81
..
c092e5e
100644
(file)
--- a/
src/apc/lexer.c
+++ b/
src/apc/lexer.c
@@
-20,7
+20,7
@@
#include <stdlib.h>
#include <dirent.h>
/* Local */
#include <stdlib.h>
#include <dirent.h>
/* Local */
-
//
#include "parser.tab.h"
+#include "parser.tab.h"
#ifndef DE_STACKSIZE
#define DE_STACKSIZE 1024
#endif
#ifndef DE_STACKSIZE
#define DE_STACKSIZE 1024
#endif
@@
-41,7
+41,7
@@
int scanner(void);
static inline
int dredge_current_depth(void);
extern //bison
static inline
int dredge_current_depth(void);
extern //bison
-
int
yylval;
+
YYSTYPE
yylval;
static
struct tok
{ int lval;
static
struct tok
{ int lval;
@@
-110,11
+110,11
@@
int lexer
{ if (TK_EMPTY)
{ TK_INIT();
if (scanner() == 0)
{ if (TK_EMPTY)
{ TK_INIT();
if (scanner() == 0)
- { yylval = 0;
+ { yylval
.NUM
= 0;
return 0;
}
}
return 0;
}
}
- yylval = TK_POPI();
+ yylval
.NUM
= TK_POPI();
return TK_POPI();
}
return TK_POPI();
}