summaryrefslogtreecommitdiff
path: root/contrib/tcl/doc/Preserve.3
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcl/doc/Preserve.3')
-rw-r--r--contrib/tcl/doc/Preserve.39
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/tcl/doc/Preserve.3 b/contrib/tcl/doc/Preserve.3
index ade7f041af78..a2c7d280634b 100644
--- a/contrib/tcl/doc/Preserve.3
+++ b/contrib/tcl/doc/Preserve.3
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" SCCS: @(#) Preserve.3 1.12 96/03/25 20:05:27
+'\" SCCS: @(#) Preserve.3 1.13 96/05/28 09:26:12
'\"
.so man.macros
.TH Tcl_Preserve 3 7.5 Tcl "Tcl Library Procedures"
@@ -81,10 +81,13 @@ All the work of freeing the object is carried out by \fIfreeProc\fR.
\fIFreeProc\fR must have arguments and result that match the
type \fBTcl_FreeProc\fR:
.CS
-typedef void Tcl_FreeProc(ClientData \fIclientData\fR);
+typedef void Tcl_FreeProc(char *\fIblockPtr\fR);
.CE
-The \fIclientData\fR argument to \fIfreeProc\fR will be the
+The \fIblockPtr\fR argument to \fIfreeProc\fR will be the
same as the \fIclientData\fR argument to \fBTcl_EventuallyFree\fR.
+The type of \fIblockPtr\fR (\fBchar *\fR) is different than the type of the
+\fIclientData\fR argument to \fBTcl_EventuallyFree\fR for historical
+reasons, but the value is the same.
.PP
This mechanism can be used to solve the problem described above
by placing \fBTcl_Preserve\fR and \fBTcl_Release\fR calls around