diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-05 19:22:22 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-05 19:22:22 (GMT) |
commit | ef5db57dc9793243f18bbc2d687fdad7a5b22f72 (patch) | |
tree | 62c40d87313de52eae33c45dd8f9688b230f72cc /generic | |
parent | 1b5fe3d675d4cc34efc61475912cff429a755b5b (diff) | |
download | tcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.zip tcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.tar.gz tcl-ef5db57dc9793243f18bbc2d687fdad7a5b22f72.tar.bz2 |
Fix [Bug 2144595]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIndexObj.c | 14 |
1 files changed, 9 insertions, 5 deletions
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; } /*---------------------------------------------------------------------- |