diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-07-21 11:33:58 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-07-21 11:33:58 -0300 |
commit | 8a32e0aa4afdfd575c329ce62baaf7a14888ed3b (patch) | |
tree | af8ffff15fdc1b0555c5d4b597b257cacc25ef05 | |
parent | dbdc74dc5502c2e05e1c1e2ac894943f418c8431 (diff) | |
download | lua-8a32e0aa4afdfd575c329ce62baaf7a14888ed3b.tar.gz lua-8a32e0aa4afdfd575c329ce62baaf7a14888ed3b.tar.bz2 lua-8a32e0aa4afdfd575c329ce62baaf7a14888ed3b.zip |
Correction on documentation of string-buffer operations
All string-buffer operations can potentially change the stack in
unspecified ways; the push/pop documentation in the manual should
reflect that.
-rw-r--r-- | manual/manual.of | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manual/manual.of b/manual/manual.of index 8cf0abfc..67d3b7e1 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -5144,7 +5144,7 @@ Adds the byte @id{c} to the buffer @id{B} | |||
5144 | @APIEntry{ | 5144 | @APIEntry{ |
5145 | const void luaL_addgsub (luaL_Buffer *B, const char *s, | 5145 | const void luaL_addgsub (luaL_Buffer *B, const char *s, |
5146 | const char *p, const char *r);| | 5146 | const char *p, const char *r);| |
5147 | @apii{0,0,m} | 5147 | @apii{?,?,m} |
5148 | 5148 | ||
5149 | Adds a copy of the string @id{s} to the buffer @id{B} @seeC{luaL_Buffer}, | 5149 | Adds a copy of the string @id{s} to the buffer @id{B} @seeC{luaL_Buffer}, |
5150 | replacing any occurrence of the string @id{p} | 5150 | replacing any occurrence of the string @id{p} |
@@ -5181,7 +5181,7 @@ to the buffer @id{B} | |||
5181 | } | 5181 | } |
5182 | 5182 | ||
5183 | @APIEntry{void luaL_addvalue (luaL_Buffer *B);| | 5183 | @APIEntry{void luaL_addvalue (luaL_Buffer *B);| |
5184 | @apii{1,?,m} | 5184 | @apii{?,?,m} |
5185 | 5185 | ||
5186 | Adds the value on the top of the stack | 5186 | Adds the value on the top of the stack |
5187 | to the buffer @id{B} | 5187 | to the buffer @id{B} |
@@ -5304,7 +5304,7 @@ Note that any addition to the buffer may invalidate this address. | |||
5304 | } | 5304 | } |
5305 | 5305 | ||
5306 | @APIEntry{void luaL_buffinit (lua_State *L, luaL_Buffer *B);| | 5306 | @APIEntry{void luaL_buffinit (lua_State *L, luaL_Buffer *B);| |
5307 | @apii{0,0,-} | 5307 | @apii{0,?,-} |
5308 | 5308 | ||
5309 | Initializes a buffer @id{B} | 5309 | Initializes a buffer @id{B} |
5310 | @seeC{luaL_Buffer}. | 5310 | @seeC{luaL_Buffer}. |
@@ -5330,7 +5330,7 @@ Equivalent to the sequence | |||
5330 | } | 5330 | } |
5331 | 5331 | ||
5332 | @APIEntry{void luaL_buffsub (luaL_Buffer *B, int n);| | 5332 | @APIEntry{void luaL_buffsub (luaL_Buffer *B, int n);| |
5333 | @apii{0,0,-} | 5333 | @apii{?,?,-} |
5334 | 5334 | ||
5335 | Removes @id{n} bytes from the the buffer @id{B} | 5335 | Removes @id{n} bytes from the the buffer @id{B} |
5336 | @seeC{luaL_Buffer}. | 5336 | @seeC{luaL_Buffer}. |