aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-27 16:09:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-27 16:09:55 -0300
commitc4e7cdb541d89142056927ebdfd8f97017d38f45 (patch)
tree1e356b5b4eed75d86050bab3f12026d5a70697b6 /loadlib.c
parent7d7ae8781e64e2b3b212d5c7b7c1b98b694df5ef (diff)
downloadlua-c4e7cdb541d89142056927ebdfd8f97017d38f45.tar.gz
lua-c4e7cdb541d89142056927ebdfd8f97017d38f45.tar.bz2
lua-c4e7cdb541d89142056927ebdfd8f97017d38f45.zip
Renaming two new functions
'lua_numbertostrbuff' -> 'lua_numbertocstring' 'lua_pushextlstring' -> 'lua_pushexternalstring'
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadlib.c b/loadlib.c
index e5ed1352..5f0c1702 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -280,7 +280,7 @@ static void setpath (lua_State *L, const char *fieldname,
280 if (path == NULL) /* no versioned environment variable? */ 280 if (path == NULL) /* no versioned environment variable? */
281 path = getenv(envname); /* try unversioned name */ 281 path = getenv(envname); /* try unversioned name */
282 if (path == NULL || noenv(L)) /* no environment variable? */ 282 if (path == NULL || noenv(L)) /* no environment variable? */
283 lua_pushextlstring(L, dft, strlen(dft), NULL, NULL); /* use default */ 283 lua_pushexternalstring(L, dft, strlen(dft), NULL, NULL); /* use default */
284 else if ((dftmark = strstr(path, LUA_PATH_SEP LUA_PATH_SEP)) == NULL) 284 else if ((dftmark = strstr(path, LUA_PATH_SEP LUA_PATH_SEP)) == NULL)
285 lua_pushstring(L, path); /* nothing to change */ 285 lua_pushstring(L, path); /* nothing to change */
286 else { /* path contains a ";;": insert default path in its place */ 286 else { /* path contains a ";;": insert default path in its place */