diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 13:16:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 13:16:17 (GMT) |
commit | d36655ac538d3611c8872323f5127ca460e06b5d (patch) | |
tree | 4f03b5e0c01e83adeec7e685e8ed6361c5619539 /doc/AddErrInfo.3 | |
parent | 6487dd7257ba0b956a051ba399b1500885760d5a (diff) | |
parent | b3605165596e32b3b22e931cae510f4b900290d7 (diff) | |
download | tcl-d36655ac538d3611c8872323f5127ca460e06b5d.zip tcl-d36655ac538d3611c8872323f5127ca460e06b5d.tar.gz tcl-d36655ac538d3611c8872323f5127ca460e06b5d.tar.bz2 |
Merge 8.7. Update documentation
Diffstat (limited to 'doc/AddErrInfo.3')
-rw-r--r-- | doc/AddErrInfo.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/AddErrInfo.3 b/doc/AddErrInfo.3 index b273c70..3968820 100644 --- a/doc/AddErrInfo.3 +++ b/doc/AddErrInfo.3 @@ -54,7 +54,7 @@ For \fBTcl_AddObjErrorInfo\fR, this points to the first byte of an array of \fIlength\fR bytes containing a string to append to the \fB\-errorinfo\fR return option. This byte array may contain embedded null bytes -unless \fIlength\fR is negative. +unless \fIlength\fR is TCL_INDEX_NONE. .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. @@ -227,7 +227,7 @@ embedded null bytes. This is essentially never a good idea. If the \fImessage\fR needs to contain the null character \fBU+0000\fR, Tcl's usual internal encoding rules should be used to avoid the need for a null byte. If the \fBTcl_AddObjErrorInfo\fR -interface is used at all, it should be with a negative \fIlength\fR value. +interface is used at all, it should be with a TCL_INDEX_NONE \fIlength\fR value. .PP The procedure \fBTcl_SetObjErrorCode\fR is used to set the \fB\-errorcode\fR return option to the list value \fIerrorObjPtr\fR |