aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-26 10:47:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-26 10:47:05 -0200
commitb892f0a8774f573d7ec9b02617428871b8d3a2b3 (patch)
tree4aab88443264d84d314ca663cf3c30b48c7e9107 /lobject.h
parentaadc35449ec2752c298a7a8fa6359a3a12c538ee (diff)
downloadlua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.gz
lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.bz2
lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.zip
new API function `createuserdata'
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index dd7adeda..a3638622 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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*/
74typedef struct TString { 74typedef 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! */