Lines Matching defs:script
4 #include "dlua-script-private.h"
10 struct dlua_script *script = dlua_script_from_state(L);
11 const char *msg = luaL_checkstring(script->L, 1);
18 struct dlua_script *script = dlua_script_from_state(L);
19 const char *msg = luaL_checkstring(script->L, 1);
26 struct dlua_script *script = dlua_script_from_state(L);
27 const char *msg = luaL_checkstring(script->L, 1);
34 struct dlua_script *script = dlua_script_from_state(L);
35 const char *msg = luaL_checkstring(script->L, 1);
48 void dlua_getdovecot(struct dlua_script *script)
50 lua_getglobal(script->L, LUA_SCRIPT_DOVECOT);
53 void dlua_dovecot_register(struct dlua_script *script)
56 lua_newtable(script->L);
59 luaL_newmetatable(script->L, LUA_SCRIPT_DOVECOT);
61 luaL_setfuncs(script->L, lua_dovecot_methods, 0);
63 lua_pushvalue(script->L, -1);
64 lua_setfield(script->L, -1, "__index");
66 lua_setmetatable(script->L, -2);
69 lua_setglobal(script->L, LUA_SCRIPT_DOVECOT);