summaryrefslogtreecommitdiff
path: root/src/llex.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1999-07-08 12:00:00 +0000
committerrepogen <>1999-07-08 12:00:00 +0000
commitafb67002d94ef22c14741910ba83da262a6e9338 (patch)
treeb51ab3502813f590a4b115997f6fe41da43b6586 /src/llex.h
parent377347776f1f3d820f92151f70bec667f96d5e6b (diff)
downloadlua-github-3.2.tar.gz
Lua 3.23.2
Diffstat (limited to 'src/llex.h')
-rw-r--r--src/llex.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/llex.h b/src/llex.h
index ba8c52a3..7c1a4be1 100644
--- a/src/llex.h
+++ b/src/llex.h
@@ -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