aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/llex.h b/llex.h
index 69242cee..d90ff2d7 100644
--- a/llex.h
+++ b/llex.h
@@ -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
51typedef struct LexState { 51typedef 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 {
64void luaX_init (lua_State *L); 64void luaX_init (lua_State *L);
65void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); 65void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source);
66int luaX_lex (LexState *LS, SemInfo *seminfo); 66int luaX_lex (LexState *LS, SemInfo *seminfo);
67void luaX_checklimit (LexState *ls, int val, int limit, const l_char *msg); 67void luaX_checklimit (LexState *ls, int val, int limit, const char *msg);
68void luaX_error (LexState *ls, const l_char *s, int token); 68void luaX_error (LexState *ls, const char *s, int token);
69void luaX_token2str (int token, l_char *s); 69void luaX_token2str (int token, char *s);
70 70
71 71
72#endif 72#endif