`const' array in protos breaked in 3 arrays (for strings, numbers, and

prototypes).
This commit is contained in:
Roberto Ierusalimschy
2000-01-25 11:57:18 -02:00
parent 99e340b2ba
commit d11e5adf55
7 changed files with 86 additions and 80 deletions

View File

@@ -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;