diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-11 09:40:01 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-11 09:40:01 -0200 |
commit | 205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3 (patch) | |
tree | 1e2683e673e5fbf2230343df4faac3b252eee38c /opcode.h | |
parent | b48847c5fac055f0d6120029f6fe1a50c852a8ac (diff) | |
download | lua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.tar.gz lua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.tar.bz2 lua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.zip |
userdata can handle arbitrary binary data;
user tag is stored with data;
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** TeCGraf - PUC-Rio | 2 | ** TeCGraf - PUC-Rio |
3 | ** $Id: opcode.h,v 3.23 1996/09/26 21:08:41 roberto Exp roberto $ | 3 | ** $Id: opcode.h,v 3.24 1996/11/01 12:46:59 roberto Exp roberto $ |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef opcode_h | 6 | #ifndef opcode_h |
@@ -102,7 +102,6 @@ typedef union | |||
102 | TaggedString *ts; | 102 | TaggedString *ts; |
103 | TFunc *tf; | 103 | TFunc *tf; |
104 | struct Hash *a; | 104 | struct Hash *a; |
105 | void *u; | ||
106 | int i; | 105 | int i; |
107 | } Value; | 106 | } Value; |
108 | 107 | ||
@@ -120,7 +119,6 @@ typedef struct Object | |||
120 | #define tsvalue(o) ((o)->value.ts) | 119 | #define tsvalue(o) ((o)->value.ts) |
121 | #define avalue(o) ((o)->value.a) | 120 | #define avalue(o) ((o)->value.a) |
122 | #define fvalue(o) ((o)->value.f) | 121 | #define fvalue(o) ((o)->value.f) |
123 | #define uvalue(o) ((o)->value.u) | ||
124 | 122 | ||
125 | /* Macros to access symbol table */ | 123 | /* Macros to access symbol table */ |
126 | #define s_object(i) (lua_table[i].object) | 124 | #define s_object(i) (lua_table[i].object) |