diff options
author | nijtmans <nijtmans> | 2010-02-22 23:31:41 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-02-22 23:31:41 (GMT) |
commit | 718a26fe2a6c218477b2486bcc3d014df7b559fa (patch) | |
tree | e6177ca61b1da75b2580be08eb4087ac9b62e192 /generic | |
parent | b3ceb866eec8e0f9dbde55f024efb248732602ca (diff) | |
download | tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.zip tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.tar.gz tcl-718a26fe2a6c218477b2486bcc3d014df7b559fa.tar.bz2 |
Remove unnecessary EXTERN's, which already
are in the global stub table.
Use @EXEEXT@ in stead of @EXT_SUFFIX@
Use -DBUILD_tcl in Makefile for CYGWIN
Use EXTERN to control CYGWIN exported symbols
Remove some unnecessary type casts.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdMZ.c | 4 | ||||
-rw-r--r-- | generic/tclCompCmds.c | 5 | ||||
-rw-r--r-- | generic/tclTest.c | 4 | ||||
-rw-r--r-- | generic/tclUtil.c | 4 |
4 files changed, 8 insertions, 9 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 5cf9761..64923aa 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.199 2010/02/11 11:14:22 dkf Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.200 2010/02/22 23:31:41 nijtmans Exp $ */ #include "tclInt.h" @@ -1075,7 +1075,7 @@ Tcl_SplitObjCmd( * Don't need to fiddle with refcount... */ - Tcl_SetHashValue(hPtr, (ClientData) objPtr); + Tcl_SetHashValue(hPtr, objPtr); } else { objPtr = (Tcl_Obj *) Tcl_GetHashValue(hPtr); } diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index ba78ec3..6010182 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.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: tclCompCmds.c,v 1.164 2010/02/20 15:38:41 dkf Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.165 2010/02/22 23:31:41 nijtmans Exp $ */ #include "tclInt.h" @@ -4881,8 +4881,7 @@ IssueSwitchJumpTable( * point to here. */ - Tcl_SetHashValue(hPtr, (ClientData) - (CurrentOffset(envPtr) - jumpLocation)); + Tcl_SetHashValue(hPtr, CurrentOffset(envPtr) - jumpLocation); } Tcl_DStringFree(&buffer); } else { diff --git a/generic/tclTest.c b/generic/tclTest.c index 793dccc..3232834 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.144 2010/02/05 20:53:12 nijtmans Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.145 2010/02/22 23:31:41 nijtmans Exp $ */ #undef STATIC_BUILD @@ -6563,7 +6563,7 @@ TestHashSystemHashCmd( Tcl_DeleteHashTable(&hash); return TCL_ERROR; } - Tcl_SetHashValue(hPtr, (ClientData) INT2PTR(i+42)); + Tcl_SetHashValue(hPtr, INT2PTR(i+42)); } if (hash.numEntries != limit) { diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 862470f..d289851 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUtil.c,v 1.111 2009/07/12 18:04:33 dkf Exp $ + * RCS: @(#) $Id: tclUtil.c,v 1.112 2010/02/22 23:31:41 nijtmans Exp $ */ #include "tclInt.h" @@ -3012,7 +3012,7 @@ TclSetProcessGlobalValue( ClearHash(cacheMap); hPtr = Tcl_CreateHashEntry(cacheMap, (char *) INT2PTR(pgvPtr->epoch), &dummy); - Tcl_SetHashValue(hPtr, (ClientData) newValue); + Tcl_SetHashValue(hPtr, newValue); Tcl_MutexUnlock(&pgvPtr->mutex); } |