MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / pushnexttemplate

Function pushnexttemplate

Source/Misc/lua/src/lua.c:13108–13116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13106
13107
13108static const char *pushnexttemplate (lua_State *L, const char *path) {
13109const char *l;
13110while (*path == *LUA_PATHSEP) path++; /* skip separators */
13111if (*path == '\0') return NULL; /* no more templates */
13112l = strchr(path, *LUA_PATHSEP); /* find next separator */
13113if (l == NULL) l = path + strlen(path);
13114lua_pushlstring(L, path, l - path); /* template */
13115return l;
13116}
13117
13118
13119static const char *findfile (lua_State *L, const char *name,

Callers 1

findfileFunction · 0.85

Calls 1

lua_pushlstringFunction · 0.85

Tested by

no test coverage detected