diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-20 19:20:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-20 19:20:36 -0200 |
commit | 8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490 (patch) | |
tree | 13d09f704662cafa2597e77c92611b468e4741c9 /lex.c | |
parent | fe8338335dfb4bf37e6b164cb55bfcc94ec6563d (diff) | |
download | lua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.tar.gz lua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.tar.bz2 lua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.zip |
better control of integer types and their limits
Diffstat (limited to 'lex.c')
-rw-r--r-- | lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | char *rcs_lex = "$Id: lex.c,v 2.11 1994/11/14 21:40:14 roberto Exp $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.12 1994/11/22 16:13:45 roberto Stab $"; |
2 | 2 | ||
3 | 3 | ||
4 | #include <ctype.h> | 4 | #include <ctype.h> |
@@ -195,7 +195,7 @@ int yylex (void) | |||
195 | case 'Z': | 195 | case 'Z': |
196 | case '_': | 196 | case '_': |
197 | { | 197 | { |
198 | int res; | 198 | Word res; |
199 | do { save_and_next(); } while (isalnum(current) || current == '_'); | 199 | do { save_and_next(); } while (isalnum(current) || current == '_'); |
200 | *yytextLast = 0; | 200 | *yytextLast = 0; |
201 | res = findReserved(yytext); | 201 | res = findReserved(yytext); |