diff options
author | nijtmans <nijtmans@noemail.net> | 2010-08-30 13:49:26 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2010-08-30 13:49:26 (GMT) |
commit | 88aae683d980e6599030033efbc1b1ad90b7654d (patch) | |
tree | ed25a8b0bdfa5acdf1aa2509cc57b783aaf9d1a2 /generic/tclStubLib.c | |
parent | 020c5c8730b7cd8613eecf4bde841bb0c62e7053 (diff) | |
download | tcl-88aae683d980e6599030033efbc1b1ad90b7654d.zip tcl-88aae683d980e6599030033efbc1b1ad90b7654d.tar.gz tcl-88aae683d980e6599030033efbc1b1ad90b7654d.tar.bz2 |
[Patch 2997642] many type casts needed when using Tcl_Pkg* API. Partly.
FossilOrigin-Name: 108cf5bef2c2962152b44fd89103abcea7725e0e
Diffstat (limited to 'generic/tclStubLib.c')
-rw-r--r-- | generic/tclStubLib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c index 8603e02..db10cc8 100644 --- a/generic/tclStubLib.c +++ b/generic/tclStubLib.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStubLib.c,v 1.32 2010/03/06 06:29:24 nijtmans Exp $ + * RCS: @(#) $Id: tclStubLib.c,v 1.33 2010/08/30 13:49:28 nijtmans Exp $ */ /* @@ -84,7 +84,7 @@ Tcl_InitStubs( int exact) { const char *actualVersion = NULL; - ClientData pkgData = NULL; + const TclStubs *stubsPtr; /* * We can't optimize this check by caching tclStubsPtr because that @@ -97,7 +97,7 @@ Tcl_InitStubs( return NULL; } - actualVersion = Tcl_PkgRequireEx(interp, "Tcl", version, 0, &pkgData); + actualVersion = Tcl_PkgRequireEx(interp, "Tcl", version, 0, &stubsPtr); if (actualVersion == NULL) { return NULL; } @@ -127,7 +127,7 @@ Tcl_InitStubs( } } } - tclStubsPtr = (TclStubs *) pkgData; + tclStubsPtr = stubsPtr; if (tclStubsPtr->hooks) { tclPlatStubsPtr = tclStubsPtr->hooks->tclPlatStubs; |