diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-25 11:57:18 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-25 11:57:18 -0200 |
commit | d11e5adf55b11a446671775a6c7803e066fc94e8 (patch) | |
tree | b7881e03e792bcc46f497577e8141b5ecc2e5b17 /lobject.h | |
parent | 99e340b2ba08226f4f7b457b170296af8d82959b (diff) | |
download | lua-d11e5adf55b11a446671775a6c7803e066fc94e8.tar.gz lua-d11e5adf55b11a446671775a6c7803e066fc94e8.tar.bz2 lua-d11e5adf55b11a446671775a6c7803e066fc94e8.zip |
`const' array in protos breaked in 3 arrays (for strings, numbers, and
prototypes).
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.42 1999/12/27 17:33:22 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.43 1999/12/29 16:31:15 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -154,14 +154,19 @@ typedef struct TaggedString { | |||
154 | typedef struct TProtoFunc { | 154 | typedef struct TProtoFunc { |
155 | struct TProtoFunc *next; | 155 | struct TProtoFunc *next; |
156 | int marked; | 156 | int marked; |
157 | struct TObject *consts; | 157 | struct TaggedString **strcnst; |
158 | int nconsts; | 158 | int nstrcnst; |
159 | real *numcnst; | ||
160 | int nnumcnst; | ||
161 | struct TProtoFunc **protocnst; | ||
162 | int nprotocnst; | ||
159 | Byte *code; /* ends with opcode ENDCODE */ | 163 | Byte *code; /* ends with opcode ENDCODE */ |
160 | int lineDefined; | 164 | int lineDefined; |
161 | TaggedString *source; | 165 | TaggedString *source; |
162 | struct LocVar *locvars; /* ends with line = -1 */ | 166 | struct LocVar *locvars; /* ends with line = -1 */ |
163 | } TProtoFunc; | 167 | } TProtoFunc; |
164 | 168 | ||
169 | |||
165 | typedef struct LocVar { | 170 | typedef struct LocVar { |
166 | TaggedString *varname; /* NULL signals end of scope */ | 171 | TaggedString *varname; /* NULL signals end of scope */ |
167 | int line; | 172 | int line; |