From b36e26f51b117df98f0f5376f352c2381df3025f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Apr 2019 11:24:39 -0300 Subject: Some more small improvements to 'luaO_pushvfstring' Details: - counter 'pushed' moved to the struct 'BuffFS' - new auxiliar function 'getbuff' to build strings directly on the buffer. --- testes/strings.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testes') diff --git a/testes/strings.lua b/testes/strings.lua index 66c1176d..bc123d1a 100644 --- a/testes/strings.lua +++ b/testes/strings.lua @@ -458,6 +458,9 @@ else str = string.rep("a", blen - 1) .. "%p" .. string.rep("cd", blen) testpfs("P", str, {}) + + str = string.rep("%%", 3 * blen) .. "%p" .. string.rep("%%", 2 * blen) + testpfs("P", str, {}) end -- cgit v1.2.3-55-g6feb