diff options
Diffstat (limited to 'generic/tclAsync.c')
| -rw-r--r-- | generic/tclAsync.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/generic/tclAsync.c b/generic/tclAsync.c index 1b2824b..14804e4 100644 --- a/generic/tclAsync.c +++ b/generic/tclAsync.c @@ -10,8 +10,6 @@   *   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES. - * - * RCS: @(#) $Id: tclAsync.c,v 1.13.2.3 2008/05/03 19:31:28 das Exp $   */  #include "tclInt.h" @@ -120,7 +118,7 @@ Tcl_AsyncCreate(      AsyncHandler *asyncPtr;      ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); -    asyncPtr = (AsyncHandler *) ckalloc(sizeof(AsyncHandler)); +    asyncPtr = ckalloc(sizeof(AsyncHandler));      asyncPtr->ready = 0;      asyncPtr->nextPtr = NULL;      asyncPtr->proc = proc; @@ -237,7 +235,7 @@ Tcl_AsyncInvoke(  	}  	asyncPtr->ready = 0;  	Tcl_MutexUnlock(&tsdPtr->asyncMutex); -	code = (*asyncPtr->proc)(asyncPtr->clientData, interp, code); +	code = asyncPtr->proc(asyncPtr->clientData, interp, code);  	Tcl_MutexLock(&tsdPtr->asyncMutex);      }      tsdPtr->asyncActive = 0; @@ -262,7 +260,7 @@ Tcl_AsyncInvoke(   *	Failure to locate the handler in current thread private list   *	of async handlers will result in panic; exception: the list   *	is already empty (potential trouble?). - *	Consequently, threads should create and delete handlers  + *	Consequently, threads should create and delete handlers   *	themselves.  I.e. a handler created by one should not be   *	deleted by some other thread.   * @@ -312,7 +310,7 @@ Tcl_AsyncDelete(  	}      }      Tcl_MutexUnlock(&tsdPtr->asyncMutex); -    ckfree((char *) asyncPtr); +    ckfree(asyncPtr);  }  /* | 
