diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
| commit | 39b79783297bee79db9853b63d199e120a009a8f (patch) | |
| tree | c738c621c4c28d8822c2f785400786301985273b /llex.h | |
| parent | d164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff) | |
| download | lua-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.h | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -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 { | |||
| 63 | void luaX_init (lua_State *L); | 63 | void luaX_init (lua_State *L); |
| 64 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); | 64 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source); |
| 65 | int luaX_lex (LexState *LS, SemInfo *seminfo); | 65 | int luaX_lex (LexState *LS, SemInfo *seminfo); |
| 66 | void luaX_checklimit (LexState *ls, int val, int limit, const char *msg); | 66 | void luaX_checklimit (LexState *ls, int val, int limit, const l_char *msg); |
| 67 | void luaX_syntaxerror (LexState *ls, const char *s, const char *token); | 67 | void luaX_syntaxerror (LexState *ls, const l_char *s, const l_char *token); |
| 68 | void luaX_error (LexState *ls, const char *s, int token); | 68 | void luaX_error (LexState *ls, const l_char *s, int token); |
| 69 | void luaX_token2str (int token, char *s); | 69 | void luaX_token2str (int token, l_char *s); |
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | #endif | 72 | #endif |
