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 /lparser.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 'lparser.c')
-rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.14 1999/02/02 19:41:17 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.15 1999/02/04 16:36:16 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -378,7 +378,7 @@ static void pushupvalue (LexState *ls, TaggedString *n) { | |||
378 | 378 | ||
379 | 379 | ||
380 | static void check_debugline (LexState *ls) { | 380 | static void check_debugline (LexState *ls) { |
381 | if (lua_debug && ls->linenumber != ls->fs->lastsetline) { | 381 | if (L->debug && ls->linenumber != ls->fs->lastsetline) { |
382 | code_oparg(ls, SETLINE, ls->linenumber, 0); | 382 | code_oparg(ls, SETLINE, ls->linenumber, 0); |
383 | ls->fs->lastsetline = ls->linenumber; | 383 | ls->fs->lastsetline = ls->linenumber; |
384 | } | 384 | } |
@@ -552,7 +552,7 @@ static void init_state (LexState *ls, FuncState *fs, TaggedString *filename) { | |||
552 | fs->maxcode = 0; | 552 | fs->maxcode = 0; |
553 | f->code = NULL; | 553 | f->code = NULL; |
554 | fs->maxconsts = 0; | 554 | fs->maxconsts = 0; |
555 | if (lua_debug) | 555 | if (L->debug) |
556 | fs->nvars = fs->maxvars = 0; | 556 | fs->nvars = fs->maxvars = 0; |
557 | else | 557 | else |
558 | fs->maxvars = -1; /* flag no debug information */ | 558 | fs->maxvars = -1; /* flag no debug information */ |