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

@@ -667,7 +667,7 @@ static int g_write (lua_State *L, FILE *f, int arg) {
for (; nargs--; arg++) {
char buff[LUA_N2SBUFFSZ];
const char *s;
size_t len = lua_numbertostrbuff(L, arg, buff); /* try as a number */
size_t len = lua_numbertocstring(L, arg, buff); /* try as a number */
if (len > 0) { /* did conversion work (value was a number)? */
s = buff;
len--;