From c85162be276f7bb95416c5ec0ecefd9c24877d67 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Aug 2000 14:44:17 -0300 Subject: new way to store local-variable information. --- lobject.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index beb5745d..f2d60760 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.72 2000/08/08 18:26:05 roberto Exp roberto $ +** $Id: lobject.h,v 1.73 2000/08/21 14:34:43 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -124,15 +124,17 @@ typedef struct Proto { int marked; /* debug information */ int *lineinfo; /* map from opcodes to source lines */ + int nlocvars; + struct LocVar *locvars; /* information about local variables */ int lineDefined; TString *source; - struct LocVar *locvars; /* ends with line = -1 */ } Proto; typedef struct LocVar { - TString *varname; /* NULL signals end of scope */ - int pc; + TString *varname; + int startpc; /* first point where variable is active */ + int endpc; /* first point where variable is dead */ } LocVar; -- cgit v1.2.3-55-g6feb