summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-30 17:00:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-30 17:00:59 -0300
commit2c670baf24115d9c59b5869b89873b93af8b779d (patch)
tree30ec1b85988ea36bd74403bd32a29a362def36d4 /lua.h
parentfdafd4f4a88d1584dea900517445a17d87f8b82f (diff)
downloadlua-2c670baf24115d9c59b5869b89873b93af8b779d.tar.gz
lua-2c670baf24115d9c59b5869b89873b93af8b779d.tar.bz2
lua-2c670baf24115d9c59b5869b89873b93af8b779d.zip
avoid the use of "obvious" names in header files to avoid conflicts
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/lua.h b/lua.h
index 28b7c504..eb961e06 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.154 2002/08/12 17:23:12 roberto Exp roberto $ 2** $Id: lua.h,v 1.155 2002/08/30 19:09:21 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil 4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
5** http://www.lua.org mailto:info@lua.org 5** http://www.lua.org mailto:info@lua.org
@@ -54,7 +54,7 @@ typedef int (*lua_CFunction) (lua_State *L);
54/* 54/*
55** functions that read blocks when loading Lua chunk 55** functions that read blocks when loading Lua chunk
56*/ 56*/
57typedef const char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *size); 57typedef const char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *sz);
58 58
59 59
60/* 60/*
@@ -103,7 +103,7 @@ typedef LUA_NUMBER lua_Number;
103LUA_API lua_State *lua_open (void); 103LUA_API lua_State *lua_open (void);
104LUA_API void lua_close (lua_State *L); 104LUA_API void lua_close (lua_State *L);
105LUA_API lua_State *lua_newthread (lua_State *L); 105LUA_API lua_State *lua_newthread (lua_State *L);
106LUA_API void lua_closethread (lua_State *L, lua_State *thread); 106LUA_API void lua_closethread (lua_State *L, lua_State *t);
107 107
108LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf); 108LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf);
109 109
@@ -112,36 +112,36 @@ LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf);
112** basic stack manipulation 112** basic stack manipulation
113*/ 113*/
114LUA_API int lua_gettop (lua_State *L); 114LUA_API int lua_gettop (lua_State *L);
115LUA_API void lua_settop (lua_State *L, int index); 115LUA_API void lua_settop (lua_State *L, int idx);
116LUA_API void lua_pushvalue (lua_State *L, int index); 116LUA_API void lua_pushvalue (lua_State *L, int idx);
117LUA_API void lua_remove (lua_State *L, int index); 117LUA_API void lua_remove (lua_State *L, int idx);
118LUA_API void lua_insert (lua_State *L, int index); 118LUA_API void lua_insert (lua_State *L, int idx);
119LUA_API void lua_replace (lua_State *L, int index); 119LUA_API void lua_replace (lua_State *L, int idx);
120LUA_API int lua_checkstack (lua_State *L, int size); 120LUA_API int lua_checkstack (lua_State *L, int sz);
121 121
122 122
123/* 123/*
124** access functions (stack -> C) 124** access functions (stack -> C)
125*/ 125*/
126 126
127LUA_API int lua_isnumber (lua_State *L, int index); 127LUA_API int lua_isnumber (lua_State *L, int idx);
128LUA_API int lua_isstring (lua_State *L, int index); 128LUA_API int lua_isstring (lua_State *L, int idx);
129LUA_API int lua_iscfunction (lua_State *L, int index); 129LUA_API int lua_iscfunction (lua_State *L, int idx);
130LUA_API int lua_isuserdata (lua_State *L, int index); 130LUA_API int lua_isuserdata (lua_State *L, int idx);
131LUA_API int lua_type (lua_State *L, int index); 131LUA_API int lua_type (lua_State *L, int idx);
132LUA_API const char *lua_typename (lua_State *L, int type); 132LUA_API const char *lua_typename (lua_State *L, int tp);
133 133
134LUA_API int lua_equal (lua_State *L, int index1, int index2); 134LUA_API int lua_equal (lua_State *L, int idx1, int idx2);
135LUA_API int lua_rawequal (lua_State *L, int index1, int index2); 135LUA_API int lua_rawequal (lua_State *L, int idx1, int idx2);
136LUA_API int lua_lessthan (lua_State *L, int index1, int index2); 136LUA_API int lua_lessthan (lua_State *L, int idx1, int idx2);
137 137
138LUA_API lua_Number lua_tonumber (lua_State *L, int index); 138LUA_API lua_Number lua_tonumber (lua_State *L, int idx);
139LUA_API int lua_toboolean (lua_State *L, int index); 139LUA_API int lua_toboolean (lua_State *L, int idx);
140LUA_API const char *lua_tostring (lua_State *L, int index); 140LUA_API const char *lua_tostring (lua_State *L, int idx);
141LUA_API size_t lua_strlen (lua_State *L, int index); 141LUA_API size_t lua_strlen (lua_State *L, int idx);
142LUA_API lua_CFunction lua_tocfunction (lua_State *L, int index); 142LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx);
143LUA_API void *lua_touserdata (lua_State *L, int index); 143LUA_API void *lua_touserdata (lua_State *L, int idx);
144LUA_API const void *lua_topointer (lua_State *L, int index); 144LUA_API const void *lua_topointer (lua_State *L, int idx);
145 145
146 146
147/* 147/*
@@ -149,7 +149,7 @@ LUA_API const void *lua_topointer (lua_State *L, int index);
149*/ 149*/
150LUA_API void lua_pushnil (lua_State *L); 150LUA_API void lua_pushnil (lua_State *L);
151LUA_API void lua_pushnumber (lua_State *L, lua_Number n); 151LUA_API void lua_pushnumber (lua_State *L, lua_Number n);
152LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); 152LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t l);
153LUA_API void lua_pushstring (lua_State *L, const char *s); 153LUA_API void lua_pushstring (lua_State *L, const char *s);
154LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt, 154LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt,
155 va_list argp); 155 va_list argp);
@@ -162,24 +162,24 @@ LUA_API void lua_pushlightuserdata (lua_State *L, void *p);
162/* 162/*
163** get functions (Lua -> stack) 163** get functions (Lua -> stack)
164*/ 164*/
165LUA_API void lua_gettable (lua_State *L, int index); 165LUA_API void lua_gettable (lua_State *L, int idx);
166LUA_API void lua_rawget (lua_State *L, int index); 166LUA_API void lua_rawget (lua_State *L, int idx);
167LUA_API void lua_rawgeti (lua_State *L, int index, int n); 167LUA_API void lua_rawgeti (lua_State *L, int idx, int n);
168LUA_API void lua_newtable (lua_State *L); 168LUA_API void lua_newtable (lua_State *L);
169LUA_API int lua_getmetatable (lua_State *L, int objindex); 169LUA_API int lua_getmetatable (lua_State *L, int objindex);
170LUA_API const char *lua_getmode (lua_State *L, int index); 170LUA_API const char *lua_getmode (lua_State *L, int idx);
171LUA_API void lua_getglobals (lua_State *L, int index); 171LUA_API void lua_getglobals (lua_State *L, int idx);
172 172
173 173
174/* 174/*
175** set functions (stack -> Lua) 175** set functions (stack -> Lua)
176*/ 176*/
177LUA_API void lua_settable (lua_State *L, int index); 177LUA_API void lua_settable (lua_State *L, int idx);
178LUA_API void lua_rawset (lua_State *L, int index); 178LUA_API void lua_rawset (lua_State *L, int idx);
179LUA_API void lua_rawseti (lua_State *L, int index, int n); 179LUA_API void lua_rawseti (lua_State *L, int idx, int n);
180LUA_API void lua_setmode (lua_State *L, int index, const char *mode); 180LUA_API void lua_setmode (lua_State *L, int idx, const char *md);
181LUA_API int lua_setmetatable (lua_State *L, int objindex); 181LUA_API int lua_setmetatable (lua_State *L, int objindex);
182LUA_API int lua_setglobals (lua_State *L, int index); 182LUA_API int lua_setglobals (lua_State *L, int idx);
183 183
184 184
185/* 185/*
@@ -187,7 +187,7 @@ LUA_API int lua_setglobals (lua_State *L, int index);
187*/ 187*/
188LUA_API void lua_call (lua_State *L, int nargs, int nresults); 188LUA_API void lua_call (lua_State *L, int nargs, int nresults);
189LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc); 189LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc);
190LUA_API int lua_load (lua_State *L, lua_Chunkreader reader, void *data, 190LUA_API int lua_load (lua_State *L, lua_Chunkreader reader, void *dt,
191 const char *chunkname); 191 const char *chunkname);
192 192
193 193
@@ -211,11 +211,11 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold);
211 211
212LUA_API int lua_error (lua_State *L); 212LUA_API int lua_error (lua_State *L);
213 213
214LUA_API int lua_next (lua_State *L, int index); 214LUA_API int lua_next (lua_State *L, int idx);
215 215
216LUA_API void lua_concat (lua_State *L, int n); 216LUA_API void lua_concat (lua_State *L, int n);
217 217
218LUA_API void *lua_newuserdata (lua_State *L, size_t size); 218LUA_API void *lua_newuserdata (lua_State *L, size_t sz);
219 219
220 220
221 221