diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.15 1998/01/14 13:48:28 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.16 1998/01/19 19:49:22 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 | */ |
@@ -95,10 +95,13 @@ typedef struct GCnode { | |||
95 | 95 | ||
96 | typedef struct TaggedString { | 96 | typedef struct TaggedString { |
97 | GCnode head; | 97 | GCnode head; |
98 | int constindex; /* hint to reuse constants (= -1 if this is a userdata) */ | ||
99 | unsigned long hash; | 98 | unsigned long hash; |
99 | int constindex; /* hint to reuse constants (= -1 if this is a userdata) */ | ||
100 | union { | 100 | union { |
101 | TObject globalval; | 101 | struct { |
102 | TObject globalval; | ||
103 | long len; /* if this is a string, here is its length */ | ||
104 | } s; | ||
102 | struct { | 105 | struct { |
103 | int tag; | 106 | int tag; |
104 | void *v; /* if this is a userdata, here is its value */ | 107 | void *v; /* if this is a userdata, here is its value */ |