diff options
Diffstat (limited to 'doc/ExprLongObj.3')
| -rw-r--r-- | doc/ExprLongObj.3 | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/doc/ExprLongObj.3 b/doc/ExprLongObj.3 index 59413e1..9dd7f0b 100644 --- a/doc/ExprLongObj.3 +++ b/doc/ExprLongObj.3 @@ -3,7 +3,7 @@ '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. -'\" +'\" .TH Tcl_ExprLongObj 3 8.0 Tcl "Tcl Library Procedures" .so man.macros .BS @@ -29,7 +29,7 @@ int .AP Tcl_Interp *interp in Interpreter in whose context to evaluate \fIobjPtr\fR. .AP Tcl_Obj *objPtr in -Pointer to a value containing the expression to evaluate. +Pointer to an object containing the expression to evaluate. .AP long *longPtr out Pointer to location in which to store the integer value of the expression. @@ -40,7 +40,7 @@ expression. Pointer to location in which to store the 0/1 boolean value of the expression. .AP Tcl_Obj **resultPtrPtr out -Pointer to location in which to store a pointer to the value +Pointer to location in which to store a pointer to the object that is the result of the expression. .BE @@ -93,23 +93,14 @@ or or else an error occurs. .PP If \fBTcl_ExprObj\fR successfully evaluates the expression, -it stores a pointer to the Tcl value +it stores a pointer to the Tcl object containing the expression's value at \fI*resultPtrPtr\fR. In this case, the caller is responsible for calling -\fBTcl_DecrRefCount\fR to decrement the value's reference count -when it is finished with the value. -.SH "REFERENCE COUNT MANAGEMENT" -.PP -\fBTcl_ExprLongObj\fR, \fBTcl_ExprDoubleObj\fR, -\fBTcl_ExprBooleanObj\fR, and \fBTcl_ExprObj\fR all increment and -decrement the reference count of their \fIobjPtr\fR arguments; you -must not pass them any value with a reference count of zero. They also -manipulate the interpreter result; you must not count on the -interpreter result to hold the reference count of any value over these -calls. +\fBTcl_DecrRefCount\fR to decrement the object's reference count +when it is finished with the object. .SH "SEE ALSO" Tcl_ExprLong, Tcl_ExprDouble, Tcl_ExprBoolean, Tcl_ExprString, Tcl_GetObjResult .SH KEYWORDS -boolean, double, evaluate, expression, integer, value, string +boolean, double, evaluate, expression, integer, object, string |
