aboutsummaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-31 11:02:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-31 11:02:58 -0300
commitad5574c4c97af3ef863a6fb4b72142f3780103b2 (patch)
tree7ef70322749e3e433321edbea89d61087d820c55 /opcode.h
parent264f8c5e7bd168de2f0ca07399e6fc70d5a820d3 (diff)
downloadlua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.tar.gz
lua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.tar.bz2
lua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.zip
"Object" renamed to "TObject" (Tagged Object), to avoid conflicts with
pre-defined names in some C compilers.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/opcode.h b/opcode.h
index d691233c..89490262 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.29 1997/03/19 19:41:10 roberto Exp roberto $ 3** $Id: opcode.h,v 3.30 1997/03/20 19:20:43 roberto Exp roberto $
4*/ 4*/
5 5
6#ifndef opcode_h 6#ifndef opcode_h
@@ -125,11 +125,11 @@ typedef union
125 int i; 125 int i;
126} Value; 126} Value;
127 127
128typedef struct Object 128typedef struct TObject
129{ 129{
130 lua_Type ttype; 130 lua_Type ttype;
131 Value value; 131 Value value;
132} Object; 132} TObject;
133 133
134 134
135/* Macros to access structure members */ 135/* Macros to access structure members */
@@ -159,10 +159,10 @@ typedef struct Object
159/* Exported functions */ 159/* Exported functions */
160void lua_parse (TFunc *tf); /* from "lua.stx" module */ 160void lua_parse (TFunc *tf); /* from "lua.stx" module */
161void luaI_codedebugline (int line); /* from "lua.stx" module */ 161void luaI_codedebugline (int line); /* from "lua.stx" module */
162void lua_travstack (int (*fn)(Object *)); 162void lua_travstack (int (*fn)(TObject *));
163Object *luaI_Address (lua_Object o); 163TObject *luaI_Address (lua_Object o);
164void luaI_pushobject (Object *o); 164void luaI_pushobject (TObject *o);
165void luaI_gcIM (Object *o); 165void luaI_gcIM (TObject *o);
166int luaI_dorun (TFunc *tf); 166int luaI_dorun (TFunc *tf);
167 167
168#endif 168#endif