From 568794956025183fc9a9b79e0c818a885e3d0aeb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 4 Feb 1999 15:47:59 -0200 Subject: "lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state". --- llex.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index a0b63fe1..27850864 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.26 1998/12/27 20:25:20 roberto Exp roberto $ +** $Id: llex.c,v 1.27 1998/12/28 13:44:54 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -20,9 +20,6 @@ -int lua_debug=0; - - #define next(LS) (LS->current = zgetc(LS->lex_z)) @@ -174,10 +171,10 @@ static void inclinenumber (LexState *LS) readname(LS, buff); switch (luaL_findstring(buff, pragmas)) { case 0: /* debug */ - if (!skip) lua_debug = 1; + if (!skip) L->debug = 1; break; case 1: /* nodebug */ - if (!skip) lua_debug = 0; + if (!skip) L->debug = 0; break; case 2: /* endinput */ if (!skip) { -- cgit v1.2.3-55-g6feb