aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index 9e1f94d5..9177f03c 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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
96typedef struct TaggedString { 96typedef 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 */