summaryrefslogtreecommitdiffstats
path: root/doc/SetResult.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-03 10:01:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-03 10:01:20 (GMT)
commitef0bb68bcb7408ec078badf8cacadd093cd1eac8 (patch)
tree56b8535b4c3d6b69e3a947d6465634b6697a38aa /doc/SetResult.3
parent382a840e2338278254e6f05f541711cec9df065e (diff)
downloadtcl-ef0bb68bcb7408ec078badf8cacadd093cd1eac8.zip
tcl-ef0bb68bcb7408ec078badf8cacadd093cd1eac8.tar.gz
tcl-ef0bb68bcb7408ec078badf8cacadd093cd1eac8.tar.bz2
Initialize legacyFreeProc with invalid value: This will result in
a crash immediately, when an extention tries to call it, in stead of crashing some time later.... Remove some more legacy regarding accessing interp->result
Diffstat (limited to 'doc/SetResult.3')
-rw-r--r--doc/SetResult.314
1 files changed, 4 insertions, 10 deletions
diff --git a/doc/SetResult.3 b/doc/SetResult.3
index bbeedf1..c863c5a 100644
--- a/doc/SetResult.3
+++ b/doc/SetResult.3
@@ -199,17 +199,11 @@ change \fIinterp->result\fR or clear error state.
is about to replace one result value with another.
.SS "DIRECT ACCESS TO INTERP->RESULT"
.PP
-It used to be legal for programs to
-directly read and write \fIinterp->result\fR
-to manipulate the interpreter result. The Tcl headers no longer
-permit this access by default, and C code still doing this must
-be updated to use supported routines \fBTcl_GetObjResult\fR,
+It used to be legal for programs to directly read and write
+\fIinterp->result\fR to manipulate the interpreter result.
+The Tcl headers no longer permit this access, and C code still
+doing this must be updated to use supported routines \fBTcl_GetObjResult\fR,
\fBTcl_GetStringResult\fR, \fBTcl_SetObjResult\fR, and \fBTcl_SetResult\fR.
-As a migration aid, access can be restored with the compiler directive
-.CS
-#define USE_INTERP_RESULT
-.CE
-but this is meant only to offer life support to otherwise dead code.
.SH "THE TCL_FREEPROC ARGUMENT TO TCL_SETRESULT"
.PP
\fBTcl_SetResult\fR's \fIfreeProc\fR argument specifies how