00001 /* 00002 ** $Id: lfunc.h,v 1.2 2004/03/23 05:09:14 jbj Exp $ 00003 ** Auxiliary functions to manipulate prototypes and closures 00004 ** See Copyright Notice in lua.h 00005 */ 00006 00007 #ifndef lfunc_h 00008 #define lfunc_h 00009 00010 00011 #include "lobject.h" 00012 00013 00014 /*@null@*/ 00015 Proto *luaF_newproto (lua_State *L) 00016 /*@modifies L @*/; 00017 /*@null@*/ 00018 Closure *luaF_newCclosure (lua_State *L, int nelems) 00019 /*@modifies L @*/; 00020 /*@null@*/ 00021 Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e) 00022 /*@modifies L @*/; 00023 /*@null@*/ 00024 UpVal *luaF_findupval (lua_State *L, StkId level) 00025 /*@modifies L @*/; 00026 void luaF_close (lua_State *L, StkId level) 00027 /*@modifies L @*/; 00028 void luaF_freeproto (lua_State *L, Proto *f) 00029 /*@modifies L, f @*/; 00030 void luaF_freeclosure (lua_State *L, Closure *c) 00031 /*@modifies L, c @*/; 00032 00033 /*@observer@*/ /*@null@*/ 00034 const char *luaF_getlocalname (const Proto *func, int local_number, int pc) 00035 /*@*/; 00036 00037 00038 #endif