commit | c65605151c5a335baf0a9ea251b19df5b2d3a905 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Apr 24 14:41:41 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Apr 24 14:41:41 2019 -0300 |
tree | e85f4f108e452abe87f0f30e137e4f0fa5bb45f3 | |
parent | 3da34a5fa70a51f0cf06d677a4f07b470693260c [diff] |
New function 'luaL_addgsub' Added a new function 'luaL_addgsub', similar to 'luaL_gsub' but that adds its result directly to a preexisting buffer, avoiding the creation of one extra intermediate string. Also added two simple macros, 'luaL_bufflen' and 'luaL_buffaddr', to query the current length and the contents address of a buffer.