aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-12 11:30:15 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-12 11:30:15 -0200
commit4fde357130fe588e9eea3a2045f233d4bf242ad1 (patch)
treefee89d4a1cdc464aa6263d29235801b0fbd627e3
parente5fd1e5fe25418210c1773e59491c4660f872ba4 (diff)
downloadlua-4fde357130fe588e9eea3a2045f233d4bf242ad1.tar.gz
lua-4fde357130fe588e9eea3a2045f233d4bf242ad1.tar.bz2
lua-4fde357130fe588e9eea3a2045f233d4bf242ad1.zip
details (matching parameter names with manual)
-rw-r--r--lua.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/lua.h b/lua.h
index b3833ddd..124d652e 100644
--- a/lua.h
+++ b/lua.h
@@ -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);
159LUA_API void (lua_pushvalue) (lua_State *L, int idx); 159LUA_API void (lua_pushvalue) (lua_State *L, int idx);
160LUA_API void (lua_rotate) (lua_State *L, int idx, int n); 160LUA_API void (lua_rotate) (lua_State *L, int idx, int n);
161LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); 161LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx);
162LUA_API int (lua_checkstack) (lua_State *L, int sz); 162LUA_API int (lua_checkstack) (lua_State *L, int n);
163 163
164LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); 164LUA_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);
222LUA_API void (lua_pushnil) (lua_State *L); 222LUA_API void (lua_pushnil) (lua_State *L);
223LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); 223LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
224LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 224LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
225LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); 225LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
226LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); 226LUA_API const char *(lua_pushstring) (lua_State *L, const char *s);
227LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, 227LUA_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*/
239LUA_API int (lua_getglobal) (lua_State *L, const char *var); 239LUA_API int (lua_getglobal) (lua_State *L, const char *name);
240LUA_API int (lua_gettable) (lua_State *L, int idx); 240LUA_API int (lua_gettable) (lua_State *L, int idx);
241LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); 241LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k);
242LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 242LUA_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*/
256LUA_API void (lua_setglobal) (lua_State *L, const char *var); 256LUA_API void (lua_setglobal) (lua_State *L, const char *name);
257LUA_API void (lua_settable) (lua_State *L, int idx); 257LUA_API void (lua_settable) (lua_State *L, int idx);
258LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); 258LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
259LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 259LUA_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*/
287LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, 287LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx,
288 lua_KFunction k); 288 lua_KFunction k);
289LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);
290LUA_API int (lua_status) (lua_State *L);
291LUA_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)
290LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);
291LUA_API int (lua_status) (lua_State *L);
292LUA_API int lua_isyieldable (lua_State *L);
293 294
294 295
295/* 296/*