diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.78 2000/10/02 20:10:55 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.79 2000/10/05 12:14:08 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 | */ |
@@ -73,9 +73,9 @@ typedef struct lua_TObject { | |||
73 | */ | 73 | */ |
74 | typedef struct TString { | 74 | typedef struct TString { |
75 | union { | 75 | union { |
76 | union L_Umaxalign dummy; /* ensures maximum alignment for `local' udata */ | ||
76 | struct { /* for strings */ | 77 | struct { /* for strings */ |
77 | unsigned long hash; | 78 | unsigned long hash; |
78 | size_t len; | ||
79 | int constindex; /* hint to reuse constants */ | 79 | int constindex; /* hint to reuse constants */ |
80 | } s; | 80 | } s; |
81 | struct { /* for userdata */ | 81 | struct { /* for userdata */ |
@@ -83,6 +83,7 @@ typedef struct TString { | |||
83 | void *value; | 83 | void *value; |
84 | } d; | 84 | } d; |
85 | } u; | 85 | } u; |
86 | size_t len; | ||
86 | struct TString *nexthash; /* chain for hash table */ | 87 | struct TString *nexthash; /* chain for hash table */ |
87 | unsigned char marked; | 88 | unsigned char marked; |
88 | char str[1]; /* variable length string!! must be the last field! */ | 89 | char str[1]; /* variable length string!! must be the last field! */ |