Home
last modified time | relevance | path

Searched refs:modname (Results 1 – 7 of 7) sorted by relevance

/civetweb-2.7.6/src/third_party/lua-5.2.4/src/
Dloadlib.c419 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument
422 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc()
423 mark = strchr(modname, *LUA_IGMARK); in loadfunc()
426 funcname = lua_pushlstring(L, modname, mark - modname); in loadfunc()
430 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc()
432 funcname = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
570 static void modinit (lua_State *L, const char *modname) { in modinit() argument
574 lua_pushstring(L, modname); in modinit()
576 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
577 if (dot == NULL) dot = modname; in modinit()
[all …]
Dlauxlib.c810 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument
813 lua_getfield(L, -1, modname); /* get _LOADED[modname] */ in luaL_pushmodule()
818 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
819 luaL_error(L, "name conflict for module " LUA_QS, modname); in luaL_pushmodule()
821 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ in luaL_pushmodule()
886 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument
889 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref()
893 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ in luaL_requiref()
897 lua_setglobal(L, modname); /* _G[modname] = module */ in luaL_requiref()
Dlauxlib.h98 LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
200 LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/
Dloadlib.c512 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument
515 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc()
516 mark = strchr(modname, *LUA_IGMARK); in loadfunc()
519 openfunc = lua_pushlstring(L, modname, mark - modname); in loadfunc()
523 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc()
525 openfunc = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
658 static void modinit (lua_State *L, const char *modname) { in modinit() argument
662 lua_pushstring(L, modname); in modinit()
664 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
665 if (dot == NULL) dot = modname; in modinit()
[all …]
Dlauxlib.c897 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument
900 if (lua_getfield(L, -1, modname) != LUA_TTABLE) { /* no LOADED[modname]? */ in luaL_pushmodule()
904 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
905 luaL_error(L, "name conflict for module '%s'", modname); in luaL_pushmodule()
907 lua_setfield(L, -3, modname); /* LOADED[modname] = new table */ in luaL_pushmodule()
971 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument
974 lua_getfield(L, -1, modname); /* LOADED[modname] */ in luaL_requiref()
978 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref()
981 lua_setfield(L, -3, modname); /* LOADED[modname] = module */ in luaL_requiref()
986 lua_setglobal(L, modname); /* _G[modname] = module */ in luaL_requiref()
Dlauxlib.h106 LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
205 LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/
Dloadlib.c391 static const char *mkfuncname (lua_State *L, const char *modname) { in mkfuncname() argument
393 const char *mark = strchr(modname, *LUA_IGMARK); in mkfuncname()
394 if (mark) modname = mark + 1; in mkfuncname()
395 funcname = luaL_gsub(L, modname, ".", LUA_OFSEP); in mkfuncname()
529 static void modinit (lua_State *L, const char *modname) { in modinit() argument
533 lua_pushstring(L, modname); in modinit()
535 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
536 if (dot == NULL) dot = modname; in modinit()
539 lua_pushlstring(L, modname, dot - modname); in modinit()
545 const char *modname = luaL_checkstring(L, 1); in ll_module() local
[all …]