summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-05 19:22:22 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-05 19:22:22 (GMT)
commitef5db57dc9793243f18bbc2d687fdad7a5b22f72 (patch)
tree62c40d87313de52eae33c45dd8f9688b230f72cc
parent1b5fe3d675d4cc34efc61475912cff429a755b5b (diff)
downloadtcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.zip
tcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.tar.gz
tcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.tar.bz2
Fix [Bug 2144595]
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclIndexObj.c14
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index bd16f2b..f77711a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-05 Donal K. Fellows <dkf@users.sf.net>
+
+ * generic/tclIndexObj.c (TclInitPrefixCmd): Make the [tcl::prefix]
+ into an exported command. [Bug 2144595]
+
2008-10-04 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCmdIL.c (InfoFrameCmd): Improved hygiene of result
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 91b9e3d..1ca2d3e 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIndexObj.c,v 1.43 2008/10/04 11:04:43 nijtmans Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.44 2008/10/05 19:22:22 dkf Exp $
*/
#include "tclInt.h"
@@ -520,13 +520,17 @@ TclInitPrefixCmd(
Tcl_Interp *interp) /* Current interpreter. */
{
static const EnsembleImplMap prefixImplMap[] = {
- {"all", PrefixAllObjCmd, NULL},
- {"longest", PrefixLongestObjCmd, NULL},
- {"match", PrefixMatchObjCmd, NULL},
+ {"all", PrefixAllObjCmd},
+ {"longest", PrefixLongestObjCmd},
+ {"match", PrefixMatchObjCmd},
{NULL}
};
+ Tcl_Command prefixCmd;
- return TclMakeEnsemble(interp, "tcl::prefix", prefixImplMap);
+ prefixCmd = TclMakeEnsemble(interp, "::tcl::prefix", prefixImplMap);
+ Tcl_Export(interp, Tcl_FindNamespace(interp, "::tcl", NULL, 0),
+ "prefix", 0);
+ return prefixCmd;
}
/*----------------------------------------------------------------------