summaryrefslogtreecommitdiffstats
path: root/doc/ListObj.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-24 13:15:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-24 13:15:53 (GMT)
commitf0b58b55b62e4dea5694b49b1bd846839cbef1f3 (patch)
treefe18b00adfed90c061548af41cd70a62cecc513d /doc/ListObj.3
parent2ca7ab9af0d59c9907dde3d844e1785d33df4812 (diff)
parent423df1f681b111dff8a5633b5aaa6e0049aaeddf (diff)
downloadtcl-f0b58b55b62e4dea5694b49b1bd846839cbef1f3.zip
tcl-f0b58b55b62e4dea5694b49b1bd846839cbef1f3.tar.gz
tcl-f0b58b55b62e4dea5694b49b1bd846839cbef1f3.tar.bz2
Merge 8.5.
Fix regression in Tcl_UtfComplete(), actually already present for longer time but masked by error in TclUtfNext() macro. Adapt expectations accordingly ("/xA0/xA0" should really have length 2 ....)
Diffstat (limited to 'doc/ListObj.3')
-rw-r--r--doc/ListObj.34
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/ListObj.3 b/doc/ListObj.3
index dc1ba53..ab836d8 100644
--- a/doc/ListObj.3
+++ b/doc/ListObj.3
@@ -138,7 +138,9 @@ create a new value or modify an existing value to hold
the \fIobjc\fR elements of the array referenced by \fIobjv\fR
where each element is a pointer to a Tcl value.
If \fIobjc\fR is less than or equal to zero,
-they return an empty value.
+they return an empty value. If \fIobjv\fR is NULL, the resulting list
+contains 0 elements, with reserved space in an internal representation
+for \fIobjc\fR more elements (to avoid its reallocation later).
The new value's string representation is left invalid.
The two procedures increment the reference counts
of the elements in \fIobjc\fR since the list value now refers to them.