aboutsummaryrefslogtreecommitdiff
path: root/lapi.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 /lapi.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 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 47d328ca..c0fd1a1b 100644
--- a/lapi.c
+++ b/lapi.c
@@ -366,7 +366,7 @@ LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) {
366} 366}
367 367
368 368
369LUA_API unsigned (lua_numbertostrbuff) (lua_State *L, int idx, char *buff) { 369LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) {
370 const TValue *o = index2value(L, idx); 370 const TValue *o = index2value(L, idx);
371 if (ttisnumber(o)) { 371 if (ttisnumber(o)) {
372 unsigned len = luaO_tostringbuff(o, buff); 372 unsigned len = luaO_tostringbuff(o, buff);
@@ -546,7 +546,7 @@ LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) {
546} 546}
547 547
548 548
549LUA_API const char *lua_pushextlstring (lua_State *L, 549LUA_API const char *lua_pushexternalstring (lua_State *L,
550 const char *s, size_t len, lua_Alloc falloc, void *ud) { 550 const char *s, size_t len, lua_Alloc falloc, void *ud) {
551 TString *ts; 551 TString *ts;
552 lua_lock(L); 552 lua_lock(L);