summaryrefslogtreecommitdiffstats
path: root/generic/tclConfig.c
diff options
context:
space:
mode:
authorandreas_kupries <andreas_kupries@noemail.net>2006-09-22 18:13:25 (GMT)
committerandreas_kupries <andreas_kupries@noemail.net>2006-09-22 18:13:25 (GMT)
commitb582a8fdc7e8829a1dfd36550181d3492cf8b381 (patch)
treef67d58798c4d5ba6ee60a07d1f99fe77001dee13 /generic/tclConfig.c
parentc90f137bf46a53f55c597d3e79ab2a491424a90c (diff)
downloadtcl-b582a8fdc7e8829a1dfd36550181d3492cf8b381.zip
tcl-b582a8fdc7e8829a1dfd36550181d3492cf8b381.tar.gz
tcl-b582a8fdc7e8829a1dfd36550181d3492cf8b381.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: FossilOrigin-Name: 055195c6bce7cf3bc2a1dc2c88b333d9e9b4485c
Diffstat (limited to 'generic/tclConfig.c')
-rw-r--r--generic/tclConfig.c12
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.