diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-21 15:13:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-21 15:13:56 -0300 |
commit | b69e712713785394ceefa11ab3e5f9636abea733 (patch) | |
tree | 0fa1b8b00ffbb5cfe0113d290b48b4fc528d2695 /llex.c | |
parent | f51775950737eb4d097cda0bba143973b5385947 (diff) | |
download | lua-b69e712713785394ceefa11ab3e5f9636abea733.tar.gz lua-b69e712713785394ceefa11ab3e5f9636abea733.tar.bz2 lua-b69e712713785394ceefa11ab3e5f9636abea733.zip |
new way to generate SETLINEs
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.63 2000/06/12 13:52:05 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.64 2000/06/19 18:05:14 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 | */ |
@@ -138,6 +138,7 @@ void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source) { | |||
138 | LS->z = z; | 138 | LS->z = z; |
139 | LS->fs = NULL; | 139 | LS->fs = NULL; |
140 | LS->linenumber = 1; | 140 | LS->linenumber = 1; |
141 | LS->lastline = 1; | ||
141 | LS->source = source; | 142 | LS->source = source; |
142 | next(LS); /* read first char */ | 143 | next(LS); /* read first char */ |
143 | if (LS->current == '#') { | 144 | if (LS->current == '#') { |