summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-07-19 11:46:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-07-19 11:46:52 (GMT)
commitd63bf48fae3c37de04f6f82c8bde59587e1ed2aa (patch)
treea8a19f6d92c70e4d6476438a0e2ce346f2fc7fff /generic/tclOO.c
parent87edf9c39870a062040ef47d131ee19dfc4161d8 (diff)
downloadtcl-d63bf48fae3c37de04f6f82c8bde59587e1ed2aa.zip
tcl-d63bf48fae3c37de04f6f82c8bde59587e1ed2aa.tar.gz
tcl-d63bf48fae3c37de04f6f82c8bde59587e1ed2aa.tar.bz2
Expose function to efficiently return current name of an object.
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index c1e8678..4233020 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.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: tclOO.c,v 1.23 2009/07/12 14:51:30 dkf Exp $
+ * RCS: @(#) $Id: tclOO.c,v 1.24 2009/07/19 11:46:53 dkf Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -2439,7 +2439,7 @@ TclOOIsReachable(
/*
* ----------------------------------------------------------------------
*
- * TclOOObjectName --
+ * TclOOObjectName, Tcl_GetObjectName --
*
* Utility function that returns the name of the object. Note that this
* simplifies cache management by keeping the code to do it in one place
@@ -2465,6 +2465,14 @@ TclOOObjectName(
oPtr->cachedNameObj = namePtr;
return namePtr;
}
+
+Tcl_Obj *
+Tcl_GetObjectName(
+ Tcl_Interp *interp,
+ Tcl_Object object)
+{
+ return TclOOObjectName(interp, (Object *) object);
+}
/*
* ----------------------------------------------------------------------