diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-26 11:24:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-26 11:24:39 -0300 |
commit | b36e26f51b117df98f0f5376f352c2381df3025f (patch) | |
tree | 08746cdf1eb94110e4cf92e5b9ca9e98020e8514 /testes | |
parent | 969b8c1f14f69c1406f00df3b5f375a9efb7b78f (diff) | |
download | lua-b36e26f51b117df98f0f5376f352c2381df3025f.tar.gz lua-b36e26f51b117df98f0f5376f352c2381df3025f.tar.bz2 lua-b36e26f51b117df98f0f5376f352c2381df3025f.zip |
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.
Diffstat (limited to 'testes')
-rw-r--r-- | testes/strings.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
458 | 458 | ||
459 | str = string.rep("a", blen - 1) .. "%p" .. string.rep("cd", blen) | 459 | str = string.rep("a", blen - 1) .. "%p" .. string.rep("cd", blen) |
460 | testpfs("P", str, {}) | 460 | testpfs("P", str, {}) |
461 | |||
462 | str = string.rep("%%", 3 * blen) .. "%p" .. string.rep("%%", 2 * blen) | ||
463 | testpfs("P", str, {}) | ||
461 | end | 464 | end |
462 | 465 | ||
463 | 466 | ||