From b892f0a8774f573d7ec9b02617428871b8d3a2b3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Oct 2000 10:47:05 -0200 Subject: new API function `createuserdata' --- lobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index dd7adeda..a3638622 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.78 2000/10/02 20:10:55 roberto Exp roberto $ +** $Id: lobject.h,v 1.79 2000/10/05 12:14:08 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -73,9 +73,9 @@ typedef struct lua_TObject { */ typedef struct TString { union { + union L_Umaxalign dummy; /* ensures maximum alignment for `local' udata */ struct { /* for strings */ unsigned long hash; - size_t len; int constindex; /* hint to reuse constants */ } s; struct { /* for userdata */ @@ -83,6 +83,7 @@ typedef struct TString { void *value; } d; } u; + size_t len; struct TString *nexthash; /* chain for hash table */ unsigned char marked; char str[1]; /* variable length string!! must be the last field! */ -- cgit v1.2.3-55-g6feb