aboutsummaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-02-11 09:40:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-02-11 09:40:01 -0200
commit205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3 (patch)
tree1e2683e673e5fbf2230343df4faac3b252eee38c /opcode.h
parentb48847c5fac055f0d6120029f6fe1a50c852a8ac (diff)
downloadlua-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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/opcode.h b/opcode.h
index 1ee6bf97..dde9c11d 100644
--- a/opcode.h
+++ b/opcode.h
@@ -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)