aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
commit39b79783297bee79db9853b63d199e120a009a8f (patch)
treec738c621c4c28d8822c2f785400786301985273b /llex.h
parentd164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff)
downloadlua-39b79783297bee79db9853b63d199e120a009a8f.tar.gz
lua-39b79783297bee79db9853b63d199e120a009a8f.tar.bz2
lua-39b79783297bee79db9853b63d199e120a009a8f.zip
first (big) step to support wide chars
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