From d11e5adf55b11a446671775a6c7803e066fc94e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Jan 2000 11:57:18 -0200 Subject: `const' array in protos breaked in 3 arrays (for strings, numbers, and prototypes). --- lobject.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index da61835c..0c2253f3 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.42 1999/12/27 17:33:22 roberto Exp roberto $ +** $Id: lobject.h,v 1.43 1999/12/29 16:31:15 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -154,14 +154,19 @@ typedef struct TaggedString { typedef struct TProtoFunc { struct TProtoFunc *next; int marked; - struct TObject *consts; - int nconsts; + struct TaggedString **strcnst; + int nstrcnst; + real *numcnst; + int nnumcnst; + struct TProtoFunc **protocnst; + int nprotocnst; Byte *code; /* ends with opcode ENDCODE */ int lineDefined; TaggedString *source; struct LocVar *locvars; /* ends with line = -1 */ } TProtoFunc; + typedef struct LocVar { TaggedString *varname; /* NULL signals end of scope */ int line; -- cgit v1.2.3-55-g6feb