diff options
author | andreas_kupries <akupries@shaw.ca> | 2006-09-22 18:13:25 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2006-09-22 18:13:25 (GMT) |
commit | 4d806ec7125d35e4f837f3a2274aedc0f7593954 (patch) | |
tree | f67d58798c4d5ba6ee60a07d1f99fe77001dee13 /generic/tclConfig.c | |
parent | 881fdb141e92e3ea0b7b72197ad32d992f78195c (diff) | |
download | tcl-4d806ec7125d35e4f837f3a2274aedc0f7593954.zip tcl-4d806ec7125d35e4f837f3a2274aedc0f7593954.tar.gz tcl-4d806ec7125d35e4f837f3a2274aedc0f7593954.tar.bz2 |
TIP#268 IMPLEMENTATION
* generic/tclDecls.h: Regenerated from tcl.decls.
* generic/tclStubInit.c:
* doc/PkgRequire.3: Documentation of extended API,
* doc/package.n: extended testsuite.
* tests/pkg.test:
* generic/tcl.decls: Implementation.
* generic/tclBasic.c:
* generic/tclConfig.c:
* generic/tclInt.h:
* generic/tclPkg.c:
* generic/tclTest.c:
* generic/tclTomMathInterface.c:
* library/init.tcl:
* library/package.tcl:
* library/tm.tcl:
Diffstat (limited to 'generic/tclConfig.c')
-rw-r--r-- | generic/tclConfig.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/generic/tclConfig.c b/generic/tclConfig.c index 756b396..c65c501 100644 --- a/generic/tclConfig.c +++ b/generic/tclConfig.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclConfig.c,v 1.10 2005/11/01 15:30:52 dkf Exp $ + * RCS: @(#) $Id: tclConfig.c,v 1.11 2006/09/22 18:13:28 andreas_kupries Exp $ */ #include "tclInt.h" @@ -68,14 +68,18 @@ Tcl_RegisterConfig( CONST char *valEncoding) /* Name of the encoding used to store the * configuration values, ASCII, thus UTF-8. */ { - Tcl_Encoding venc = Tcl_GetEncoding(NULL, valEncoding); - Tcl_Obj *pDB = GetConfigDict(interp); - Tcl_Obj *pkg = Tcl_NewStringObj(pkgName, -1); + Tcl_Encoding venc; + Tcl_Obj *pDB; + Tcl_Obj *pkg; Tcl_Obj *pkgDict; Tcl_DString cmdName; Tcl_Config *cfg; int res; + venc = Tcl_GetEncoding(NULL, valEncoding); + pDB = GetConfigDict(interp); + pkg = Tcl_NewStringObj(pkgName, -1); + /* * Phase I: Adding the provided information to the internal database of * package meta data. |