diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-04 15:47:59 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-04 15:47:59 -0200 |
commit | 568794956025183fc9a9b79e0c818a885e3d0aeb (patch) | |
tree | 02d1a74d7c9a16ca06e94ab4308694ad04f49012 /llex.c | |
parent | 19de5b22054f6da2c3e0eb3138cc7a1195aab4fd (diff) | |
download | lua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.gz lua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.bz2 lua-568794956025183fc9a9b79e0c818a885e3d0aeb.zip |
"lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state".
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.26 1998/12/27 20:25:20 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.27 1998/12/28 13:44:54 roberto Exp roberto $ |
3 | ** Lexical Analizer | 3 | ** Lexical Analizer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -20,9 +20,6 @@ | |||
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | int lua_debug=0; | ||
24 | |||
25 | |||
26 | #define next(LS) (LS->current = zgetc(LS->lex_z)) | 23 | #define next(LS) (LS->current = zgetc(LS->lex_z)) |
27 | 24 | ||
28 | 25 | ||
@@ -174,10 +171,10 @@ static void inclinenumber (LexState *LS) | |||
174 | readname(LS, buff); | 171 | readname(LS, buff); |
175 | switch (luaL_findstring(buff, pragmas)) { | 172 | switch (luaL_findstring(buff, pragmas)) { |
176 | case 0: /* debug */ | 173 | case 0: /* debug */ |
177 | if (!skip) lua_debug = 1; | 174 | if (!skip) L->debug = 1; |
178 | break; | 175 | break; |
179 | case 1: /* nodebug */ | 176 | case 1: /* nodebug */ |
180 | if (!skip) lua_debug = 0; | 177 | if (!skip) L->debug = 0; |
181 | break; | 178 | break; |
182 | case 2: /* endinput */ | 179 | case 2: /* endinput */ |
183 | if (!skip) { | 180 | if (!skip) { |