aboutsummaryrefslogtreecommitdiff
path: root/ltests.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 /ltests.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 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index eaf3b251..e3037be3 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1389,7 +1389,7 @@ static int checkpanic (lua_State *L) {
1389static int externKstr (lua_State *L) { 1389static int externKstr (lua_State *L) {
1390 size_t len; 1390 size_t len;
1391 const char *s = luaL_checklstring(L, 1, &len); 1391 const char *s = luaL_checklstring(L, 1, &len);
1392 lua_pushextlstring(L, s, len, NULL, NULL); 1392 lua_pushexternalstring(L, s, len, NULL, NULL);
1393 return 1; 1393 return 1;
1394} 1394}
1395 1395
@@ -1413,7 +1413,7 @@ static int externstr (lua_State *L) {
1413 /* copy string content to buffer, including ending 0 */ 1413 /* copy string content to buffer, including ending 0 */
1414 memcpy(buff, s, (len + 1) * sizeof(char)); 1414 memcpy(buff, s, (len + 1) * sizeof(char));
1415 /* create external string */ 1415 /* create external string */
1416 lua_pushextlstring(L, buff, len, allocf, ud); 1416 lua_pushexternalstring(L, buff, len, allocf, ud);
1417 return 1; 1417 return 1;
1418} 1418}
1419 1419