summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-27 12:49:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-27 12:49:05 (GMT)
commit168a0bba1650102be5923b6e26a769019cee094a (patch)
treefc6c34f6a94f422e2381440eb991993f8c5b5d16 /doc
parent020fea0acd1d6213f31169581c9fb02bc5a9f82b (diff)
parent50f0f668e5ac2393dd2e8200726bc0ac3efb6d03 (diff)
downloadtcl-168a0bba1650102be5923b6e26a769019cee094a.zip
tcl-168a0bba1650102be5923b6e26a769019cee094a.tar.gz
tcl-168a0bba1650102be5923b6e26a769019cee094a.tar.bz2
Merge 8.7. Modify various other functions to use size_t in stead of int arguments
Diffstat (limited to 'doc')
-rw-r--r--doc/AddErrInfo.34
-rw-r--r--doc/ByteArrObj.34
-rw-r--r--doc/DString.36
-rw-r--r--doc/StringObj.32
4 files changed, 8 insertions, 8 deletions
diff --git a/doc/AddErrInfo.3 b/doc/AddErrInfo.3
index 5756f20..10052cf 100644
--- a/doc/AddErrInfo.3
+++ b/doc/AddErrInfo.3
@@ -58,10 +58,10 @@ unless \fIlength\fR is negative.
.AP Tcl_Obj *objPtr in
A message to be appended to the \fB\-errorinfo\fR return option
in the form of a Tcl_Obj value.
-.AP int length in
+.AP size_t length in
The number of bytes to copy from \fImessage\fR when
appending to the \fB\-errorinfo\fR return option.
-If negative, all bytes up to the first null byte are used.
+If (size_t)-1, all bytes up to the first null byte are used.
.AP Tcl_Obj *errorObjPtr in
The \fB\-errorcode\fR return option will be set to this value.
.AP char *element in
diff --git a/doc/ByteArrObj.3 b/doc/ByteArrObj.3
index ff0b4e1..d6947eb 100644
--- a/doc/ByteArrObj.3
+++ b/doc/ByteArrObj.3
@@ -29,8 +29,8 @@ unsigned char *
.AP "const unsigned char" *bytes in
The array of bytes used to initialize or set a byte-array value. May be NULL
even if \fIlength\fR is non-zero.
-.AP int length in
-The length of the array of bytes. It must be >= 0.
+.AP size_t length in
+The length of the array of bytes.
.AP Tcl_Obj *objPtr in/out
For \fBTcl_SetByteArrayObj\fR, this points to the value to be converted to
byte-array type. For \fBTcl_GetByteArrayFromObj\fR and
diff --git a/doc/DString.3 b/doc/DString.3
index b93f119..d35e688 100644
--- a/doc/DString.3
+++ b/doc/DString.3
@@ -47,10 +47,10 @@ Pointer to structure that is used to manage a dynamic string.
Pointer to characters to append to dynamic string.
.AP "const char" *element in
Pointer to characters to append as list element to dynamic string.
-.AP int length in
-Number of bytes from \fIbytes\fR to add to dynamic string. If -1,
+.AP size_t length in
+Number of bytes from \fIbytes\fR to add to dynamic string. If (size_t)-1,
add all characters up to null terminating character.
-.AP int newLength in
+.AP size_t newLength in
New length for dynamic string, not including null terminating
character.
.AP Tcl_Interp *interp in/out
diff --git a/doc/StringObj.3 b/doc/StringObj.3
index fed362c..c805f7a 100644
--- a/doc/StringObj.3
+++ b/doc/StringObj.3
@@ -104,7 +104,7 @@ unless \fInumChars\fR is negative.
The number of Unicode characters to copy from \fIunicode\fR when
initializing, setting, or appending to a string value.
If negative, all characters up to the first null character are used.
-.AP int index in
+.AP size_t index in
The index of the Unicode character to return.
.AP int first in
The index of the first Unicode character in the Unicode range to be