summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-10-02 20:59:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-10-02 20:59:45 (GMT)
commit1c72973d895e9efb23ecda2553cee0a5a901f650 (patch)
tree8a07cbfafbc8c5b8fea073e97921199f1cd90377 /generic/tclResult.c
parent5e54f02d48ca1b26bb819e05b20b49b8012224d4 (diff)
downloadtcl-1c72973d895e9efb23ecda2553cee0a5a901f650.zip
tcl-1c72973d895e9efb23ecda2553cee0a5a901f650.tar.gz
tcl-1c72973d895e9efb23ecda2553cee0a5a901f650.tar.bz2
TIP #330 IMPLEMENTATION
* generic/tcl.h: Remove the "result" and "freeProc" fields * generic/tclBasic.c: from the default public declaration of the * generic/tclResult.c: Tcl_Interp struct. Code should no longer * generic/tclStubLib.c: be accessing these fields. Access can be * generic/tclTest.c: restored by defining USE_INTERP_RESULT, but * generic/tclUtil.c: that should only be a temporary migration aid. *** POTENTIAL INCOMPATIBILITY ***
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index ea62946..b91d6ef 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclResult.c,v 1.48 2008/04/27 22:21:32 dkf Exp $
+ * RCS: @(#) $Id: tclResult.c,v 1.49 2008/10/02 20:59:45 dgp Exp $
*/
#include "tclInt.h"
@@ -471,11 +471,12 @@ Tcl_GetStringResult(
* result, then reset the object result.
*/
- if (*(interp->result) == 0) {
+ Interp* iPtr = (Interp*) interp;
+ if (*(iPtr->result) == 0) {
Tcl_SetResult(interp, TclGetString(Tcl_GetObjResult(interp)),
TCL_VOLATILE);
}
- return interp->result;
+ return iPtr->result;
}
/*