| 1054 | LUALIB_API int (luaopen_bit) (lua_State *L); |
| 1055 | |
| 1056 | void luaLoadLibraries(lua_State *lua) { |
| 1057 | luaLoadLib(lua, "", luaopen_base); |
| 1058 | luaLoadLib(lua, LUA_TABLIBNAME, luaopen_table); |
| 1059 | luaLoadLib(lua, LUA_STRLIBNAME, luaopen_string); |
| 1060 | luaLoadLib(lua, LUA_MATHLIBNAME, luaopen_math); |
| 1061 | luaLoadLib(lua, LUA_DBLIBNAME, luaopen_debug); |
| 1062 | luaLoadLib(lua, "cjson", luaopen_cjson); |
| 1063 | luaLoadLib(lua, "struct", luaopen_struct); |
| 1064 | luaLoadLib(lua, "cmsgpack", luaopen_cmsgpack); |
| 1065 | luaLoadLib(lua, "bit", luaopen_bit); |
| 1066 | |
| 1067 | #if 0 /* Stuff that we don't load currently, for sandboxing concerns. */ |
| 1068 | luaLoadLib(lua, LUA_LOADLIBNAME, luaopen_package); |
| 1069 | luaLoadLib(lua, LUA_OSLIBNAME, luaopen_os); |
| 1070 | #endif |
| 1071 | } |
| 1072 | |
| 1073 | /* Remove a functions that we don't want to expose to the Redis scripting |
| 1074 | * environment. */ |
no test coverage detected