aboutsummaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-11 15:44:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-11 15:44:28 -0300
commitb6d91e24e23edfe98ad732660fd456e91658edb9 (patch)
treea66fb8348758f32df6c5d5ab1af1aece2a63009f /opcode.h
parenta82ab0852eaca43cb56be5134833c97e6bb7ac98 (diff)
downloadlua-b6d91e24e23edfe98ad732660fd456e91658edb9.tar.gz
lua-b6d91e24e23edfe98ad732660fd456e91658edb9.tar.bz2
lua-b6d91e24e23edfe98ad732660fd456e91658edb9.zip
"tag" changed to "ttype" (since now tag has other meaning)
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcode.h b/opcode.h
index c15b9533..53f71ba8 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.26 1997/02/20 15:51:14 roberto Exp roberto $ 3** $Id: opcode.h,v 3.27 1997/03/06 17:30:55 roberto Exp roberto $
4*/ 4*/
5 5
6#ifndef opcode_h 6#ifndef opcode_h
@@ -121,13 +121,13 @@ typedef union
121 121
122typedef struct Object 122typedef struct Object
123{ 123{
124 lua_Type tag; 124 lua_Type ttype;
125 Value value; 125 Value value;
126} Object; 126} Object;
127 127
128 128
129/* Macros to access structure members */ 129/* Macros to access structure members */
130#define tag(o) ((o)->tag) 130#define ttype(o) ((o)->ttype)
131#define nvalue(o) ((o)->value.n) 131#define nvalue(o) ((o)->value.n)
132#define svalue(o) ((o)->value.ts->str) 132#define svalue(o) ((o)->value.ts->str)
133#define tsvalue(o) ((o)->value.ts) 133#define tsvalue(o) ((o)->value.ts)
@@ -136,7 +136,7 @@ typedef struct Object
136 136
137/* Macros to access symbol table */ 137/* Macros to access symbol table */
138#define s_object(i) (lua_table[i].object) 138#define s_object(i) (lua_table[i].object)
139#define s_tag(i) (tag(&s_object(i))) 139#define s_ttype(i) (ttype(&s_object(i)))
140#define s_nvalue(i) (nvalue(&s_object(i))) 140#define s_nvalue(i) (nvalue(&s_object(i)))
141#define s_svalue(i) (svalue(&s_object(i))) 141#define s_svalue(i) (svalue(&s_object(i)))
142#define s_tsvalue(i) (tsvalue(&s_object(i))) 142#define s_tsvalue(i) (tsvalue(&s_object(i)))