summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-06-08 17:19:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-06-08 17:19:09 (GMT)
commit66051f76ca26cfef91f41c9df33a0ad1523e00ed (patch)
tree424526b1c3a4edcf10e4e24ab7b6741a6d092573
parent0209d36677da9f01d910adf104ed84f066cc1ece (diff)
parentf5b6f91e7a334f96572f303116009f8d1304bed4 (diff)
downloadtcl-66051f76ca26cfef91f41c9df33a0ad1523e00ed.zip
tcl-66051f76ca26cfef91f41c9df33a0ad1523e00ed.tar.gz
tcl-66051f76ca26cfef91f41c9df33a0ad1523e00ed.tar.bz2
Stop documentation lie about command rename traces and comment lie about
what's done with them in TclOO.
-rw-r--r--doc/TraceCmd.32
-rw-r--r--generic/tclOO.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/TraceCmd.3 b/doc/TraceCmd.3
index db2f5d5..fccc0c6 100644
--- a/doc/TraceCmd.3
+++ b/doc/TraceCmd.3
@@ -78,7 +78,7 @@ created. \fIClientData\fR typically points to an application-specific
data structure that describes what to do when \fIproc\fR is invoked.
\fIOldName\fR gives the name of the command being renamed, and
\fInewName\fR gives the name that the command is being renamed to (or
-an empty string or NULL when the command is being deleted.)
+NULL when the command is being deleted.)
\fIFlags\fR is an OR'ed combination of bits potentially providing
several pieces of information. One of the bits \fBTCL_TRACE_RENAME\fR and
\fBTCL_TRACE_DELETE\fR will be set in \fIflags\fR to indicate which
diff --git a/generic/tclOO.c b/generic/tclOO.c
index e2ef1ae..84bb85a 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -793,7 +793,7 @@ ObjectRenamedTrace(
ClientData clientData, /* The object being deleted. */
Tcl_Interp *interp, /* The interpreter containing the object. */
const char *oldName, /* What the object was (last) called. */
- const char *newName, /* Always NULL. */
+ const char *newName, /* What it's getting renamed to. (unused) */
int flags) /* Why was the object deleted? */
{
Object *oPtr = clientData;