/** * The "os" library provides runtime level functionality such as event handling and timers. */ LUAMOD_API int luaopen_event(sexe_t *L) { luaL_newlib(L, sexe_event_lib); return 1; }
LUAMOD_API int luaopen_os (lua_State *L) { luaL_newlib(L, syslib); return 1; }
int luaUqm_log_open(lua_State *luaState) { luaL_newlib(luaState, logFuncs); return 1; }
LUALIB_API int luaopen_module_ruby(lua_State *l) { luaL_newlib(l, module_ruby); return 1; }
LUAMOD_API int luaopen_utf8 (lua_State *L) { luaL_newlib(L, funcs); lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT)/sizeof(char) - 1); lua_setfield(L, -2, "charpattern"); return 1; }
int luaopen_mylib(lua_State *L){ luaL_newlib(L, mylib); return 1; }
int luaopen_tuple(lua_State *L) { luaL_newlib(L, tuplelib); return 1; }
int Key_lua::regmod(lua_State *L) { // We don't really have any functions to put here right now static const luaL_Reg _funcs[] = { {NULL, NULL} }; // VK list: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx static const VK_NAME_PAIR _vks[] = { {"VK_LMOUSE", VK_LBUTTON}, {"VK_RMOUSE", VK_RBUTTON}, {"VK_CANCEL", VK_CANCEL}, {"VK_MMOUSE", VK_MBUTTON}, {"VK_XMOUSE1", VK_XBUTTON1}, {"VK_XMOUSE2", VK_XBUTTON2}, {"VK_BACKSPACE", VK_BACK}, {"VK_TAB", VK_TAB}, {"VK_RETURN", VK_RETURN}, {"VK_ENTER", VK_RETURN}, {"VK_SHIFT", VK_SHIFT}, {"VK_CONTROL", VK_CONTROL}, {"VK_ALT", VK_MENU}, {"VK_MENU", VK_MENU}, {"VK_PAUSE", VK_PAUSE}, {"VK_CAPITAL", VK_CAPITAL}, {"VK_CAPSLOCK", VK_CAPITAL}, {"VK_ESCAPE", VK_ESCAPE}, {"VK_SPACE", VK_SPACE}, {"VK_PRIOR", VK_PRIOR}, {"VK_PAGEUP", VK_PRIOR}, {"VK_NEXT", VK_NEXT}, {"VK_PAGEDOWN", VK_NEXT}, {"VK_END", VK_END}, {"VK_HOME", VK_HOME}, {"VK_LEFT", VK_LEFT}, {"VK_UP", VK_UP}, {"VK_RIGHT", VK_RIGHT}, {"VK_DOWN", VK_DOWN}, {"VK_PRINT", VK_PRINT}, {"VK_PRINTSCREEN", VK_SNAPSHOT}, {"VK_SNAPSHOT", VK_SNAPSHOT}, {"VK_INSERT", VK_INSERT}, {"VK_DELETE", VK_DELETE}, {"VK_HELP", VK_HELP}, {"VK_0", 0x30}, // Number row; not numpad {"VK_1", 0x31}, {"VK_2", 0x32}, {"VK_3", 0x33}, {"VK_4", 0x34}, {"VK_5", 0x35}, {"VK_6", 0x36}, {"VK_7", 0x37}, {"VK_8", 0x38}, {"VK_9", 0x39}, // 3A - 40 undefined {"VK_A", 0x41}, {"VK_B", 0x42}, {"VK_C", 0x43}, {"VK_D", 0x44}, {"VK_E", 0x45}, {"VK_F", 0x46}, {"VK_G", 0x47}, {"VK_H", 0x48}, {"VK_I", 0x49}, {"VK_J", 0x4A}, {"VK_K", 0x4B}, {"VK_L", 0x4C}, {"VK_M", 0x4D}, {"VK_N", 0x4E}, {"VK_O", 0x4F}, {"VK_P", 0x50}, {"VK_Q", 0x51}, {"VK_R", 0x52}, {"VK_S", 0x53}, {"VK_T", 0x54}, {"VK_U", 0x55}, {"VK_V", 0x56}, {"VK_W", 0x57}, {"VK_X", 0x58}, {"VK_Y", 0x59}, {"VK_Z", 0x5A}, {"VK_LWINDOWS", VK_LWIN}, {"VK_LWIN", VK_LWIN}, {"VK_RWINDOWS", VK_RWIN}, {"VK_RWIN", VK_RWIN}, {"VK_APPS", VK_APPS}, {"VK_SLEEP", VK_SLEEP}, {"VK_NUMPAD0", VK_NUMPAD0}, // Ok, NOW it's numpad time {"VK_NUMPAD1", VK_NUMPAD1}, {"VK_NUMPAD2", VK_NUMPAD2}, {"VK_NUMPAD3", VK_NUMPAD3}, {"VK_NUMPAD4", VK_NUMPAD4}, {"VK_NUMPAD5", VK_NUMPAD5}, {"VK_NUMPAD6", VK_NUMPAD6}, {"VK_NUMPAD7", VK_NUMPAD7}, {"VK_NUMPAD8", VK_NUMPAD8}, {"VK_NUMPAD9", VK_NUMPAD9}, {"VK_MULTIPLY", VK_MULTIPLY}, {"VK_ADD", VK_ADD}, {"VK_SUBTRACT", VK_SUBTRACT}, {"VK_DECIMAL", VK_DECIMAL}, {"VK_DIVIDE", VK_DIVIDE}, {"VK_F1", VK_F1}, {"VK_F2", VK_F2}, {"VK_F3", VK_F3}, {"VK_F4", VK_F4}, {"VK_F5", VK_F5}, {"VK_F6", VK_F6}, {"VK_F7", VK_F7}, {"VK_F8", VK_F8}, {"VK_F9", VK_F9}, {"VK_F10", VK_F10}, {"VK_F11", VK_F11}, {"VK_F12", VK_F12}, // F**k VK_F13 - VK_F24, does this even exist? {"VK_NUMLOCK", VK_NUMLOCK}, {"VK_SCROLL", VK_SCROLL}, {"VK_LSHIFT", VK_LSHIFT}, {"VK_RSHIFT", VK_RSHIFT}, {"VK_LCONTROL", VK_LCONTROL}, {"VK_RCONTROL", VK_RCONTROL}, {"VK_LMENU", VK_LMENU}, {"VK_LALT", VK_LMENU}, {"VK_RMENU", VK_RMENU}, {"VK_RALT", VK_RMENU}, {"VK_PLUS", VK_OEM_PLUS}, {"VK_COMMA", VK_OEM_COMMA}, {"VK_PERIOD", VK_OEM_PERIOD}, {NULL, 0} // NULL terminator }; // Create module luaL_newlib(L, _funcs); // Push our load of VKs as variables int i = 0; while(_vks[i].name) { lua_pushnumber(L, _vks[i].vk); lua_setfield(L, -2, _vks[i].name); i++; } // Set the module lua_setglobal(L, KEY_MODULE_NAME); return MicroMacro::ERR_OK; }
int moonbase_image_initialize( lua_State *s ) { luaL_newlib( s, moonbase_image_methods ); return 1; }
int luaopen_voice(lua_State *L) { luaL_newlib(L, voice_methods); return 1; }
int luaopen_factidC(lua_State *L) { luaL_newlib(L, F); return 1; }
LUALIB_API int luaopen_mat3( lua_State *L) { lua_make_table_mat3( L); luaL_newlib( L, mat3); return 1; }
LUALIB_API int luaopen_symmetric( lua_State * const L ) { luaL_newlib( L, luasymmetric_lib ); return 1; }
LUAMOD_API int luaopen_m_popup(lua_State *L) { luaL_newlib(L, popupApi); return 1; }
int luaopen_ui(lua_State* L) { luaL_newlib(L, uilib); lua_setglobal(L,"ui"); return 1; }
LUALIB_API int luaopen_binmodule_dots(lua_State *L) { luaL_newlib(L, binmodule_dotslib); return 1; }
LUALIB_API int luaopen_bci(lua_State *L) { luaL_newlib(L,R); return 1; }
int luaopen_ldbus_connection(lua_State *L) { luaL_newlib(L, ldbus_connection); return 1; }
extern "C" __declspec(dllexport) int luaopen_SampleLoadBalancingAlgorithmModule(lua_State* L) { luaL_newlib(L, module_functions); return 1; }
LUAMOD_API int luaopen_m_protocols(lua_State *L) { luaL_newlib(L, protocolsApi); return 1; }
int luaopen_mono (lua_State *L) { luaL_newlib (L, R); return 1; }
LUALIB_API int luaopen_fcgi( lua_State * const L ) { luaL_newlib( L, luafcgi_lib ); return 1; }
/* ** Open string library */ LUAMOD_API int luaopen_string (lua_State *L) { luaL_newlib(L, strlib); createmetatable(L); return 1; }
// Opens part of the __runtimeinternal library. This will be later extended // by the external user of the runtime by calling TenshiRegisterCFunctions. static int tenshi_open_runtimeinternal(lua_State *L) { luaL_newlib(L, tenshi_runtimeinternal); return 1; }
LUAMOD_API int luaopen_coroutine (lua_State *L) { luaL_newlib(L, co_funcs); return 1; }
int luaopen_event_dispatcher(lua_State * L) { luaL_newlib(L, l_event_dispatcher); return 1; }
LUAMOD_API int luaopen_debug (lua_State *L) { luaL_newlib(L, dblib); return 1; }
extern "C" LUAMOD_API int luaopen_m_variables(lua_State *L) { luaL_newlib(L, variablesApi); return 1; }
static int openlib_blitwizard(lua_State* l) { // add an empty "blitwizard" lib namespace static const struct luaL_Reg blitwizlib[] = { {NULL, NULL} }; luaL_newlib(l, blitwizlib); return 1; }
LUAMOD_API int luaopen_m_icolib(lua_State *L) { luaL_newlib(L, icolibApi); return 1; }