diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-09 12:57:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-09 12:57:43 -0200 |
commit | 6ac047afc46cbee935587b5734ec37d2e667a598 (patch) | |
tree | 9dd53dcde6b44b1b2593420a13cbd828261a690e /lobject.h | |
parent | 0e1058cfdd07a3751fce1c79b75241cf770266cf (diff) | |
download | lua-6ac047afc46cbee935587b5734ec37d2e667a598.tar.gz lua-6ac047afc46cbee935587b5734ec37d2e667a598.tar.bz2 lua-6ac047afc46cbee935587b5734ec37d2e667a598.zip |
details
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.12 1997/12/23 19:24:19 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.13 1997/12/26 18:38:16 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 | */ |
@@ -96,8 +96,8 @@ typedef struct TaggedString { | |||
96 | union { | 96 | union { |
97 | TObject globalval; | 97 | TObject globalval; |
98 | struct { | 98 | struct { |
99 | void *v; /* if this is a userdata, here is its value */ | ||
100 | int tag; | 99 | int tag; |
100 | void *v; /* if this is a userdata, here is its value */ | ||
101 | } d; | 101 | } d; |
102 | } u; | 102 | } u; |
103 | char str[1]; /* \0 byte already reserved */ | 103 | char str[1]; /* \0 byte already reserved */ |
@@ -111,11 +111,11 @@ typedef struct TaggedString { | |||
111 | */ | 111 | */ |
112 | typedef struct TProtoFunc { | 112 | typedef struct TProtoFunc { |
113 | GCnode head; | 113 | GCnode head; |
114 | struct TObject *consts; | ||
115 | int nconsts; | ||
114 | Byte *code; /* ends with opcode ENDCODE */ | 116 | Byte *code; /* ends with opcode ENDCODE */ |
115 | int lineDefined; | 117 | int lineDefined; |
116 | TaggedString *fileName; | 118 | TaggedString *fileName; |
117 | struct TObject *consts; | ||
118 | int nconsts; | ||
119 | struct LocVar *locvars; /* ends with line = -1 */ | 119 | struct LocVar *locvars; /* ends with line = -1 */ |
120 | } TProtoFunc; | 120 | } TProtoFunc; |
121 | 121 | ||
@@ -166,11 +166,6 @@ typedef struct Hash { | |||
166 | } Hash; | 166 | } Hash; |
167 | 167 | ||
168 | 168 | ||
169 | /* | ||
170 | ** a gross estimation of number of memory "blocks" allocated | ||
171 | ** (a block is *roughly* 32 bytes) | ||
172 | */ | ||
173 | |||
174 | extern char *luaO_typenames[]; | 169 | extern char *luaO_typenames[]; |
175 | 170 | ||
176 | extern TObject luaO_nilobject; | 171 | extern TObject luaO_nilobject; |