Lines Matching refs:path

46 static void *ll_load (lua_State *L, const char *path);
68 static void *ll_load (lua_State *L, const char *path) { in ll_load() argument
69 void *lib = dlopen(path, RTLD_NOW); in ll_load()
127 static void *ll_load (lua_State *L, const char *path) { in ll_load() argument
128 HINSTANCE lib = LoadLibraryA(path); in ll_load()
191 static void *ll_load (lua_State *L, const char *path) { in ll_load() argument
199 ret = NSCreateObjectFileImageFromFile(path, &img); in ll_load()
201 NSModule mod = NSLinkModule(img, path, NSLINKMODULE_OPTION_PRIVATE | in ll_load()
244 static void *ll_load (lua_State *L, const char *path) { in ll_load() argument
245 (void)path; /* to avoid warnings */ in ll_load()
262 static void **ll_register (lua_State *L, const char *path) { in ll_register() argument
264 lua_pushfstring(L, "%s%s", LIBPREFIX, path); in ll_register()
274 lua_pushfstring(L, "%s%s", LIBPREFIX, path); in ll_register()
294 static int ll_loadfunc (lua_State *L, const char *path, const char *sym) { in ll_loadfunc() argument
295 void **reg = ll_register(L, path); in ll_loadfunc()
296 if (*reg == NULL) *reg = ll_load(L, path); in ll_loadfunc()
310 const char *path = luaL_checkstring(L, 1); in ll_loadlib() local
312 int stat = ll_loadfunc(L, path, init); in ll_loadlib()
340 static const char *pushnexttemplate (lua_State *L, const char *path) { in pushnexttemplate() argument
342 while (*path == *LUA_PATHSEP) path++; /* skip separators */ in pushnexttemplate()
343 if (*path == '\0') return NULL; /* no more templates */ in pushnexttemplate()
344 l = strchr(path, *LUA_PATHSEP); /* find next separator */ in pushnexttemplate()
345 if (l == NULL) l = path + strlen(path); in pushnexttemplate()
346 lua_pushlstring(L, path, l - path); /* template */ in pushnexttemplate()
353 const char *path; in findfile() local
356 path = lua_tostring(L, -1); in findfile()
357 if (path == NULL) in findfile()
360 while ((path = pushnexttemplate(L, path)) != NULL) { in findfile()
594 const char *path = getenv(envname); in setpath() local
595 if (path == NULL) /* no environment variable? */ in setpath()
599 path = luaL_gsub(L, path, LUA_PATHSEP LUA_PATHSEP, in setpath()
601 luaL_gsub(L, path, AUXMARK, def); in setpath()