diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
| commit | 0183b8030c80f57b87874ff7867ccdb172d9d3dc (patch) | |
| tree | 1033b5a84489a2f1f1bd210b1b120155cd7aeed7 /lobject.h | |
| parent | 8c49e198654567f770a7d5081b886a7c35201d81 (diff) | |
| download | lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.gz lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.bz2 lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.zip | |
`free' gets size of the block: complete control over memory use
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 1.83 2000/11/24 17:39:56 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.84 2000/12/04 18:33:40 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 | */ |
| @@ -102,13 +102,13 @@ typedef struct TString { | |||
| 102 | */ | 102 | */ |
| 103 | typedef struct Proto { | 103 | typedef struct Proto { |
| 104 | lua_Number *knum; /* numbers used by the function */ | 104 | lua_Number *knum; /* numbers used by the function */ |
| 105 | int nknum; /* size of `knum' */ | 105 | int sizeknum; /* size of `knum' */ |
| 106 | struct TString **kstr; /* strings used by the function */ | 106 | struct TString **kstr; /* strings used by the function */ |
| 107 | int nkstr; /* size of `kstr' */ | 107 | int sizekstr; /* size of `kstr' */ |
| 108 | struct Proto **kproto; /* functions defined inside the function */ | 108 | struct Proto **kproto; /* functions defined inside the function */ |
| 109 | int nkproto; /* size of `kproto' */ | 109 | int sizekproto; /* size of `kproto' */ |
| 110 | Instruction *code; | 110 | Instruction *code; |
| 111 | int ncode; /* size of `code'; when 0 means an incomplete `Proto' */ | 111 | int sizecode; |
| 112 | short numparams; | 112 | short numparams; |
| 113 | short is_vararg; | 113 | short is_vararg; |
| 114 | short maxstacksize; | 114 | short maxstacksize; |
| @@ -116,9 +116,9 @@ typedef struct Proto { | |||
| 116 | struct Proto *next; | 116 | struct Proto *next; |
| 117 | /* debug information */ | 117 | /* debug information */ |
| 118 | int *lineinfo; /* map from opcodes to source lines */ | 118 | int *lineinfo; /* map from opcodes to source lines */ |
| 119 | int nlineinfo; /* size of `lineinfo' */ | 119 | int sizelineinfo; /* size of `lineinfo' */ |
| 120 | int nlocvars; | ||
| 121 | struct LocVar *locvars; /* information about local variables */ | 120 | struct LocVar *locvars; /* information about local variables */ |
| 121 | int sizelocvars; | ||
| 122 | int lineDefined; | 122 | int lineDefined; |
| 123 | TString *source; | 123 | TString *source; |
| 124 | } Proto; | 124 | } Proto; |
