From 3da34a5fa70a51f0cf06d677a4f07b470693260c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 24 Apr 2019 14:01:20 -0300 Subject: Revamp of 'lua_pushfstring' / 'luaO_pushvfstring' The function 'luaO_pushvfstring' now uses an internal buffer to concatenate small strings, instead of pushing all pieces on the stack. This avoids the creation of several small Lua strings for each piece of the result. (For instance, a format like "n: '%d'" used to create three intermediate strings: "n: '", the numeral, and "'". Now it creates none.) --- luaconf.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 76a61616..019f2eb6 100644 --- a/luaconf.h +++ b/luaconf.h @@ -578,13 +578,6 @@ #endif -/* -@@ lua_pointer2str converts a pointer to a readable string in a -** non-specified way. -*/ -#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) - - /* @@ lua_number2strx converts a float to a hexadecimal numeric string. ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. -- cgit v1.2.3-55-g6feb