From 29ede6aa13144ff7b69c57a87be1ee93f57ae896 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Nov 1999 11:12:07 -0200 Subject: first implementation of multiple states (reentrant code). --- llex.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llex.h') diff --git a/llex.h b/llex.h index 20928075..fbdc875d 100644 --- a/llex.h +++ b/llex.h @@ -1,5 +1,5 @@ /* -** $Id: llex.h,v 1.13 1999/07/22 19:29:42 roberto Exp roberto $ +** $Id: llex.h,v 1.14 1999/08/16 20:52:00 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -47,6 +47,7 @@ typedef struct LexState { int current; /* look ahead character */ int token; /* look ahead token */ struct FuncState *fs; /* 'FuncState' is private for the parser */ + struct lua_State *L; union { real r; TaggedString *ts; @@ -58,8 +59,8 @@ typedef struct LexState { } LexState; -void luaX_init (void); -void luaX_setinput (LexState *LS, ZIO *z); +void luaX_init (lua_State *L); +void luaX_setinput (lua_State *L, LexState *LS, ZIO *z); int luaX_lex (LexState *LS); void luaX_syntaxerror (LexState *ls, const char *s, const char *token); void luaX_error (LexState *ls, const char *s); -- cgit v1.2.3-55-g6feb