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.
This commit is contained in:
Roberto Ierusalimschy
2019-04-26 11:24:39 -03:00
parent 969b8c1f14
commit b36e26f51b
2 changed files with 73 additions and 56 deletions

View File

@@ -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