summaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-19 15:05:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-19 15:05:14 -0300
commitfeb2083730c718b8fa7de6824db1c1dfe7a5542a (patch)
tree29dda71837b7085a1d87caf8c95022442f0c70a8 /llex.h
parent8d2baf719cf8687dba1648da4c5d9450d0bb2c14 (diff)
downloadlua-github-feb2083730c718b8fa7de6824db1c1dfe7a5542a.tar.gz
better control of source name
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llex.h b/llex.h
index 8dba8721..8528dc20 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
/*
-** $Id: llex.h,v 1.27 2000/05/25 18:59:59 roberto Exp roberto $
+** $Id: llex.h,v 1.28 2000/05/26 14:04:04 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -51,11 +51,12 @@ typedef struct LexState {
struct lua_State *L;
struct zio *z; /* input stream */
int linenumber; /* input line counter */
+ TString *source; /* current source name */
} LexState;
void luaX_init (lua_State *L);
-void luaX_setinput (lua_State *L, LexState *LS, ZIO *z);
+void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source);
int luaX_lex (LexState *LS);
void luaX_checklimit (LexState *ls, int val, int limit, const char *msg);
void luaX_syntaxerror (LexState *ls, const char *s, const char *token);