diff options
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.38 2001/08/31 19:46:07 roberto Exp $ | 2 | ** $Id: llex.h,v 1.39 2001/11/16 16:29:10 roberto Exp $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -14,7 +14,7 @@ | |||
14 | #define FIRST_RESERVED 257 | 14 | #define FIRST_RESERVED 257 |
15 | 15 | ||
16 | /* maximum length of a reserved word */ | 16 | /* maximum length of a reserved word */ |
17 | #define TOKEN_LEN (sizeof(l_s("function"))/sizeof(l_char)) | 17 | #define TOKEN_LEN (sizeof("function")/sizeof(char)) |
18 | 18 | ||
19 | 19 | ||
20 | /* | 20 | /* |
@@ -49,7 +49,7 @@ typedef struct Token { | |||
49 | 49 | ||
50 | 50 | ||
51 | typedef struct LexState { | 51 | typedef struct LexState { |
52 | l_charint current; /* current character */ | 52 | int current; /* current character (charint) */ |
53 | Token t; /* current token */ | 53 | Token t; /* current token */ |
54 | Token lookahead; /* look ahead token */ | 54 | Token lookahead; /* look ahead token */ |
55 | struct FuncState *fs; /* `FuncState' is private to the parser */ | 55 | struct FuncState *fs; /* `FuncState' is private to the parser */ |
@@ -64,9 +64,9 @@ typedef struct LexState { | |||
64 | void luaX_init (lua_State *L); | 64 | void luaX_init (lua_State *L); |
65 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); | 65 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); |
66 | int luaX_lex (LexState *LS, SemInfo *seminfo); | 66 | int luaX_lex (LexState *LS, SemInfo *seminfo); |
67 | void luaX_checklimit (LexState *ls, int val, int limit, const l_char *msg); | 67 | void luaX_checklimit (LexState *ls, int val, int limit, const char *msg); |
68 | void luaX_error (LexState *ls, const l_char *s, int token); | 68 | void luaX_error (LexState *ls, const char *s, int token); |
69 | void luaX_token2str (int token, l_char *s); | 69 | void luaX_token2str (int token, char *s); |
70 | 70 | ||
71 | 71 | ||
72 | #endif | 72 | #endif |