Renaming two new functions

'lua_numbertostrbuff' -> 'lua_numbertocstring'
'lua_pushextlstring' -> 'lua_pushexternalstring'
This commit is contained in:
Roberto Ierusalimschy
2025-01-27 16:09:55 -03:00
parent 7d7ae8781e
commit c4e7cdb541
7 changed files with 13 additions and 13 deletions

View File

@@ -1389,7 +1389,7 @@ static int checkpanic (lua_State *L) {
static int externKstr (lua_State *L) {
size_t len;
const char *s = luaL_checklstring(L, 1, &len);
lua_pushextlstring(L, s, len, NULL, NULL);
lua_pushexternalstring(L, s, len, NULL, NULL);
return 1;
}
@@ -1413,7 +1413,7 @@ static int externstr (lua_State *L) {
/* copy string content to buffer, including ending 0 */
memcpy(buff, s, (len + 1) * sizeof(char));
/* create external string */
lua_pushextlstring(L, buff, len, allocf, ud);
lua_pushexternalstring(L, buff, len, allocf, ud);
return 1;
}