aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index 2f363ec7..c12bc177 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.105 2001/06/07 15:01:21 roberto Exp roberto $ 2** $Id: lobject.h,v 1.106 2001/06/15 20:36:57 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,6 +73,9 @@ typedef struct lua_TObject {
73 { TObject *o1=(obj1); const TObject *o2=(obj2); \ 73 { TObject *o1=(obj1); const TObject *o2=(obj2); \
74 o1->tt=o2->tt; o1->value = o2->value; } 74 o1->tt=o2->tt; o1->value = o2->value; }
75 75
76#define setttype(obj, tt) (ttype(obj) = (tt))
77
78
76 79
77typedef TObject *StkId; /* index to stack elements */ 80typedef TObject *StkId; /* index to stack elements */
78 81
@@ -167,8 +170,7 @@ typedef struct Closure {
167 170
168typedef struct Node { 171typedef struct Node {
169 struct Node *next; /* for chaining */ 172 struct Node *next; /* for chaining */
170 int key_tt; /* (break object to save padding space) */ 173 TObject key;
171 Value key_value;
172 TObject val; 174 TObject val;
173} Node; 175} Node;
174 176