diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-30 17:00:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-30 17:00:59 -0300 |
commit | 2c670baf24115d9c59b5869b89873b93af8b779d (patch) | |
tree | 30ec1b85988ea36bd74403bd32a29a362def36d4 /lua.h | |
parent | fdafd4f4a88d1584dea900517445a17d87f8b82f (diff) | |
download | lua-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.h | 78 |
1 files changed, 39 insertions, 39 deletions
@@ -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 | */ |
57 | typedef const char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *size); | 57 | typedef 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; | |||
103 | LUA_API lua_State *lua_open (void); | 103 | LUA_API lua_State *lua_open (void); |
104 | LUA_API void lua_close (lua_State *L); | 104 | LUA_API void lua_close (lua_State *L); |
105 | LUA_API lua_State *lua_newthread (lua_State *L); | 105 | LUA_API lua_State *lua_newthread (lua_State *L); |
106 | LUA_API void lua_closethread (lua_State *L, lua_State *thread); | 106 | LUA_API void lua_closethread (lua_State *L, lua_State *t); |
107 | 107 | ||
108 | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf); | 108 | LUA_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 | */ |
114 | LUA_API int lua_gettop (lua_State *L); | 114 | LUA_API int lua_gettop (lua_State *L); |
115 | LUA_API void lua_settop (lua_State *L, int index); | 115 | LUA_API void lua_settop (lua_State *L, int idx); |
116 | LUA_API void lua_pushvalue (lua_State *L, int index); | 116 | LUA_API void lua_pushvalue (lua_State *L, int idx); |
117 | LUA_API void lua_remove (lua_State *L, int index); | 117 | LUA_API void lua_remove (lua_State *L, int idx); |
118 | LUA_API void lua_insert (lua_State *L, int index); | 118 | LUA_API void lua_insert (lua_State *L, int idx); |
119 | LUA_API void lua_replace (lua_State *L, int index); | 119 | LUA_API void lua_replace (lua_State *L, int idx); |
120 | LUA_API int lua_checkstack (lua_State *L, int size); | 120 | LUA_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 | ||
127 | LUA_API int lua_isnumber (lua_State *L, int index); | 127 | LUA_API int lua_isnumber (lua_State *L, int idx); |
128 | LUA_API int lua_isstring (lua_State *L, int index); | 128 | LUA_API int lua_isstring (lua_State *L, int idx); |
129 | LUA_API int lua_iscfunction (lua_State *L, int index); | 129 | LUA_API int lua_iscfunction (lua_State *L, int idx); |
130 | LUA_API int lua_isuserdata (lua_State *L, int index); | 130 | LUA_API int lua_isuserdata (lua_State *L, int idx); |
131 | LUA_API int lua_type (lua_State *L, int index); | 131 | LUA_API int lua_type (lua_State *L, int idx); |
132 | LUA_API const char *lua_typename (lua_State *L, int type); | 132 | LUA_API const char *lua_typename (lua_State *L, int tp); |
133 | 133 | ||
134 | LUA_API int lua_equal (lua_State *L, int index1, int index2); | 134 | LUA_API int lua_equal (lua_State *L, int idx1, int idx2); |
135 | LUA_API int lua_rawequal (lua_State *L, int index1, int index2); | 135 | LUA_API int lua_rawequal (lua_State *L, int idx1, int idx2); |
136 | LUA_API int lua_lessthan (lua_State *L, int index1, int index2); | 136 | LUA_API int lua_lessthan (lua_State *L, int idx1, int idx2); |
137 | 137 | ||
138 | LUA_API lua_Number lua_tonumber (lua_State *L, int index); | 138 | LUA_API lua_Number lua_tonumber (lua_State *L, int idx); |
139 | LUA_API int lua_toboolean (lua_State *L, int index); | 139 | LUA_API int lua_toboolean (lua_State *L, int idx); |
140 | LUA_API const char *lua_tostring (lua_State *L, int index); | 140 | LUA_API const char *lua_tostring (lua_State *L, int idx); |
141 | LUA_API size_t lua_strlen (lua_State *L, int index); | 141 | LUA_API size_t lua_strlen (lua_State *L, int idx); |
142 | LUA_API lua_CFunction lua_tocfunction (lua_State *L, int index); | 142 | LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx); |
143 | LUA_API void *lua_touserdata (lua_State *L, int index); | 143 | LUA_API void *lua_touserdata (lua_State *L, int idx); |
144 | LUA_API const void *lua_topointer (lua_State *L, int index); | 144 | LUA_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 | */ |
150 | LUA_API void lua_pushnil (lua_State *L); | 150 | LUA_API void lua_pushnil (lua_State *L); |
151 | LUA_API void lua_pushnumber (lua_State *L, lua_Number n); | 151 | LUA_API void lua_pushnumber (lua_State *L, lua_Number n); |
152 | LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); | 152 | LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t l); |
153 | LUA_API void lua_pushstring (lua_State *L, const char *s); | 153 | LUA_API void lua_pushstring (lua_State *L, const char *s); |
154 | LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt, | 154 | LUA_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 | */ |
165 | LUA_API void lua_gettable (lua_State *L, int index); | 165 | LUA_API void lua_gettable (lua_State *L, int idx); |
166 | LUA_API void lua_rawget (lua_State *L, int index); | 166 | LUA_API void lua_rawget (lua_State *L, int idx); |
167 | LUA_API void lua_rawgeti (lua_State *L, int index, int n); | 167 | LUA_API void lua_rawgeti (lua_State *L, int idx, int n); |
168 | LUA_API void lua_newtable (lua_State *L); | 168 | LUA_API void lua_newtable (lua_State *L); |
169 | LUA_API int lua_getmetatable (lua_State *L, int objindex); | 169 | LUA_API int lua_getmetatable (lua_State *L, int objindex); |
170 | LUA_API const char *lua_getmode (lua_State *L, int index); | 170 | LUA_API const char *lua_getmode (lua_State *L, int idx); |
171 | LUA_API void lua_getglobals (lua_State *L, int index); | 171 | LUA_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 | */ |
177 | LUA_API void lua_settable (lua_State *L, int index); | 177 | LUA_API void lua_settable (lua_State *L, int idx); |
178 | LUA_API void lua_rawset (lua_State *L, int index); | 178 | LUA_API void lua_rawset (lua_State *L, int idx); |
179 | LUA_API void lua_rawseti (lua_State *L, int index, int n); | 179 | LUA_API void lua_rawseti (lua_State *L, int idx, int n); |
180 | LUA_API void lua_setmode (lua_State *L, int index, const char *mode); | 180 | LUA_API void lua_setmode (lua_State *L, int idx, const char *md); |
181 | LUA_API int lua_setmetatable (lua_State *L, int objindex); | 181 | LUA_API int lua_setmetatable (lua_State *L, int objindex); |
182 | LUA_API int lua_setglobals (lua_State *L, int index); | 182 | LUA_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 | */ |
188 | LUA_API void lua_call (lua_State *L, int nargs, int nresults); | 188 | LUA_API void lua_call (lua_State *L, int nargs, int nresults); |
189 | LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc); | 189 | LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc); |
190 | LUA_API int lua_load (lua_State *L, lua_Chunkreader reader, void *data, | 190 | LUA_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 | ||
212 | LUA_API int lua_error (lua_State *L); | 212 | LUA_API int lua_error (lua_State *L); |
213 | 213 | ||
214 | LUA_API int lua_next (lua_State *L, int index); | 214 | LUA_API int lua_next (lua_State *L, int idx); |
215 | 215 | ||
216 | LUA_API void lua_concat (lua_State *L, int n); | 216 | LUA_API void lua_concat (lua_State *L, int n); |
217 | 217 | ||
218 | LUA_API void *lua_newuserdata (lua_State *L, size_t size); | 218 | LUA_API void *lua_newuserdata (lua_State *L, size_t sz); |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||