aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-11 09:45:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-11 09:45:00 -0300
commit71c716e5a88a6993369505c79cd1383ef27366c4 (patch)
treec8b32cf297e5a6faca854c527fd9ea2056f615db /lobject.h
parent51ad2f11623c25874b6a0e721e0597df784068ff (diff)
downloadlua-71c716e5a88a6993369505c79cd1383ef27366c4.tar.gz
lua-71c716e5a88a6993369505c79cd1383ef27366c4.tar.bz2
lua-71c716e5a88a6993369505c79cd1383ef27366c4.zip
avoid C identifiers beginning with '_'
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lobject.h b/lobject.h
index 873fdc93..a33f28b4 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.124 2002/02/08 22:42:41 roberto Exp roberto $ 2** $Id: lobject.h,v 1.125 2002/03/05 12:42:47 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*/
@@ -63,29 +63,29 @@ typedef struct lua_TObject {
63 63
64/* Macros to set values */ 64/* Macros to set values */
65#define setnvalue(obj,x) \ 65#define setnvalue(obj,x) \
66 { TObject *_o=(obj); _o->tt=LUA_TNUMBER; _o->value.n=(x); } 66 { TObject *i_o=(obj); i_o->tt=LUA_TNUMBER; i_o->value.n=(x); }
67 67
68#define chgnvalue(obj,x) ((obj)->value.n=(x)) 68#define chgnvalue(obj,x) ((obj)->value.n=(x))
69 69
70#define setbvalue(obj,x) \ 70#define setbvalue(obj,x) \
71 { TObject *_o=(obj); _o->tt=LUA_TBOOLEAN; _o->value.b=(x); } 71 { TObject *i_o=(obj); i_o->tt=LUA_TBOOLEAN; i_o->value.b=(x); }
72 72
73#define setsvalue(obj,x) \ 73#define setsvalue(obj,x) \
74 { TObject *_o=(obj); _o->tt=LUA_TSTRING; _o->value.ts=(x); } 74 { TObject *i_o=(obj); i_o->tt=LUA_TSTRING; i_o->value.ts=(x); }
75 75
76#define setuvalue(obj,x) \ 76#define setuvalue(obj,x) \
77 { TObject *_o=(obj); _o->tt=LUA_TUSERDATA; _o->value.u=(x); } 77 { TObject *i_o=(obj); i_o->tt=LUA_TUSERDATA; i_o->value.u=(x); }
78 78
79#define setclvalue(obj,x) \ 79#define setclvalue(obj,x) \
80 { TObject *_o=(obj); _o->tt=LUA_TFUNCTION; _o->value.cl=(x); } 80 { TObject *i_o=(obj); i_o->tt=LUA_TFUNCTION; i_o->value.cl=(x); }
81 81
82#define sethvalue(obj,x) \ 82#define sethvalue(obj,x) \
83 { TObject *_o=(obj); _o->tt=LUA_TTABLE; _o->value.h=(x); } 83 { TObject *i_o=(obj); i_o->tt=LUA_TTABLE; i_o->value.h=(x); }
84 84
85#define setnilvalue(obj) ((obj)->tt=LUA_TNIL) 85#define setnilvalue(obj) ((obj)->tt=LUA_TNIL)
86 86
87#define setupvalue(obj,x,t) \ 87#define setupvalue(obj,x,t) \
88 { TObject *_o=(obj); _o->tt=(t); _o->value.v=(x); } 88 { TObject *i_o=(obj); i_o->tt=(t); i_o->value.v=(x); }
89 89
90#define setobj(obj1,obj2) \ 90#define setobj(obj1,obj2) \
91 { TObject *o1=(obj1); const TObject *o2=(obj2); \ 91 { TObject *o1=(obj1); const TObject *o2=(obj2); \
@@ -213,8 +213,8 @@ typedef union Closure {
213*/ 213*/
214 214
215typedef struct Node { 215typedef struct Node {
216 TObject _key; 216 TObject i_key;
217 TObject _val; 217 TObject i_val;
218 struct Node *next; /* for chaining */ 218 struct Node *next; /* for chaining */
219} Node; 219} Node;
220 220