Fix report_mount_progress never calling set_progress_header
[zfs.git] / module / lua / lfunc.h
blob59a4fa75c46efd8e848b8619e6362f43e02b74c5
1 /* BEGIN CSTYLED */
2 /*
3 ** $Id: lfunc.h,v 2.8.1.1 2013/04/12 18:48:47 roberto Exp $
4 ** Auxiliary functions to manipulate prototypes and closures
5 ** See Copyright Notice in lua.h
6 */
8 #ifndef lfunc_h
9 #define lfunc_h
12 #include "lobject.h"
15 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
16 cast(int, sizeof(TValue)*((n)-1)))
18 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
19 cast(int, sizeof(TValue *)*((n)-1)))
22 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
23 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
24 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
25 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
26 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
28 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
30 LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
31 int pc);
34 #endif
35 /* END CSTYLED */