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 07e0bf05..28b86ddb 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.h,v 1.32 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: llex.h,v 1.33 2001/01/10 16:40:56 roberto Exp roberto $
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("function")) 17#define TOKEN_LEN (sizeof(l_s("function")))
18 18
19 19
20/* 20/*
@@ -63,10 +63,10 @@ typedef struct LexState {
63void luaX_init (lua_State *L); 63void luaX_init (lua_State *L);
64void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); 64void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source);
65int luaX_lex (LexState *LS, SemInfo *seminfo); 65int luaX_lex (LexState *LS, SemInfo *seminfo);
66void luaX_checklimit (LexState *ls, int val, int limit, const char *msg); 66void luaX_checklimit (LexState *ls, int val, int limit, const l_char *msg);
67void luaX_syntaxerror (LexState *ls, const char *s, const char *token); 67void luaX_syntaxerror (LexState *ls, const l_char *s, const l_char *token);
68void luaX_error (LexState *ls, const char *s, int token); 68void luaX_error (LexState *ls, const l_char *s, int token);
69void luaX_token2str (int token, char *s); 69void luaX_token2str (int token, l_char *s);
70 70
71 71
72#endif 72#endif