diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
commit | 88a2023c3285c4514519158fba90e644fc6ffca3 (patch) | |
tree | da6611257545c486ff856dd48d66d94e056f3d66 /lobject.h | |
parent | 5ef1989c4b05aff8362a7ea6ba62aad76d4a040d (diff) | |
download | lua-88a2023c3285c4514519158fba90e644fc6ffca3.tar.gz lua-88a2023c3285c4514519158fba90e644fc6ffca3.tar.bz2 lua-88a2023c3285c4514519158fba90e644fc6ffca3.zip |
support for strings with '\0'
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 */ |