aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-07 15:29:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-07 15:29:13 -0300
commit2a21f6c894e23a201f4028cd222a5790b79018fe (patch)
treed8e55b99e29ba5f444748608f363cb3ad797efd3 /lua.h
parent3670db99b65f74d2671bfa9aa37ca7794c32332d (diff)
downloadlua-2a21f6c894e23a201f4028cd222a5790b79018fe.tar.gz
lua-2a21f6c894e23a201f4028cd222a5790b79018fe.tar.bz2
lua-2a21f6c894e23a201f4028cd222a5790b79018fe.zip
'lua_Kcontext' -> 'lua_KContext'
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index c5d859d4..12d217f6 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.315 2014/10/01 11:54:56 roberto Exp roberto $ 2** $Id: lua.h,v 1.316 2014/10/04 22:57:36 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
@@ -94,7 +94,7 @@ typedef LUA_INTEGER lua_Integer;
94typedef LUA_UNSIGNED lua_Unsigned; 94typedef LUA_UNSIGNED lua_Unsigned;
95 95
96/* type for continuation-function contexts */ 96/* type for continuation-function contexts */
97typedef LUA_KCONTEXT lua_Kcontext; 97typedef LUA_KCONTEXT lua_KContext;
98 98
99 99
100/* 100/*
@@ -105,7 +105,7 @@ typedef int (*lua_CFunction) (lua_State *L);
105/* 105/*
106** Type for continuation functions 106** Type for continuation functions
107*/ 107*/
108typedef int (*lua_KFunction) (lua_State *L, int status, lua_Kcontext ctx); 108typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx);
109 109
110 110
111/* 111/*
@@ -268,11 +268,11 @@ LUA_API void (lua_setuservalue) (lua_State *L, int idx);
268** 'load' and 'call' functions (load and run Lua code) 268** 'load' and 'call' functions (load and run Lua code)
269*/ 269*/
270LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, 270LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults,
271 lua_Kcontext ctx, lua_KFunction k); 271 lua_KContext ctx, lua_KFunction k);
272#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) 272#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL)
273 273
274LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, 274LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
275 lua_Kcontext ctx, lua_KFunction k); 275 lua_KContext ctx, lua_KFunction k);
276#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) 276#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL)
277 277
278LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, 278LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
@@ -285,7 +285,7 @@ LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
285/* 285/*
286** coroutine functions 286** coroutine functions
287*/ 287*/
288LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_Kcontext ctx, 288LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx,
289 lua_KFunction k); 289 lua_KFunction k);
290#define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) 290#define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL)
291LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); 291LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);