diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
commit | dad808a73a98a23729614b8814728d76b4e5d577 (patch) | |
tree | 945fabce1906c5f08fe6512476d7ca3d84017bca /lobject.h | |
parent | ca7fd50a4ec2f1b41292f859ba0d5e52a2b22a5c (diff) | |
download | lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.gz lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.bz2 lua-dad808a73a98a23729614b8814728d76b4e5d577.zip |
new way to count `nblocks' for GC (try to count bytes).
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.75 2000/09/11 17:38:42 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.76 2000/09/11 20:29:27 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 | */ |
@@ -116,14 +116,16 @@ typedef struct Proto { | |||
116 | int nkstr; /* size of `kstr' */ | 116 | int nkstr; /* size of `kstr' */ |
117 | struct Proto **kproto; /* functions defined inside the function */ | 117 | struct Proto **kproto; /* functions defined inside the function */ |
118 | int nkproto; /* size of `kproto' */ | 118 | int nkproto; /* size of `kproto' */ |
119 | Instruction *code; /* ends with opcode ENDCODE */ | 119 | Instruction *code; |
120 | int numparams; | 120 | int ncode; /* size of `code'; when 0 means an incomplete `Proto' */ |
121 | int is_vararg; | 121 | short numparams; |
122 | int maxstacksize; | 122 | short is_vararg; |
123 | short maxstacksize; | ||
124 | short marked; | ||
123 | struct Proto *next; | 125 | struct Proto *next; |
124 | int marked; | ||
125 | /* debug information */ | 126 | /* debug information */ |
126 | int *lineinfo; /* map from opcodes to source lines */ | 127 | int *lineinfo; /* map from opcodes to source lines */ |
128 | int nlineinfo; /* size of `lineinfo' */ | ||
127 | int nlocvars; | 129 | int nlocvars; |
128 | struct LocVar *locvars; /* information about local variables */ | 130 | struct LocVar *locvars; /* information about local variables */ |
129 | int lineDefined; | 131 | int lineDefined; |