diff options
Diffstat (limited to 'doc/BoolObj.3')
-rw-r--r-- | doc/BoolObj.3 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/BoolObj.3 b/doc/BoolObj.3 index 2306350..c6409dc 100644 --- a/doc/BoolObj.3 +++ b/doc/BoolObj.3 @@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: BoolObj.3,v 1.2 1998/09/14 18:39:46 stanton Exp $ +'\" RCS: @(#) $Id: BoolObj.3,v 1.3 2002/08/07 17:13:56 msofer Exp $ '\" .so man.macros .TH Tcl_BooleanObj 3 8.0 Tcl "Tcl Library Procedures" @@ -75,6 +75,12 @@ Otherwise, \fBTcl_GetBooleanFromObj\fR returns \fBTCL_OK\fR and stores the boolean value in the address given by \fIboolPtr\fR. If the object is not already a boolean object, the conversion will free any old internal representation. +Objects having a string representation equal to any of \fB0\fR, +\fBfalse\fR, \fBno\fR, or \fBoff\fR have a boolean value 0; if the +string representation is any of \fB1\fR, \fBtrue\fR, \fByes\fR, or +\fBon\fR the boolean value is 1. +Any of these string values may be abbreviated, and upper-case spellings +are also acceptable. .SH "SEE ALSO" Tcl_NewObj, Tcl_DecrRefCount, Tcl_IncrRefCount, Tcl_GetObjResult |