diff options
author | Lua Team <team@lua.org> | 1999-07-08 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 1999-07-08 12:00:00 +0000 |
commit | afb67002d94ef22c14741910ba83da262a6e9338 (patch) | |
tree | b51ab3502813f590a4b115997f6fe41da43b6586 /src/llex.h | |
parent | 377347776f1f3d820f92151f70bec667f96d5e6b (diff) | |
download | lua-github-3.2.tar.gz |
Lua 3.23.2
Diffstat (limited to 'src/llex.h')
-rw-r--r-- | src/llex.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,6 +1,6 @@ /* -** $Id: llex.h,v 1.9 1998/06/19 16:14:09 roberto Exp $ -** Lexical Analizer +** $Id: llex.h,v 1.12 1999/06/17 17:04:03 roberto Exp $ +** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -25,12 +25,14 @@ enum RESERVED { NAME, CONC, DOTS, EQ, GE, LE, NE, NUMBER, STRING, EOS}; -#define MAX_IFS 5 +#ifndef MAX_IFS +#define MAX_IFS 5 /* arbitrary limit */ +#endif /* "ifstate" keeps the state of each nested $if the lexical is dealing with. */ struct ifState { - int elsepart; /* true if its in the $else part */ + int elsepart; /* true if it's in the $else part */ int condition; /* true if $if condition is true */ int skip; /* true if part must be skipped */ }; @@ -56,7 +58,7 @@ void luaX_setinput (LexState *LS, ZIO *z); int luaX_lex (LexState *LS); void luaX_syntaxerror (LexState *ls, char *s, char *token); void luaX_error (LexState *ls, char *s); -void luaX_token2str (LexState *ls, int token, char *s); +void luaX_token2str (int token, char *s); #endif |