diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-05-16 10:58:21 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-06-15 15:33:48 (GMT) |
commit | d4c5d99bcbf614e31e4f724319437e82d7f2a208 (patch) | |
tree | 84028219313ee62cc4bcccec2e3e2604e56c9dac /libs/lua/src/lfunc.h | |
parent | db243c1d343781a1466e1b863e174427cd37e37f (diff) | |
download | fluxbox_pavel-d4c5d99bcbf614e31e4f724319437e82d7f2a208.zip fluxbox_pavel-d4c5d99bcbf614e31e4f724319437e82d7f2a208.tar.bz2 |
Add lua as an internal library in libs/lua
Diffstat (limited to 'libs/lua/src/lfunc.h')
-rw-r--r-- | libs/lua/src/lfunc.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libs/lua/src/lfunc.h b/libs/lua/src/lfunc.h new file mode 100644 index 0000000..a68cf51 --- /dev/null +++ b/libs/lua/src/lfunc.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $ | ||
3 | ** Auxiliary functions to manipulate prototypes and closures | ||
4 | ** See Copyright Notice in lua.h | ||
5 | */ | ||
6 | |||
7 | #ifndef lfunc_h | ||
8 | #define lfunc_h | ||
9 | |||
10 | |||
11 | #include "lobject.h" | ||
12 | |||
13 | |||
14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ | ||
15 | cast(int, sizeof(TValue)*((n)-1))) | ||
16 | |||
17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ | ||
18 | cast(int, sizeof(TValue *)*((n)-1))) | ||
19 | |||
20 | |||
21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); | ||
22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); | ||
23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); | ||
24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); | ||
25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); | ||
26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); | ||
27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); | ||
28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); | ||
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); | ||
32 | |||
33 | |||
34 | #endif | ||