diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-11-12 11:30:15 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-11-12 11:30:15 -0200 |
commit | 4fde357130fe588e9eea3a2045f233d4bf242ad1 (patch) | |
tree | fee89d4a1cdc464aa6263d29235801b0fbd627e3 | |
parent | e5fd1e5fe25418210c1773e59491c4660f872ba4 (diff) | |
download | lua-4fde357130fe588e9eea3a2045f233d4bf242ad1.tar.gz lua-4fde357130fe588e9eea3a2045f233d4bf242ad1.tar.bz2 lua-4fde357130fe588e9eea3a2045f233d4bf242ad1.zip |
details (matching parameter names with manual)
-rw-r--r-- | lua.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.319 2014/10/17 19:17:55 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.320 2014/11/08 17:57:08 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -159,7 +159,7 @@ LUA_API void (lua_settop) (lua_State *L, int idx); | |||
159 | LUA_API void (lua_pushvalue) (lua_State *L, int idx); | 159 | LUA_API void (lua_pushvalue) (lua_State *L, int idx); |
160 | LUA_API void (lua_rotate) (lua_State *L, int idx, int n); | 160 | LUA_API void (lua_rotate) (lua_State *L, int idx, int n); |
161 | LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); | 161 | LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); |
162 | LUA_API int (lua_checkstack) (lua_State *L, int sz); | 162 | LUA_API int (lua_checkstack) (lua_State *L, int n); |
163 | 163 | ||
164 | LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); | 164 | LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); |
165 | 165 | ||
@@ -222,7 +222,7 @@ LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op); | |||
222 | LUA_API void (lua_pushnil) (lua_State *L); | 222 | LUA_API void (lua_pushnil) (lua_State *L); |
223 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); | 223 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); |
224 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); | 224 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); |
225 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); | 225 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); |
226 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); | 226 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); |
227 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, | 227 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, |
228 | va_list argp); | 228 | va_list argp); |
@@ -236,7 +236,7 @@ LUA_API int (lua_pushthread) (lua_State *L); | |||
236 | /* | 236 | /* |
237 | ** get functions (Lua -> stack) | 237 | ** get functions (Lua -> stack) |
238 | */ | 238 | */ |
239 | LUA_API int (lua_getglobal) (lua_State *L, const char *var); | 239 | LUA_API int (lua_getglobal) (lua_State *L, const char *name); |
240 | LUA_API int (lua_gettable) (lua_State *L, int idx); | 240 | LUA_API int (lua_gettable) (lua_State *L, int idx); |
241 | LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); | 241 | LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); |
242 | LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); | 242 | LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); |
@@ -253,7 +253,7 @@ LUA_API int (lua_getuservalue) (lua_State *L, int idx); | |||
253 | /* | 253 | /* |
254 | ** set functions (stack -> Lua) | 254 | ** set functions (stack -> Lua) |
255 | */ | 255 | */ |
256 | LUA_API void (lua_setglobal) (lua_State *L, const char *var); | 256 | LUA_API void (lua_setglobal) (lua_State *L, const char *name); |
257 | LUA_API void (lua_settable) (lua_State *L, int idx); | 257 | LUA_API void (lua_settable) (lua_State *L, int idx); |
258 | LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); | 258 | LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); |
259 | LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); | 259 | LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); |
@@ -284,12 +284,13 @@ LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip); | |||
284 | /* | 284 | /* |
285 | ** coroutine functions | 285 | ** coroutine functions |
286 | */ | 286 | */ |
287 | LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, | 287 | LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, |
288 | lua_KFunction k); | 288 | lua_KFunction k); |
289 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); | ||
290 | LUA_API int (lua_status) (lua_State *L); | ||
291 | LUA_API int (lua_isyieldable) (lua_State *L); | ||
292 | |||
289 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) | 293 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) |
290 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); | ||
291 | LUA_API int (lua_status) (lua_State *L); | ||
292 | LUA_API int lua_isyieldable (lua_State *L); | ||
293 | 294 | ||
294 | 295 | ||
295 | /* | 296 | /* |