diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 15:02:41 (GMT) | 
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 15:02:41 (GMT) | 
| commit | c053495b3e85c92d11d50b3cbafb83cd0fac99e5 (patch) | |
| tree | 485f95e275b35cc7495f90a2b96a50e8ff2ba24e | |
| parent | 35c8341ccb9951b0e769ebe7e7f77a07dfd52fc7 (diff) | |
| parent | 65cf5b39664345503c534418c57505e118a9b3a8 (diff) | |
| download | tcl-c053495b3e85c92d11d50b3cbafb83cd0fac99e5.zip tcl-c053495b3e85c92d11d50b3cbafb83cd0fac99e5.tar.gz tcl-c053495b3e85c92d11d50b3cbafb83cd0fac99e5.tar.bz2 | |
Merge 8.7
| -rw-r--r-- | generic/tcl.decls | 156 | ||||
| -rw-r--r-- | generic/tcl.h | 8 | ||||
| -rw-r--r-- | generic/tclDecls.h | 334 | ||||
| -rw-r--r-- | generic/tclInt.decls | 20 | ||||
| -rw-r--r-- | generic/tclInt.h | 5 | ||||
| -rw-r--r-- | generic/tclIntDecls.h | 43 | ||||
| -rw-r--r-- | generic/tclListObj.c | 2 | ||||
| -rw-r--r-- | generic/tclOO.decls | 22 | ||||
| -rw-r--r-- | generic/tclOODecls.h | 28 | ||||
| -rw-r--r-- | generic/tclOOIntDecls.h | 28 | ||||
| -rwxr-xr-x | tools/tcltk-man2html.tcl | 2 | 
11 files changed, 313 insertions, 335 deletions
| diff --git a/generic/tcl.decls b/generic/tcl.decls index dcc0da5..2c5f01c 100644 --- a/generic/tcl.decls +++ b/generic/tcl.decls @@ -40,22 +40,22 @@ declare 2 {      TCL_NORETURN void Tcl_Panic(const char *format, ...)  }  declare 3 { -    char *Tcl_Alloc(unsigned int size) +    char *Tcl_Alloc(TCL_HASH_TYPE size)  }  declare 4 {      void Tcl_Free(char *ptr)  }  declare 5 { -    char *Tcl_Realloc(char *ptr, unsigned int size) +    char *Tcl_Realloc(char *ptr, TCL_HASH_TYPE size)  }  declare 6 { -    char *Tcl_DbCkalloc(unsigned int size, const char *file, int line) +    char *Tcl_DbCkalloc(TCL_HASH_TYPE size, const char *file, int line)  }  declare 7 {      void Tcl_DbCkfree(char *ptr, const char *file, int line)  }  declare 8 { -    char *Tcl_DbCkrealloc(char *ptr, unsigned int size, +    char *Tcl_DbCkrealloc(char *ptr, TCL_HASH_TYPE size,  	    const char *file, int line)  } @@ -65,7 +65,7 @@ declare 8 {  declare 9 unix {      void Tcl_CreateFileHandler(int fd, int mask, Tcl_FileProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 10 unix {      void Tcl_DeleteFileHandler(int fd) @@ -269,7 +269,7 @@ declare 70 {  }  declare 71 {      Tcl_AsyncHandler Tcl_AsyncCreate(Tcl_AsyncProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 72 {      void Tcl_AsyncDelete(Tcl_AsyncHandler async) @@ -295,10 +295,10 @@ declare 78 {  }  declare 79 {      void Tcl_CallWhenDeleted(Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 80 { -    void Tcl_CancelIdleCall(Tcl_IdleProc *idleProc, ClientData clientData) +    void Tcl_CancelIdleCall(Tcl_IdleProc *idleProc, void *clientData)  }  # Only available in Tcl 8.x, NULL in Tcl 9.0  declare 81 { @@ -329,27 +329,27 @@ declare 87 {  }  declare 88 {      Tcl_Channel Tcl_CreateChannel(const Tcl_ChannelType *typePtr, -	    const char *chanName, ClientData instanceData, int mask) +	    const char *chanName, void *instanceData, int mask)  }  declare 89 {      void Tcl_CreateChannelHandler(Tcl_Channel chan, int mask, -	    Tcl_ChannelProc *proc, ClientData clientData) +	    Tcl_ChannelProc *proc, void *clientData)  }  declare 90 {      void Tcl_CreateCloseHandler(Tcl_Channel chan, Tcl_CloseProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 91 {      Tcl_Command Tcl_CreateCommand(Tcl_Interp *interp, const char *cmdName, -	    Tcl_CmdProc *proc, ClientData clientData, +	    Tcl_CmdProc *proc, void *clientData,  	    Tcl_CmdDeleteProc *deleteProc)  }  declare 92 {      void Tcl_CreateEventSource(Tcl_EventSetupProc *setupProc, -	    Tcl_EventCheckProc *checkProc, ClientData clientData) +	    Tcl_EventCheckProc *checkProc, void *clientData)  }  declare 93 { -    void Tcl_CreateExitHandler(Tcl_ExitProc *proc, ClientData clientData) +    void Tcl_CreateExitHandler(Tcl_ExitProc *proc, void *clientData)  }  declare 94 {      Tcl_Interp *Tcl_CreateInterp(void) @@ -357,12 +357,12 @@ declare 94 {  declare 95 {deprecated {}} {      void Tcl_CreateMathFunc(Tcl_Interp *interp, const char *name,  	    int numArgs, Tcl_ValueType *argTypes, -	    Tcl_MathProc *proc, ClientData clientData) +	    Tcl_MathProc *proc, void *clientData)  }  declare 96 {      Tcl_Command Tcl_CreateObjCommand(Tcl_Interp *interp,  	    const char *cmdName, -	    Tcl_ObjCmdProc *proc, ClientData clientData, +	    Tcl_ObjCmdProc *proc, void *clientData,  	    Tcl_CmdDeleteProc *deleteProc)  }  declare 97 { @@ -371,22 +371,22 @@ declare 97 {  }  declare 98 {      Tcl_TimerToken Tcl_CreateTimerHandler(int milliseconds, -	    Tcl_TimerProc *proc, ClientData clientData) +	    Tcl_TimerProc *proc, void *clientData)  }  declare 99 {      Tcl_Trace Tcl_CreateTrace(Tcl_Interp *interp, int level, -	    Tcl_CmdTraceProc *proc, ClientData clientData) +	    Tcl_CmdTraceProc *proc, void *clientData)  }  declare 100 {      void Tcl_DeleteAssocData(Tcl_Interp *interp, const char *name)  }  declare 101 {      void Tcl_DeleteChannelHandler(Tcl_Channel chan, Tcl_ChannelProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 102 {      void Tcl_DeleteCloseHandler(Tcl_Channel chan, Tcl_CloseProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 103 {      int Tcl_DeleteCommand(Tcl_Interp *interp, const char *cmdName) @@ -395,14 +395,14 @@ declare 104 {      int Tcl_DeleteCommandFromToken(Tcl_Interp *interp, Tcl_Command command)  }  declare 105 { -    void Tcl_DeleteEvents(Tcl_EventDeleteProc *proc, ClientData clientData) +    void Tcl_DeleteEvents(Tcl_EventDeleteProc *proc, void *clientData)  }  declare 106 {      void Tcl_DeleteEventSource(Tcl_EventSetupProc *setupProc, -	    Tcl_EventCheckProc *checkProc, ClientData clientData) +	    Tcl_EventCheckProc *checkProc, void *clientData)  }  declare 107 { -    void Tcl_DeleteExitHandler(Tcl_ExitProc *proc, ClientData clientData) +    void Tcl_DeleteExitHandler(Tcl_ExitProc *proc, void *clientData)  }  declare 108 {      void Tcl_DeleteHashEntry(Tcl_HashEntry *entryPtr) @@ -424,13 +424,13 @@ declare 113 {  }  declare 114 {      void Tcl_DontCallWhenDeleted(Tcl_Interp *interp, -	    Tcl_InterpDeleteProc *proc, ClientData clientData) +	    Tcl_InterpDeleteProc *proc, void *clientData)  }  declare 115 {      int Tcl_DoOneEvent(int flags)  }  declare 116 { -    void Tcl_DoWhenIdle(Tcl_IdleProc *proc, ClientData clientData) +    void Tcl_DoWhenIdle(Tcl_IdleProc *proc, void *clientData)  }  declare 117 {      char *Tcl_DStringAppend(Tcl_DString *dsPtr, const char *bytes, int length) @@ -478,7 +478,7 @@ declare 131 {deprecated {No longer in use, changed to macro}} {      int Tcl_EvalObj(Tcl_Interp *interp, Tcl_Obj *objPtr)  }  declare 132 { -    void Tcl_EventuallyFree(ClientData clientData, Tcl_FreeProc *freeProc) +    void Tcl_EventuallyFree(void *clientData, Tcl_FreeProc *freeProc)  }  declare 133 {      TCL_NORETURN void Tcl_Exit(int status) @@ -539,7 +539,7 @@ declare 149 {  	    int *objcPtr, Tcl_Obj ***objv)  }  declare 150 { -    ClientData Tcl_GetAssocData(Tcl_Interp *interp, const char *name, +    void *Tcl_GetAssocData(Tcl_Interp *interp, const char *name,  	    Tcl_InterpDeleteProc **procPtr)  }  declare 151 { @@ -551,10 +551,10 @@ declare 152 {  }  declare 153 {      int Tcl_GetChannelHandle(Tcl_Channel chan, int direction, -	    ClientData *handlePtr) +	    void **handlePtr)  }  declare 154 { -    ClientData Tcl_GetChannelInstanceData(Tcl_Channel chan) +    void *Tcl_GetChannelInstanceData(Tcl_Channel chan)  }  declare 155 {      int Tcl_GetChannelMode(Tcl_Channel chan) @@ -601,7 +601,7 @@ declare 166 {  declare 167 unix {      int Tcl_GetOpenFile(Tcl_Interp *interp, const char *chanID, -	    int forWriting, int checkUsage, ClientData *filePtr) +	    int forWriting, int checkUsage, void **filePtr)  }  # Obsolete.  Should now use Tcl_FSGetPathType which is objectified  # and therefore usually faster. @@ -678,13 +678,13 @@ declare 187 {  #  }  declare 189 { -    Tcl_Channel Tcl_MakeFileChannel(ClientData handle, int mode) +    Tcl_Channel Tcl_MakeFileChannel(void *handle, int mode)  }  declare 190 {      int Tcl_MakeSafe(Tcl_Interp *interp)  }  declare 191 { -    Tcl_Channel Tcl_MakeTcpClientChannel(ClientData tcpSocket) +    Tcl_Channel Tcl_MakeTcpClientChannel(void *tcpSocket)  }  declare 192 {      char *Tcl_Merge(int argc, const char *const *argv) @@ -719,10 +719,10 @@ declare 199 {  declare 200 {      Tcl_Channel Tcl_OpenTcpServer(Tcl_Interp *interp, int port,  	    const char *host, Tcl_TcpAcceptProc *acceptProc, -	    ClientData callbackData) +	    void *callbackData)  }  declare 201 { -    void Tcl_Preserve(ClientData data) +    void Tcl_Preserve(void *data)  }  declare 202 {      void Tcl_PrintDouble(Tcl_Interp *interp, double value, char *dst) @@ -770,7 +770,7 @@ declare 215 {  	    const char **startPtr, const char **endPtr)  }  declare 216 { -    void Tcl_Release(ClientData clientData) +    void Tcl_Release(void *clientData)  }  declare 217 {      void Tcl_ResetResult(Tcl_Interp *interp) @@ -792,7 +792,7 @@ declare 222 {  }  declare 223 {      void Tcl_SetAssocData(Tcl_Interp *interp, const char *name, -	    Tcl_InterpDeleteProc *proc, ClientData clientData) +	    Tcl_InterpDeleteProc *proc, void *clientData)  }  declare 224 {      void Tcl_SetChannelBufferSize(Tcl_Channel chan, int sz) @@ -873,11 +873,11 @@ declare 246 {deprecated {}} {  }  declare 247 {deprecated {No longer in use, changed to macro}} {      int Tcl_TraceVar(Tcl_Interp *interp, const char *varName, int flags, -	    Tcl_VarTraceProc *proc, ClientData clientData) +	    Tcl_VarTraceProc *proc, void *clientData)  }  declare 248 {      int Tcl_TraceVar2(Tcl_Interp *interp, const char *part1, const char *part2, -	    int flags, Tcl_VarTraceProc *proc, ClientData clientData) +	    int flags, Tcl_VarTraceProc *proc, void *clientData)  }  declare 249 {      char *Tcl_TranslateFileName(Tcl_Interp *interp, const char *name, @@ -901,12 +901,12 @@ declare 254 {  }  declare 255 {deprecated {No longer in use, changed to macro}} {      void Tcl_UntraceVar(Tcl_Interp *interp, const char *varName, int flags, -	    Tcl_VarTraceProc *proc, ClientData clientData) +	    Tcl_VarTraceProc *proc, void *clientData)  }  declare 256 {      void Tcl_UntraceVar2(Tcl_Interp *interp, const char *part1,  	    const char *part2, int flags, Tcl_VarTraceProc *proc, -	    ClientData clientData) +	    void *clientData)  }  declare 257 {      void Tcl_UpdateLinkedVar(Tcl_Interp *interp, const char *varName) @@ -923,13 +923,13 @@ declare 260 {      int Tcl_VarEval(Tcl_Interp *interp, ...)  }  declare 261 {deprecated {No longer in use, changed to macro}} { -    ClientData Tcl_VarTraceInfo(Tcl_Interp *interp, const char *varName, -	    int flags, Tcl_VarTraceProc *procPtr, ClientData prevClientData) +    void *Tcl_VarTraceInfo(Tcl_Interp *interp, const char *varName, +	    int flags, Tcl_VarTraceProc *procPtr, void *prevClientData)  }  declare 262 { -    ClientData Tcl_VarTraceInfo2(Tcl_Interp *interp, const char *part1, +    void *Tcl_VarTraceInfo2(Tcl_Interp *interp, const char *part1,  	    const char *part2, int flags, Tcl_VarTraceProc *procPtr, -	    ClientData prevClientData) +	    void *prevClientData)  }  declare 263 {      int Tcl_Write(Tcl_Channel chan, const char *s, int slen) @@ -1010,7 +1010,7 @@ declare 280 {  declare 281 {      Tcl_Channel Tcl_StackChannel(Tcl_Interp *interp, -	    const Tcl_ChannelType *typePtr, ClientData instanceData, +	    const Tcl_ChannelType *typePtr, void *instanceData,  	    int mask, Tcl_Channel prevChan)  }  declare 282 { @@ -1038,10 +1038,10 @@ declare 287 {      Tcl_Encoding Tcl_CreateEncoding(const Tcl_EncodingType *typePtr)  }  declare 288 { -    void Tcl_CreateThreadExitHandler(Tcl_ExitProc *proc, ClientData clientData) +    void Tcl_CreateThreadExitHandler(Tcl_ExitProc *proc, void *clientData)  }  declare 289 { -    void Tcl_DeleteThreadExitHandler(Tcl_ExitProc *proc, ClientData clientData) +    void Tcl_DeleteThreadExitHandler(Tcl_ExitProc *proc, void *clientData)  }  declare 290 {      void Tcl_DiscardResult(Tcl_SavedResult *statePtr) @@ -1074,7 +1074,7 @@ declare 297 {      void Tcl_FinalizeThread(void)  }  declare 298 { -    void Tcl_FinalizeNotifier(ClientData clientData) +    void Tcl_FinalizeNotifier(void *clientData)  }  declare 299 {      void Tcl_FreeEncoding(Tcl_Encoding encoding) @@ -1104,7 +1104,7 @@ declare 306 {  	    const char *part2, int flags)  }  declare 307 { -    ClientData Tcl_InitNotifier(void) +    void *Tcl_InitNotifier(void)  }  declare 308 {      void Tcl_MutexLock(Tcl_Mutex *mutexPtr) @@ -1220,7 +1220,7 @@ declare 342 {deprecated {Use Tcl_SetEncodingSearchPath}} {      void Tcl_SetDefaultEncodingDir(const char *path)  }  declare 343 { -    void Tcl_AlertNotifier(ClientData clientData) +    void Tcl_AlertNotifier(void *clientData)  }  declare 344 {      void Tcl_ServiceModeHook(int mode) @@ -1380,7 +1380,7 @@ declare 389 {      int Tcl_GetChannelNamesEx(Tcl_Interp *interp, const char *pattern)  }  declare 390 { -    int Tcl_ProcObjCmd(ClientData clientData, Tcl_Interp *interp, +    int Tcl_ProcObjCmd(void *clientData, Tcl_Interp *interp,  	    int objc, Tcl_Obj *const objv[])  }  declare 391 { @@ -1391,7 +1391,7 @@ declare 392 {  }  declare 393 {      int Tcl_CreateThread(Tcl_ThreadId *idPtr, Tcl_ThreadCreateProc *proc, -	    ClientData clientData, int stackSize, int flags) +	    void *clientData, int stackSize, int flags)  }  # Introduced in 8.3.2 @@ -1508,29 +1508,29 @@ declare 424 {      void Tcl_InitObjHashTable(Tcl_HashTable *tablePtr)  }  declare 425 { -    ClientData Tcl_CommandTraceInfo(Tcl_Interp *interp, const char *varName, +    void *Tcl_CommandTraceInfo(Tcl_Interp *interp, const char *varName,  	    int flags, Tcl_CommandTraceProc *procPtr, -	    ClientData prevClientData) +	    void *prevClientData)  }  declare 426 {      int Tcl_TraceCommand(Tcl_Interp *interp, const char *varName, int flags, -	    Tcl_CommandTraceProc *proc, ClientData clientData) +	    Tcl_CommandTraceProc *proc, void *clientData)  }  declare 427 {      void Tcl_UntraceCommand(Tcl_Interp *interp, const char *varName, -	    int flags, Tcl_CommandTraceProc *proc, ClientData clientData) +	    int flags, Tcl_CommandTraceProc *proc, void *clientData)  }  declare 428 { -    char *Tcl_AttemptAlloc(unsigned int size) +    char *Tcl_AttemptAlloc(TCL_HASH_TYPE size)  }  declare 429 { -    char *Tcl_AttemptDbCkalloc(unsigned int size, const char *file, int line) +    char *Tcl_AttemptDbCkalloc(TCL_HASH_TYPE size, const char *file, int line)  }  declare 430 { -    char *Tcl_AttemptRealloc(char *ptr, unsigned int size) +    char *Tcl_AttemptRealloc(char *ptr, TCL_HASH_TYPE size)  }  declare 431 { -    char *Tcl_AttemptDbCkrealloc(char *ptr, unsigned int size, +    char *Tcl_AttemptDbCkrealloc(char *ptr, TCL_HASH_TYPE size,  	    const char *file, int line)  }  declare 432 { @@ -1551,7 +1551,7 @@ declare 434 {  declare 435 {deprecated {}} {      int Tcl_GetMathFuncInfo(Tcl_Interp *interp, const char *name,  	    int *numArgsPtr, Tcl_ValueType **argTypesPtr, -	    Tcl_MathProc **procPtr, ClientData *clientDataPtr) +	    Tcl_MathProc **procPtr, void **clientDataPtr)  }  declare 436 {deprecated {}} {      Tcl_Obj *Tcl_ListMathFuncs(Tcl_Interp *interp, const char *pattern) @@ -1656,7 +1656,7 @@ declare 464 {  	    Tcl_Obj *const objv[])  }  declare 465 { -    ClientData Tcl_FSGetInternalRep(Tcl_Obj *pathPtr, +    void *Tcl_FSGetInternalRep(Tcl_Obj *pathPtr,  	    const Tcl_Filesystem *fsPtr)  }  declare 466 { @@ -1667,7 +1667,7 @@ declare 467 {  }  declare 468 {      Tcl_Obj *Tcl_FSNewNativePath(const Tcl_Filesystem *fromFilesystem, -	    ClientData clientData) +	    void *clientData)  }  declare 469 {      const void *Tcl_FSGetNativePath(Tcl_Obj *pathPtr) @@ -1682,13 +1682,13 @@ declare 472 {      Tcl_Obj *Tcl_FSListVolumes(void)  }  declare 473 { -    int Tcl_FSRegister(ClientData clientData, const Tcl_Filesystem *fsPtr) +    int Tcl_FSRegister(void *clientData, const Tcl_Filesystem *fsPtr)  }  declare 474 {      int Tcl_FSUnregister(const Tcl_Filesystem *fsPtr)  }  declare 475 { -    ClientData Tcl_FSData(const Tcl_Filesystem *fsPtr) +    void *Tcl_FSData(const Tcl_Filesystem *fsPtr)  }  declare 476 {      const char *Tcl_FSGetTranslatedStringPath(Tcl_Interp *interp, @@ -1723,7 +1723,7 @@ declare 482 {  # TIP#32 (object-enabled traces) kbk  declare 483 {      Tcl_Trace Tcl_CreateObjTrace(Tcl_Interp *interp, int level, int flags, -	    Tcl_CmdObjTraceProc *objProc, ClientData clientData, +	    Tcl_CmdObjTraceProc *objProc, void *clientData,  	    Tcl_CmdObjTraceDeleteProc *delProc)  }  declare 484 { @@ -1821,7 +1821,7 @@ declare 505 {  # dkf, API by Brent Welch?  declare 506 {      Tcl_Namespace *Tcl_CreateNamespace(Tcl_Interp *interp, const char *name, -	    ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc) +	    void *clientData, Tcl_NamespaceDeleteProc *deleteProc)  }  declare 507 {      void Tcl_DeleteNamespace(Tcl_Namespace *nsPtr) @@ -1878,12 +1878,12 @@ declare 519 {nostub {Don't use this function in a stub-enabled extension}} {  # TIP#143 (resource limits) dkf  declare 520 {      void Tcl_LimitAddHandler(Tcl_Interp *interp, int type, -	    Tcl_LimitHandlerProc *handlerProc, ClientData clientData, +	    Tcl_LimitHandlerProc *handlerProc, void *clientData,  	    Tcl_LimitHandlerDeleteProc *deleteProc)  }  declare 521 {      void Tcl_LimitRemoveHandler(Tcl_Interp *interp, int type, -	    Tcl_LimitHandlerProc *handlerProc, ClientData clientData) +	    Tcl_LimitHandlerProc *handlerProc, void *clientData)  }  declare 522 {      int Tcl_LimitReady(Tcl_Interp *interp) @@ -1996,12 +1996,12 @@ declare 551 {  declare 552 {      void Tcl_SetTimeProc(Tcl_GetTimeProc *getProc,  	    Tcl_ScaleTimeProc *scaleProc, -	    ClientData clientData) +	    void *clientData)  }  declare 553 {      void Tcl_QueryTimeProc(Tcl_GetTimeProc **getProc,  	    Tcl_ScaleTimeProc **scaleProc, -	    ClientData *clientData) +	    void **clientData)  }  # TIP#218 (driver thread actions) davygrvy/akupries ChannelType ver 4 @@ -2115,7 +2115,7 @@ declare 579 {  # TIP #285 (script cancellation support) jmistachkin  declare 580 {      int Tcl_CancelEval(Tcl_Interp *interp, Tcl_Obj *resultObjPtr, -	    ClientData clientData, int flags) +	    void *clientData, int flags)  }  declare 581 {      int Tcl_Canceled(Tcl_Interp *interp, int flags) @@ -2131,7 +2131,7 @@ declare 582 {  declare 583 {      Tcl_Command Tcl_NRCreateCommand(Tcl_Interp *interp,  	    const char *cmdName, Tcl_ObjCmdProc *proc, -	    Tcl_ObjCmdProc *nreProc, ClientData clientData, +	    Tcl_ObjCmdProc *nreProc, void *clientData,  	    Tcl_CmdDeleteProc *deleteProc)  }  declare 584 { @@ -2147,14 +2147,14 @@ declare 586 {  }  declare 587 {      void Tcl_NRAddCallback(Tcl_Interp *interp, Tcl_NRPostProc *postProcPtr, -	    ClientData data0, ClientData data1, ClientData data2, -	    ClientData data3) +	    void *data0, void *data1, void *data2, +	    void *data3)  }  # For use by NR extenders, to have a simple way to also provide a (required!)  # classic objProc  declare 588 {      int Tcl_NRCallObjProc(Tcl_Interp *interp, Tcl_ObjCmdProc *objProc, -	    ClientData clientData, int objc, Tcl_Obj *const objv[]) +	    void *clientData, int objc, Tcl_Obj *const objv[])  }  # TIP#316 (Tcl_StatBuf reader functions) dkf @@ -2331,7 +2331,7 @@ declare 630 {  declare 631 {      Tcl_Channel Tcl_OpenTcpServerEx(Tcl_Interp *interp, const char *service,  	    const char *host, unsigned int flags, Tcl_TcpAcceptProc *acceptProc, -	    ClientData callbackData) +	    void *callbackData)  }  # TIP #430 @@ -2356,7 +2356,7 @@ declare 636 {  }  declare 637 {      char *Tcl_InitStringRep(Tcl_Obj *objPtr, const char *bytes, -	    unsigned int numBytes) +	    TCL_HASH_TYPE numBytes)  }  declare 638 {      Tcl_ObjInternalRep *Tcl_FetchInternalRep(Tcl_Obj *objPtr, const Tcl_ObjType *typePtr) diff --git a/generic/tcl.h b/generic/tcl.h index 886e42e..33b8217 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -578,14 +578,6 @@ typedef struct Tcl_RegExpInfo {  } Tcl_RegExpInfo;  /* - * Picky compilers complain if this typdef doesn't appear before the struct's - * reference in tclDecls.h. - */ - -typedef Tcl_StatBuf *Tcl_Stat_; -typedef struct stat *Tcl_OldStat_; - -/*   *----------------------------------------------------------------------------   * When a TCL command returns, the interpreter contains a result from the   * command. Programmers are strongly encouraged to use one of the functions diff --git a/generic/tclDecls.h b/generic/tclDecls.h index 2a6e62c..dcf2b82 100644 --- a/generic/tclDecls.h +++ b/generic/tclDecls.h @@ -61,28 +61,28 @@ EXTERN const char *	Tcl_PkgRequireEx(Tcl_Interp *interp,  /* 2 */  EXTERN TCL_NORETURN void Tcl_Panic(const char *format, ...) TCL_FORMAT_PRINTF(1, 2);  /* 3 */ -EXTERN char *		Tcl_Alloc(unsigned int size); +EXTERN char *		Tcl_Alloc(TCL_HASH_TYPE size);  /* 4 */  EXTERN void		Tcl_Free(char *ptr);  /* 5 */ -EXTERN char *		Tcl_Realloc(char *ptr, unsigned int size); +EXTERN char *		Tcl_Realloc(char *ptr, TCL_HASH_TYPE size);  /* 6 */ -EXTERN char *		Tcl_DbCkalloc(unsigned int size, const char *file, +EXTERN char *		Tcl_DbCkalloc(TCL_HASH_TYPE size, const char *file,  				int line);  /* 7 */  EXTERN void		Tcl_DbCkfree(char *ptr, const char *file, int line);  /* 8 */ -EXTERN char *		Tcl_DbCkrealloc(char *ptr, unsigned int size, +EXTERN char *		Tcl_DbCkrealloc(char *ptr, TCL_HASH_TYPE size,  				const char *file, int line);  #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */  /* 9 */  EXTERN void		Tcl_CreateFileHandler(int fd, int mask, -				Tcl_FileProc *proc, ClientData clientData); +				Tcl_FileProc *proc, void *clientData);  #endif /* UNIX */  #ifdef MAC_OSX_TCL /* MACOSX */  /* 9 */  EXTERN void		Tcl_CreateFileHandler(int fd, int mask, -				Tcl_FileProc *proc, ClientData clientData); +				Tcl_FileProc *proc, void *clientData);  #endif /* MACOSX */  #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */  /* 10 */ @@ -263,7 +263,7 @@ EXTERN void		Tcl_AppendElement(Tcl_Interp *interp,  EXTERN void		Tcl_AppendResult(Tcl_Interp *interp, ...);  /* 71 */  EXTERN Tcl_AsyncHandler	 Tcl_AsyncCreate(Tcl_AsyncProc *proc, -				ClientData clientData); +				void *clientData);  /* 72 */  EXTERN void		Tcl_AsyncDelete(Tcl_AsyncHandler async);  /* 73 */ @@ -284,11 +284,10 @@ EXTERN int		Tcl_BadChannelOption(Tcl_Interp *interp,  				const char *optionList);  /* 79 */  EXTERN void		Tcl_CallWhenDeleted(Tcl_Interp *interp, -				Tcl_InterpDeleteProc *proc, -				ClientData clientData); +				Tcl_InterpDeleteProc *proc, void *clientData);  /* 80 */  EXTERN void		Tcl_CancelIdleCall(Tcl_IdleProc *idleProc, -				ClientData clientData); +				void *clientData);  /* 81 */  EXTERN int		Tcl_Close(Tcl_Interp *interp, Tcl_Channel chan);  /* 82 */ @@ -313,26 +312,26 @@ EXTERN int		Tcl_CreateAliasObj(Tcl_Interp *childInterp,  				Tcl_Obj *const objv[]);  /* 88 */  EXTERN Tcl_Channel	Tcl_CreateChannel(const Tcl_ChannelType *typePtr, -				const char *chanName, -				ClientData instanceData, int mask); +				const char *chanName, void *instanceData, +				int mask);  /* 89 */  EXTERN void		Tcl_CreateChannelHandler(Tcl_Channel chan, int mask, -				Tcl_ChannelProc *proc, ClientData clientData); +				Tcl_ChannelProc *proc, void *clientData);  /* 90 */  EXTERN void		Tcl_CreateCloseHandler(Tcl_Channel chan, -				Tcl_CloseProc *proc, ClientData clientData); +				Tcl_CloseProc *proc, void *clientData);  /* 91 */  EXTERN Tcl_Command	Tcl_CreateCommand(Tcl_Interp *interp,  				const char *cmdName, Tcl_CmdProc *proc, -				ClientData clientData, +				void *clientData,  				Tcl_CmdDeleteProc *deleteProc);  /* 92 */  EXTERN void		Tcl_CreateEventSource(Tcl_EventSetupProc *setupProc,  				Tcl_EventCheckProc *checkProc, -				ClientData clientData); +				void *clientData);  /* 93 */  EXTERN void		Tcl_CreateExitHandler(Tcl_ExitProc *proc, -				ClientData clientData); +				void *clientData);  /* 94 */  EXTERN Tcl_Interp *	Tcl_CreateInterp(void);  /* 95 */ @@ -340,31 +339,30 @@ TCL_DEPRECATED("")  void			Tcl_CreateMathFunc(Tcl_Interp *interp,  				const char *name, int numArgs,  				Tcl_ValueType *argTypes, Tcl_MathProc *proc, -				ClientData clientData); +				void *clientData);  /* 96 */  EXTERN Tcl_Command	Tcl_CreateObjCommand(Tcl_Interp *interp,  				const char *cmdName, Tcl_ObjCmdProc *proc, -				ClientData clientData, +				void *clientData,  				Tcl_CmdDeleteProc *deleteProc);  /* 97 */  EXTERN Tcl_Interp *	Tcl_CreateChild(Tcl_Interp *interp, const char *name,  				int isSafe);  /* 98 */  EXTERN Tcl_TimerToken	Tcl_CreateTimerHandler(int milliseconds, -				Tcl_TimerProc *proc, ClientData clientData); +				Tcl_TimerProc *proc, void *clientData);  /* 99 */  EXTERN Tcl_Trace	Tcl_CreateTrace(Tcl_Interp *interp, int level, -				Tcl_CmdTraceProc *proc, -				ClientData clientData); +				Tcl_CmdTraceProc *proc, void *clientData);  /* 100 */  EXTERN void		Tcl_DeleteAssocData(Tcl_Interp *interp,  				const char *name);  /* 101 */  EXTERN void		Tcl_DeleteChannelHandler(Tcl_Channel chan, -				Tcl_ChannelProc *proc, ClientData clientData); +				Tcl_ChannelProc *proc, void *clientData);  /* 102 */  EXTERN void		Tcl_DeleteCloseHandler(Tcl_Channel chan, -				Tcl_CloseProc *proc, ClientData clientData); +				Tcl_CloseProc *proc, void *clientData);  /* 103 */  EXTERN int		Tcl_DeleteCommand(Tcl_Interp *interp,  				const char *cmdName); @@ -373,14 +371,14 @@ EXTERN int		Tcl_DeleteCommandFromToken(Tcl_Interp *interp,  				Tcl_Command command);  /* 105 */  EXTERN void		Tcl_DeleteEvents(Tcl_EventDeleteProc *proc, -				ClientData clientData); +				void *clientData);  /* 106 */  EXTERN void		Tcl_DeleteEventSource(Tcl_EventSetupProc *setupProc,  				Tcl_EventCheckProc *checkProc, -				ClientData clientData); +				void *clientData);  /* 107 */  EXTERN void		Tcl_DeleteExitHandler(Tcl_ExitProc *proc, -				ClientData clientData); +				void *clientData);  /* 108 */  EXTERN void		Tcl_DeleteHashEntry(Tcl_HashEntry *entryPtr);  /* 109 */ @@ -395,13 +393,11 @@ EXTERN void		Tcl_DeleteTimerHandler(Tcl_TimerToken token);  EXTERN void		Tcl_DeleteTrace(Tcl_Interp *interp, Tcl_Trace trace);  /* 114 */  EXTERN void		Tcl_DontCallWhenDeleted(Tcl_Interp *interp, -				Tcl_InterpDeleteProc *proc, -				ClientData clientData); +				Tcl_InterpDeleteProc *proc, void *clientData);  /* 115 */  EXTERN int		Tcl_DoOneEvent(int flags);  /* 116 */ -EXTERN void		Tcl_DoWhenIdle(Tcl_IdleProc *proc, -				ClientData clientData); +EXTERN void		Tcl_DoWhenIdle(Tcl_IdleProc *proc, void *clientData);  /* 117 */  EXTERN char *		Tcl_DStringAppend(Tcl_DString *dsPtr,  				const char *bytes, int length); @@ -439,7 +435,7 @@ EXTERN int		Tcl_EvalFile(Tcl_Interp *interp,  TCL_DEPRECATED("No longer in use, changed to macro")  int			Tcl_EvalObj(Tcl_Interp *interp, Tcl_Obj *objPtr);  /* 132 */ -EXTERN void		Tcl_EventuallyFree(ClientData clientData, +EXTERN void		Tcl_EventuallyFree(void *clientData,  				Tcl_FreeProc *freeProc);  /* 133 */  EXTERN TCL_NORETURN void Tcl_Exit(int status); @@ -495,7 +491,7 @@ EXTERN int		Tcl_GetAliasObj(Tcl_Interp *interp,  				const char **targetCmdPtr, int *objcPtr,  				Tcl_Obj ***objv);  /* 150 */ -EXTERN ClientData	Tcl_GetAssocData(Tcl_Interp *interp, +EXTERN void *		Tcl_GetAssocData(Tcl_Interp *interp,  				const char *name,  				Tcl_InterpDeleteProc **procPtr);  /* 151 */ @@ -505,9 +501,9 @@ EXTERN Tcl_Channel	Tcl_GetChannel(Tcl_Interp *interp,  EXTERN int		Tcl_GetChannelBufferSize(Tcl_Channel chan);  /* 153 */  EXTERN int		Tcl_GetChannelHandle(Tcl_Channel chan, int direction, -				ClientData *handlePtr); +				void **handlePtr);  /* 154 */ -EXTERN ClientData	Tcl_GetChannelInstanceData(Tcl_Channel chan); +EXTERN void *		Tcl_GetChannelInstanceData(Tcl_Channel chan);  /* 155 */  EXTERN int		Tcl_GetChannelMode(Tcl_Channel chan);  /* 156 */ @@ -541,13 +537,13 @@ EXTERN Tcl_Obj *	Tcl_GetObjResult(Tcl_Interp *interp);  /* 167 */  EXTERN int		Tcl_GetOpenFile(Tcl_Interp *interp,  				const char *chanID, int forWriting, -				int checkUsage, ClientData *filePtr); +				int checkUsage, void **filePtr);  #endif /* UNIX */  #ifdef MAC_OSX_TCL /* MACOSX */  /* 167 */  EXTERN int		Tcl_GetOpenFile(Tcl_Interp *interp,  				const char *chanID, int forWriting, -				int checkUsage, ClientData *filePtr); +				int checkUsage, void **filePtr);  #endif /* MACOSX */  /* 168 */  EXTERN Tcl_PathType	Tcl_GetPathType(const char *path); @@ -602,11 +598,11 @@ EXTERN int		Tcl_LinkVar(Tcl_Interp *interp, const char *varName,  				void *addr, int type);  /* Slot 188 is reserved */  /* 189 */ -EXTERN Tcl_Channel	Tcl_MakeFileChannel(ClientData handle, int mode); +EXTERN Tcl_Channel	Tcl_MakeFileChannel(void *handle, int mode);  /* 190 */  EXTERN int		Tcl_MakeSafe(Tcl_Interp *interp);  /* 191 */ -EXTERN Tcl_Channel	Tcl_MakeTcpClientChannel(ClientData tcpSocket); +EXTERN Tcl_Channel	Tcl_MakeTcpClientChannel(void *tcpSocket);  /* 192 */  EXTERN char *		Tcl_Merge(int argc, const char *const *argv);  /* 193 */ @@ -635,9 +631,9 @@ EXTERN Tcl_Channel	Tcl_OpenTcpClient(Tcl_Interp *interp, int port,  EXTERN Tcl_Channel	Tcl_OpenTcpServer(Tcl_Interp *interp, int port,  				const char *host,  				Tcl_TcpAcceptProc *acceptProc, -				ClientData callbackData); +				void *callbackData);  /* 201 */ -EXTERN void		Tcl_Preserve(ClientData data); +EXTERN void		Tcl_Preserve(void *data);  /* 202 */  EXTERN void		Tcl_PrintDouble(Tcl_Interp *interp, double value,  				char *dst); @@ -676,7 +672,7 @@ EXTERN int		Tcl_RegExpMatch(Tcl_Interp *interp, const char *text,  EXTERN void		Tcl_RegExpRange(Tcl_RegExp regexp, int index,  				const char **startPtr, const char **endPtr);  /* 216 */ -EXTERN void		Tcl_Release(ClientData clientData); +EXTERN void		Tcl_Release(void *clientData);  /* 217 */  EXTERN void		Tcl_ResetResult(Tcl_Interp *interp);  /* 218 */ @@ -694,7 +690,7 @@ EXTERN int		Tcl_ServiceEvent(int flags);  /* 223 */  EXTERN void		Tcl_SetAssocData(Tcl_Interp *interp,  				const char *name, Tcl_InterpDeleteProc *proc, -				ClientData clientData); +				void *clientData);  /* 224 */  EXTERN void		Tcl_SetChannelBufferSize(Tcl_Channel chan, int sz);  /* 225 */ @@ -765,12 +761,11 @@ int			Tcl_TellOld(Tcl_Channel chan);  TCL_DEPRECATED("No longer in use, changed to macro")  int			Tcl_TraceVar(Tcl_Interp *interp, const char *varName,  				int flags, Tcl_VarTraceProc *proc, -				ClientData clientData); +				void *clientData);  /* 248 */  EXTERN int		Tcl_TraceVar2(Tcl_Interp *interp, const char *part1,  				const char *part2, int flags, -				Tcl_VarTraceProc *proc, -				ClientData clientData); +				Tcl_VarTraceProc *proc, void *clientData);  /* 249 */  EXTERN char *		Tcl_TranslateFileName(Tcl_Interp *interp,  				const char *name, Tcl_DString *bufferPtr); @@ -794,13 +789,12 @@ EXTERN int		Tcl_UnsetVar2(Tcl_Interp *interp, const char *part1,  TCL_DEPRECATED("No longer in use, changed to macro")  void			Tcl_UntraceVar(Tcl_Interp *interp,  				const char *varName, int flags, -				Tcl_VarTraceProc *proc, -				ClientData clientData); +				Tcl_VarTraceProc *proc, void *clientData);  /* 256 */  EXTERN void		Tcl_UntraceVar2(Tcl_Interp *interp,  				const char *part1, const char *part2,  				int flags, Tcl_VarTraceProc *proc, -				ClientData clientData); +				void *clientData);  /* 257 */  EXTERN void		Tcl_UpdateLinkedVar(Tcl_Interp *interp,  				const char *varName); @@ -817,15 +811,15 @@ EXTERN int		Tcl_UpVar2(Tcl_Interp *interp, const char *frameName,  EXTERN int		Tcl_VarEval(Tcl_Interp *interp, ...);  /* 261 */  TCL_DEPRECATED("No longer in use, changed to macro") -ClientData		Tcl_VarTraceInfo(Tcl_Interp *interp, +void *			Tcl_VarTraceInfo(Tcl_Interp *interp,  				const char *varName, int flags,  				Tcl_VarTraceProc *procPtr, -				ClientData prevClientData); +				void *prevClientData);  /* 262 */ -EXTERN ClientData	Tcl_VarTraceInfo2(Tcl_Interp *interp, +EXTERN void *		Tcl_VarTraceInfo2(Tcl_Interp *interp,  				const char *part1, const char *part2,  				int flags, Tcl_VarTraceProc *procPtr, -				ClientData prevClientData); +				void *prevClientData);  /* 263 */  EXTERN int		Tcl_Write(Tcl_Channel chan, const char *s, int slen);  /* 264 */ @@ -884,7 +878,7 @@ EXTERN void		Tcl_InitMemory(Tcl_Interp *interp);  /* 281 */  EXTERN Tcl_Channel	Tcl_StackChannel(Tcl_Interp *interp,  				const Tcl_ChannelType *typePtr, -				ClientData instanceData, int mask, +				void *instanceData, int mask,  				Tcl_Channel prevChan);  /* 282 */  EXTERN int		Tcl_UnstackChannel(Tcl_Interp *interp, @@ -901,10 +895,10 @@ EXTERN void		Tcl_AppendObjToObj(Tcl_Obj *objPtr,  EXTERN Tcl_Encoding	Tcl_CreateEncoding(const Tcl_EncodingType *typePtr);  /* 288 */  EXTERN void		Tcl_CreateThreadExitHandler(Tcl_ExitProc *proc, -				ClientData clientData); +				void *clientData);  /* 289 */  EXTERN void		Tcl_DeleteThreadExitHandler(Tcl_ExitProc *proc, -				ClientData clientData); +				void *clientData);  /* 290 */  EXTERN void		Tcl_DiscardResult(Tcl_SavedResult *statePtr);  /* 291 */ @@ -932,7 +926,7 @@ EXTERN char *		Tcl_ExternalToUtfDString(Tcl_Encoding encoding,  /* 297 */  EXTERN void		Tcl_FinalizeThread(void);  /* 298 */ -EXTERN void		Tcl_FinalizeNotifier(ClientData clientData); +EXTERN void		Tcl_FinalizeNotifier(void *clientData);  /* 299 */  EXTERN void		Tcl_FreeEncoding(Tcl_Encoding encoding);  /* 300 */ @@ -955,7 +949,7 @@ EXTERN void *		Tcl_GetThreadData(Tcl_ThreadDataKey *keyPtr,  EXTERN Tcl_Obj *	Tcl_GetVar2Ex(Tcl_Interp *interp, const char *part1,  				const char *part2, int flags);  /* 307 */ -EXTERN ClientData	Tcl_InitNotifier(void); +EXTERN void *		Tcl_InitNotifier(void);  /* 308 */  EXTERN void		Tcl_MutexLock(Tcl_Mutex *mutexPtr);  /* 309 */ @@ -1047,7 +1041,7 @@ const char *		Tcl_GetDefaultEncodingDir(void);  TCL_DEPRECATED("Use Tcl_SetEncodingSearchPath")  void			Tcl_SetDefaultEncodingDir(const char *path);  /* 343 */ -EXTERN void		Tcl_AlertNotifier(ClientData clientData); +EXTERN void		Tcl_AlertNotifier(void *clientData);  /* 344 */  EXTERN void		Tcl_ServiceModeHook(int mode);  /* 345 */ @@ -1175,18 +1169,16 @@ EXTERN int		Tcl_GetChannelNames(Tcl_Interp *interp);  EXTERN int		Tcl_GetChannelNamesEx(Tcl_Interp *interp,  				const char *pattern);  /* 390 */ -EXTERN int		Tcl_ProcObjCmd(ClientData clientData, -				Tcl_Interp *interp, int objc, -				Tcl_Obj *const objv[]); +EXTERN int		Tcl_ProcObjCmd(void *clientData, Tcl_Interp *interp, +				int objc, Tcl_Obj *const objv[]);  /* 391 */  EXTERN void		Tcl_ConditionFinalize(Tcl_Condition *condPtr);  /* 392 */  EXTERN void		Tcl_MutexFinalize(Tcl_Mutex *mutex);  /* 393 */  EXTERN int		Tcl_CreateThread(Tcl_ThreadId *idPtr, -				Tcl_ThreadCreateProc *proc, -				ClientData clientData, int stackSize, -				int flags); +				Tcl_ThreadCreateProc *proc, void *clientData, +				int stackSize, int flags);  /* 394 */  EXTERN int		Tcl_ReadRaw(Tcl_Channel chan, char *dst,  				int bytesToRead); @@ -1276,29 +1268,27 @@ EXTERN void		Tcl_InitCustomHashTable(Tcl_HashTable *tablePtr,  /* 424 */  EXTERN void		Tcl_InitObjHashTable(Tcl_HashTable *tablePtr);  /* 425 */ -EXTERN ClientData	Tcl_CommandTraceInfo(Tcl_Interp *interp, +EXTERN void *		Tcl_CommandTraceInfo(Tcl_Interp *interp,  				const char *varName, int flags,  				Tcl_CommandTraceProc *procPtr, -				ClientData prevClientData); +				void *prevClientData);  /* 426 */  EXTERN int		Tcl_TraceCommand(Tcl_Interp *interp,  				const char *varName, int flags, -				Tcl_CommandTraceProc *proc, -				ClientData clientData); +				Tcl_CommandTraceProc *proc, void *clientData);  /* 427 */  EXTERN void		Tcl_UntraceCommand(Tcl_Interp *interp,  				const char *varName, int flags, -				Tcl_CommandTraceProc *proc, -				ClientData clientData); +				Tcl_CommandTraceProc *proc, void *clientData);  /* 428 */ -EXTERN char *		Tcl_AttemptAlloc(unsigned int size); +EXTERN char *		Tcl_AttemptAlloc(TCL_HASH_TYPE size);  /* 429 */ -EXTERN char *		Tcl_AttemptDbCkalloc(unsigned int size, +EXTERN char *		Tcl_AttemptDbCkalloc(TCL_HASH_TYPE size,  				const char *file, int line);  /* 430 */ -EXTERN char *		Tcl_AttemptRealloc(char *ptr, unsigned int size); +EXTERN char *		Tcl_AttemptRealloc(char *ptr, TCL_HASH_TYPE size);  /* 431 */ -EXTERN char *		Tcl_AttemptDbCkrealloc(char *ptr, unsigned int size, +EXTERN char *		Tcl_AttemptDbCkrealloc(char *ptr, TCL_HASH_TYPE size,  				const char *file, int line);  /* 432 */  EXTERN int		Tcl_AttemptSetObjLength(Tcl_Obj *objPtr, int length); @@ -1312,8 +1302,7 @@ TCL_DEPRECATED("")  int			Tcl_GetMathFuncInfo(Tcl_Interp *interp,  				const char *name, int *numArgsPtr,  				Tcl_ValueType **argTypesPtr, -				Tcl_MathProc **procPtr, -				ClientData *clientDataPtr); +				Tcl_MathProc **procPtr, void **clientDataPtr);  /* 436 */  TCL_DEPRECATED("")  Tcl_Obj *		Tcl_ListMathFuncs(Tcl_Interp *interp, @@ -1398,7 +1387,7 @@ EXTERN Tcl_Obj *	Tcl_FSGetNormalizedPath(Tcl_Interp *interp,  EXTERN Tcl_Obj *	Tcl_FSJoinToPath(Tcl_Obj *pathPtr, int objc,  				Tcl_Obj *const objv[]);  /* 465 */ -EXTERN ClientData	Tcl_FSGetInternalRep(Tcl_Obj *pathPtr, +EXTERN void *		Tcl_FSGetInternalRep(Tcl_Obj *pathPtr,  				const Tcl_Filesystem *fsPtr);  /* 466 */  EXTERN Tcl_Obj *	Tcl_FSGetTranslatedPath(Tcl_Interp *interp, @@ -1408,7 +1397,7 @@ EXTERN int		Tcl_FSEvalFile(Tcl_Interp *interp, Tcl_Obj *fileName);  /* 468 */  EXTERN Tcl_Obj *	Tcl_FSNewNativePath(  				const Tcl_Filesystem *fromFilesystem, -				ClientData clientData); +				void *clientData);  /* 469 */  EXTERN const void *	Tcl_FSGetNativePath(Tcl_Obj *pathPtr);  /* 470 */ @@ -1418,12 +1407,12 @@ EXTERN Tcl_Obj *	Tcl_FSPathSeparator(Tcl_Obj *pathPtr);  /* 472 */  EXTERN Tcl_Obj *	Tcl_FSListVolumes(void);  /* 473 */ -EXTERN int		Tcl_FSRegister(ClientData clientData, +EXTERN int		Tcl_FSRegister(void *clientData,  				const Tcl_Filesystem *fsPtr);  /* 474 */  EXTERN int		Tcl_FSUnregister(const Tcl_Filesystem *fsPtr);  /* 475 */ -EXTERN ClientData	Tcl_FSData(const Tcl_Filesystem *fsPtr); +EXTERN void *		Tcl_FSData(const Tcl_Filesystem *fsPtr);  /* 476 */  EXTERN const char *	Tcl_FSGetTranslatedStringPath(Tcl_Interp *interp,  				Tcl_Obj *pathPtr); @@ -1443,7 +1432,7 @@ EXTERN void		Tcl_GetTime(Tcl_Time *timeBuf);  /* 483 */  EXTERN Tcl_Trace	Tcl_CreateObjTrace(Tcl_Interp *interp, int level,  				int flags, Tcl_CmdObjTraceProc *objProc, -				ClientData clientData, +				void *clientData,  				Tcl_CmdObjTraceDeleteProc *delProc);  /* 484 */  EXTERN int		Tcl_GetCommandInfoFromToken(Tcl_Command token, @@ -1514,7 +1503,7 @@ EXTERN void		Tcl_RegisterConfig(Tcl_Interp *interp,  				const char *valEncoding);  /* 506 */  EXTERN Tcl_Namespace *	Tcl_CreateNamespace(Tcl_Interp *interp, -				const char *name, ClientData clientData, +				const char *name, void *clientData,  				Tcl_NamespaceDeleteProc *deleteProc);  /* 507 */  EXTERN void		Tcl_DeleteNamespace(Tcl_Namespace *nsPtr); @@ -1555,12 +1544,12 @@ EXTERN Tcl_ExitProc *	Tcl_SetExitProc(TCL_NORETURN1 Tcl_ExitProc *proc);  /* 520 */  EXTERN void		Tcl_LimitAddHandler(Tcl_Interp *interp, int type,  				Tcl_LimitHandlerProc *handlerProc, -				ClientData clientData, +				void *clientData,  				Tcl_LimitHandlerDeleteProc *deleteProc);  /* 521 */  EXTERN void		Tcl_LimitRemoveHandler(Tcl_Interp *interp, int type,  				Tcl_LimitHandlerProc *handlerProc, -				ClientData clientData); +				void *clientData);  /* 522 */  EXTERN int		Tcl_LimitReady(Tcl_Interp *interp);  /* 523 */ @@ -1643,11 +1632,11 @@ EXTERN int		Tcl_GetEnsembleNamespace(Tcl_Interp *interp,  /* 552 */  EXTERN void		Tcl_SetTimeProc(Tcl_GetTimeProc *getProc,  				Tcl_ScaleTimeProc *scaleProc, -				ClientData clientData); +				void *clientData);  /* 553 */  EXTERN void		Tcl_QueryTimeProc(Tcl_GetTimeProc **getProc,  				Tcl_ScaleTimeProc **scaleProc, -				ClientData *clientData); +				void **clientData);  /* 554 */  EXTERN Tcl_DriverThreadActionProc * Tcl_ChannelThreadActionProc(  				const Tcl_ChannelType *chanTypePtr); @@ -1724,7 +1713,7 @@ EXTERN void		Tcl_AppendPrintfToObj(Tcl_Obj *objPtr,  				const char *format, ...) TCL_FORMAT_PRINTF(2, 3);  /* 580 */  EXTERN int		Tcl_CancelEval(Tcl_Interp *interp, -				Tcl_Obj *resultObjPtr, ClientData clientData, +				Tcl_Obj *resultObjPtr, void *clientData,  				int flags);  /* 581 */  EXTERN int		Tcl_Canceled(Tcl_Interp *interp, int flags); @@ -1735,8 +1724,7 @@ EXTERN int		Tcl_CreatePipe(Tcl_Interp *interp,  /* 583 */  EXTERN Tcl_Command	Tcl_NRCreateCommand(Tcl_Interp *interp,  				const char *cmdName, Tcl_ObjCmdProc *proc, -				Tcl_ObjCmdProc *nreProc, -				ClientData clientData, +				Tcl_ObjCmdProc *nreProc, void *clientData,  				Tcl_CmdDeleteProc *deleteProc);  /* 584 */  EXTERN int		Tcl_NREvalObj(Tcl_Interp *interp, Tcl_Obj *objPtr, @@ -1749,14 +1737,12 @@ EXTERN int		Tcl_NRCmdSwap(Tcl_Interp *interp, Tcl_Command cmd,  				int objc, Tcl_Obj *const objv[], int flags);  /* 587 */  EXTERN void		Tcl_NRAddCallback(Tcl_Interp *interp, -				Tcl_NRPostProc *postProcPtr, -				ClientData data0, ClientData data1, -				ClientData data2, ClientData data3); +				Tcl_NRPostProc *postProcPtr, void *data0, +				void *data1, void *data2, void *data3);  /* 588 */  EXTERN int		Tcl_NRCallObjProc(Tcl_Interp *interp, -				Tcl_ObjCmdProc *objProc, -				ClientData clientData, int objc, -				Tcl_Obj *const objv[]); +				Tcl_ObjCmdProc *objProc, void *clientData, +				int objc, Tcl_Obj *const objv[]);  /* 589 */  EXTERN unsigned		Tcl_GetFSDeviceFromStat(const Tcl_StatBuf *statPtr);  /* 590 */ @@ -1872,7 +1858,7 @@ EXTERN Tcl_Channel	Tcl_OpenTcpServerEx(Tcl_Interp *interp,  				const char *service, const char *host,  				unsigned int flags,  				Tcl_TcpAcceptProc *acceptProc, -				ClientData callbackData); +				void *callbackData);  /* 632 */  EXTERN int		TclZipfs_Mount(Tcl_Interp *interp,  				const char *mountPoint, const char *zipname, @@ -1890,7 +1876,7 @@ EXTERN int		TclZipfs_MountBuffer(Tcl_Interp *interp,  EXTERN void		Tcl_FreeInternalRep(Tcl_Obj *objPtr);  /* 637 */  EXTERN char *		Tcl_InitStringRep(Tcl_Obj *objPtr, const char *bytes, -				unsigned int numBytes); +				TCL_HASH_TYPE numBytes);  /* 638 */  EXTERN Tcl_ObjInternalRep * Tcl_FetchInternalRep(Tcl_Obj *objPtr,  				const Tcl_ObjType *typePtr); @@ -2025,20 +2011,20 @@ typedef struct TclStubs {      int (*tcl_PkgProvideEx) (Tcl_Interp *interp, const char *name, const char *version, const void *clientData); /* 0 */      const char * (*tcl_PkgRequireEx) (Tcl_Interp *interp, const char *name, const char *version, int exact, void *clientDataPtr); /* 1 */      TCL_NORETURN1 void (*tcl_Panic) (const char *format, ...) TCL_FORMAT_PRINTF(1, 2); /* 2 */ -    char * (*tcl_Alloc) (unsigned int size); /* 3 */ +    char * (*tcl_Alloc) (TCL_HASH_TYPE size); /* 3 */      void (*tcl_Free) (char *ptr); /* 4 */ -    char * (*tcl_Realloc) (char *ptr, unsigned int size); /* 5 */ -    char * (*tcl_DbCkalloc) (unsigned int size, const char *file, int line); /* 6 */ +    char * (*tcl_Realloc) (char *ptr, TCL_HASH_TYPE size); /* 5 */ +    char * (*tcl_DbCkalloc) (TCL_HASH_TYPE size, const char *file, int line); /* 6 */      void (*tcl_DbCkfree) (char *ptr, const char *file, int line); /* 7 */ -    char * (*tcl_DbCkrealloc) (char *ptr, unsigned int size, const char *file, int line); /* 8 */ +    char * (*tcl_DbCkrealloc) (char *ptr, TCL_HASH_TYPE size, const char *file, int line); /* 8 */  #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */ -    void (*tcl_CreateFileHandler) (int fd, int mask, Tcl_FileProc *proc, ClientData clientData); /* 9 */ +    void (*tcl_CreateFileHandler) (int fd, int mask, Tcl_FileProc *proc, void *clientData); /* 9 */  #endif /* UNIX */  #if defined(_WIN32) /* WIN */      void (*reserved9)(void);  #endif /* WIN */  #ifdef MAC_OSX_TCL /* MACOSX */ -    void (*tcl_CreateFileHandler) (int fd, int mask, Tcl_FileProc *proc, ClientData clientData); /* 9 */ +    void (*tcl_CreateFileHandler) (int fd, int mask, Tcl_FileProc *proc, void *clientData); /* 9 */  #endif /* MACOSX */  #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */      void (*tcl_DeleteFileHandler) (int fd); /* 10 */ @@ -2109,7 +2095,7 @@ typedef struct TclStubs {      void (*tcl_AllowExceptions) (Tcl_Interp *interp); /* 68 */      void (*tcl_AppendElement) (Tcl_Interp *interp, const char *element); /* 69 */      void (*tcl_AppendResult) (Tcl_Interp *interp, ...); /* 70 */ -    Tcl_AsyncHandler (*tcl_AsyncCreate) (Tcl_AsyncProc *proc, ClientData clientData); /* 71 */ +    Tcl_AsyncHandler (*tcl_AsyncCreate) (Tcl_AsyncProc *proc, void *clientData); /* 71 */      void (*tcl_AsyncDelete) (Tcl_AsyncHandler async); /* 72 */      int (*tcl_AsyncInvoke) (Tcl_Interp *interp, int code); /* 73 */      void (*tcl_AsyncMark) (Tcl_AsyncHandler async); /* 74 */ @@ -2117,8 +2103,8 @@ typedef struct TclStubs {      TCL_DEPRECATED_API("No longer in use, changed to macro") void (*tcl_BackgroundError) (Tcl_Interp *interp); /* 76 */      TCL_DEPRECATED_API("Use Tcl_UtfBackslash") char (*tcl_Backslash) (const char *src, int *readPtr); /* 77 */      int (*tcl_BadChannelOption) (Tcl_Interp *interp, const char *optionName, const char *optionList); /* 78 */ -    void (*tcl_CallWhenDeleted) (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, ClientData clientData); /* 79 */ -    void (*tcl_CancelIdleCall) (Tcl_IdleProc *idleProc, ClientData clientData); /* 80 */ +    void (*tcl_CallWhenDeleted) (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, void *clientData); /* 79 */ +    void (*tcl_CancelIdleCall) (Tcl_IdleProc *idleProc, void *clientData); /* 80 */      int (*tcl_Close) (Tcl_Interp *interp, Tcl_Channel chan); /* 81 */      int (*tcl_CommandComplete) (const char *cmd); /* 82 */      char * (*tcl_Concat) (int argc, const char *const *argv); /* 83 */ @@ -2126,35 +2112,35 @@ typedef struct TclStubs {      int (*tcl_ConvertCountedElement) (const char *src, int length, char *dst, int flags); /* 85 */      int (*tcl_CreateAlias) (Tcl_Interp *childInterp, const char *childCmd, Tcl_Interp *target, const char *targetCmd, int argc, const char *const *argv); /* 86 */      int (*tcl_CreateAliasObj) (Tcl_Interp *childInterp, const char *childCmd, Tcl_Interp *target, const char *targetCmd, int objc, Tcl_Obj *const objv[]); /* 87 */ -    Tcl_Channel (*tcl_CreateChannel) (const Tcl_ChannelType *typePtr, const char *chanName, ClientData instanceData, int mask); /* 88 */ -    void (*tcl_CreateChannelHandler) (Tcl_Channel chan, int mask, Tcl_ChannelProc *proc, ClientData clientData); /* 89 */ -    void (*tcl_CreateCloseHandler) (Tcl_Channel chan, Tcl_CloseProc *proc, ClientData clientData); /* 90 */ -    Tcl_Command (*tcl_CreateCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_CmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); /* 91 */ -    void (*tcl_CreateEventSource) (Tcl_EventSetupProc *setupProc, Tcl_EventCheckProc *checkProc, ClientData clientData); /* 92 */ -    void (*tcl_CreateExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 93 */ +    Tcl_Channel (*tcl_CreateChannel) (const Tcl_ChannelType *typePtr, const char *chanName, void *instanceData, int mask); /* 88 */ +    void (*tcl_CreateChannelHandler) (Tcl_Channel chan, int mask, Tcl_ChannelProc *proc, void *clientData); /* 89 */ +    void (*tcl_CreateCloseHandler) (Tcl_Channel chan, Tcl_CloseProc *proc, void *clientData); /* 90 */ +    Tcl_Command (*tcl_CreateCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_CmdProc *proc, void *clientData, Tcl_CmdDeleteProc *deleteProc); /* 91 */ +    void (*tcl_CreateEventSource) (Tcl_EventSetupProc *setupProc, Tcl_EventCheckProc *checkProc, void *clientData); /* 92 */ +    void (*tcl_CreateExitHandler) (Tcl_ExitProc *proc, void *clientData); /* 93 */      Tcl_Interp * (*tcl_CreateInterp) (void); /* 94 */ -    TCL_DEPRECATED_API("") void (*tcl_CreateMathFunc) (Tcl_Interp *interp, const char *name, int numArgs, Tcl_ValueType *argTypes, Tcl_MathProc *proc, ClientData clientData); /* 95 */ -    Tcl_Command (*tcl_CreateObjCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_ObjCmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); /* 96 */ +    TCL_DEPRECATED_API("") void (*tcl_CreateMathFunc) (Tcl_Interp *interp, const char *name, int numArgs, Tcl_ValueType *argTypes, Tcl_MathProc *proc, void *clientData); /* 95 */ +    Tcl_Command (*tcl_CreateObjCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_ObjCmdProc *proc, void *clientData, Tcl_CmdDeleteProc *deleteProc); /* 96 */      Tcl_Interp * (*tcl_CreateChild) (Tcl_Interp *interp, const char *name, int isSafe); /* 97 */ -    Tcl_TimerToken (*tcl_CreateTimerHandler) (int milliseconds, Tcl_TimerProc *proc, ClientData clientData); /* 98 */ -    Tcl_Trace (*tcl_CreateTrace) (Tcl_Interp *interp, int level, Tcl_CmdTraceProc *proc, ClientData clientData); /* 99 */ +    Tcl_TimerToken (*tcl_CreateTimerHandler) (int milliseconds, Tcl_TimerProc *proc, void *clientData); /* 98 */ +    Tcl_Trace (*tcl_CreateTrace) (Tcl_Interp *interp, int level, Tcl_CmdTraceProc *proc, void *clientData); /* 99 */      void (*tcl_DeleteAssocData) (Tcl_Interp *interp, const char *name); /* 100 */ -    void (*tcl_DeleteChannelHandler) (Tcl_Channel chan, Tcl_ChannelProc *proc, ClientData clientData); /* 101 */ -    void (*tcl_DeleteCloseHandler) (Tcl_Channel chan, Tcl_CloseProc *proc, ClientData clientData); /* 102 */ +    void (*tcl_DeleteChannelHandler) (Tcl_Channel chan, Tcl_ChannelProc *proc, void *clientData); /* 101 */ +    void (*tcl_DeleteCloseHandler) (Tcl_Channel chan, Tcl_CloseProc *proc, void *clientData); /* 102 */      int (*tcl_DeleteCommand) (Tcl_Interp *interp, const char *cmdName); /* 103 */      int (*tcl_DeleteCommandFromToken) (Tcl_Interp *interp, Tcl_Command command); /* 104 */ -    void (*tcl_DeleteEvents) (Tcl_EventDeleteProc *proc, ClientData clientData); /* 105 */ -    void (*tcl_DeleteEventSource) (Tcl_EventSetupProc *setupProc, Tcl_EventCheckProc *checkProc, ClientData clientData); /* 106 */ -    void (*tcl_DeleteExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 107 */ +    void (*tcl_DeleteEvents) (Tcl_EventDeleteProc *proc, void *clientData); /* 105 */ +    void (*tcl_DeleteEventSource) (Tcl_EventSetupProc *setupProc, Tcl_EventCheckProc *checkProc, void *clientData); /* 106 */ +    void (*tcl_DeleteExitHandler) (Tcl_ExitProc *proc, void *clientData); /* 107 */      void (*tcl_DeleteHashEntry) (Tcl_HashEntry *entryPtr); /* 108 */      void (*tcl_DeleteHashTable) (Tcl_HashTable *tablePtr); /* 109 */      void (*tcl_DeleteInterp) (Tcl_Interp *interp); /* 110 */      void (*tcl_DetachPids) (int numPids, Tcl_Pid *pidPtr); /* 111 */      void (*tcl_DeleteTimerHandler) (Tcl_TimerToken token); /* 112 */      void (*tcl_DeleteTrace) (Tcl_Interp *interp, Tcl_Trace trace); /* 113 */ -    void (*tcl_DontCallWhenDeleted) (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, ClientData clientData); /* 114 */ +    void (*tcl_DontCallWhenDeleted) (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, void *clientData); /* 114 */      int (*tcl_DoOneEvent) (int flags); /* 115 */ -    void (*tcl_DoWhenIdle) (Tcl_IdleProc *proc, ClientData clientData); /* 116 */ +    void (*tcl_DoWhenIdle) (Tcl_IdleProc *proc, void *clientData); /* 116 */      char * (*tcl_DStringAppend) (Tcl_DString *dsPtr, const char *bytes, int length); /* 117 */      char * (*tcl_DStringAppendElement) (Tcl_DString *dsPtr, const char *element); /* 118 */      void (*tcl_DStringEndSublist) (Tcl_DString *dsPtr); /* 119 */ @@ -2170,7 +2156,7 @@ typedef struct TclStubs {      int (*tcl_Eval) (Tcl_Interp *interp, const char *script); /* 129 */      int (*tcl_EvalFile) (Tcl_Interp *interp, const char *fileName); /* 130 */      TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_EvalObj) (Tcl_Interp *interp, Tcl_Obj *objPtr); /* 131 */ -    void (*tcl_EventuallyFree) (ClientData clientData, Tcl_FreeProc *freeProc); /* 132 */ +    void (*tcl_EventuallyFree) (void *clientData, Tcl_FreeProc *freeProc); /* 132 */      TCL_NORETURN1 void (*tcl_Exit) (int status); /* 133 */      int (*tcl_ExposeCommand) (Tcl_Interp *interp, const char *hiddenCmdToken, const char *cmdName); /* 134 */      int (*tcl_ExprBoolean) (Tcl_Interp *interp, const char *expr, int *ptr); /* 135 */ @@ -2188,11 +2174,11 @@ typedef struct TclStubs {      TCL_DEPRECATED_API("see TIP #559. Use Tcl_ResetResult") void (*tcl_FreeResult) (Tcl_Interp *interp); /* 147 */      int (*tcl_GetAlias) (Tcl_Interp *interp, const char *childCmd, Tcl_Interp **targetInterpPtr, const char **targetCmdPtr, int *argcPtr, const char ***argvPtr); /* 148 */      int (*tcl_GetAliasObj) (Tcl_Interp *interp, const char *childCmd, Tcl_Interp **targetInterpPtr, const char **targetCmdPtr, int *objcPtr, Tcl_Obj ***objv); /* 149 */ -    ClientData (*tcl_GetAssocData) (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc **procPtr); /* 150 */ +    void * (*tcl_GetAssocData) (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc **procPtr); /* 150 */      Tcl_Channel (*tcl_GetChannel) (Tcl_Interp *interp, const char *chanName, int *modePtr); /* 151 */      int (*tcl_GetChannelBufferSize) (Tcl_Channel chan); /* 152 */ -    int (*tcl_GetChannelHandle) (Tcl_Channel chan, int direction, ClientData *handlePtr); /* 153 */ -    ClientData (*tcl_GetChannelInstanceData) (Tcl_Channel chan); /* 154 */ +    int (*tcl_GetChannelHandle) (Tcl_Channel chan, int direction, void **handlePtr); /* 153 */ +    void * (*tcl_GetChannelInstanceData) (Tcl_Channel chan); /* 154 */      int (*tcl_GetChannelMode) (Tcl_Channel chan); /* 155 */      const char * (*tcl_GetChannelName) (Tcl_Channel chan); /* 156 */      int (*tcl_GetChannelOption) (Tcl_Interp *interp, Tcl_Channel chan, const char *optionName, Tcl_DString *dsPtr); /* 157 */ @@ -2206,13 +2192,13 @@ typedef struct TclStubs {      const char * (*tcl_GetNameOfExecutable) (void); /* 165 */      Tcl_Obj * (*tcl_GetObjResult) (Tcl_Interp *interp); /* 166 */  #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */ -    int (*tcl_GetOpenFile) (Tcl_Interp *interp, const char *chanID, int forWriting, int checkUsage, ClientData *filePtr); /* 167 */ +    int (*tcl_GetOpenFile) (Tcl_Interp *interp, const char *chanID, int forWriting, int checkUsage, void **filePtr); /* 167 */  #endif /* UNIX */  #if defined(_WIN32) /* WIN */      void (*reserved167)(void);  #endif /* WIN */  #ifdef MAC_OSX_TCL /* MACOSX */ -    int (*tcl_GetOpenFile) (Tcl_Interp *interp, const char *chanID, int forWriting, int checkUsage, ClientData *filePtr); /* 167 */ +    int (*tcl_GetOpenFile) (Tcl_Interp *interp, const char *chanID, int forWriting, int checkUsage, void **filePtr); /* 167 */  #endif /* MACOSX */      Tcl_PathType (*tcl_GetPathType) (const char *path); /* 168 */      int (*tcl_Gets) (Tcl_Channel chan, Tcl_DString *dsPtr); /* 169 */ @@ -2235,9 +2221,9 @@ typedef struct TclStubs {      char * (*tcl_JoinPath) (int argc, const char *const *argv, Tcl_DString *resultPtr); /* 186 */      int (*tcl_LinkVar) (Tcl_Interp *interp, const char *varName, void *addr, int type); /* 187 */      void (*reserved188)(void); -    Tcl_Channel (*tcl_MakeFileChannel) (ClientData handle, int mode); /* 189 */ +    Tcl_Channel (*tcl_MakeFileChannel) (void *handle, int mode); /* 189 */      int (*tcl_MakeSafe) (Tcl_Interp *interp); /* 190 */ -    Tcl_Channel (*tcl_MakeTcpClientChannel) (ClientData tcpSocket); /* 191 */ +    Tcl_Channel (*tcl_MakeTcpClientChannel) (void *tcpSocket); /* 191 */      char * (*tcl_Merge) (int argc, const char *const *argv); /* 192 */      Tcl_HashEntry * (*tcl_NextHashEntry) (Tcl_HashSearch *searchPtr); /* 193 */      void (*tcl_NotifyChannel) (Tcl_Channel channel, int mask); /* 194 */ @@ -2246,8 +2232,8 @@ typedef struct TclStubs {      Tcl_Channel (*tcl_OpenCommandChannel) (Tcl_Interp *interp, int argc, const char **argv, int flags); /* 197 */      Tcl_Channel (*tcl_OpenFileChannel) (Tcl_Interp *interp, const char *fileName, const char *modeString, int permissions); /* 198 */      Tcl_Channel (*tcl_OpenTcpClient) (Tcl_Interp *interp, int port, const char *address, const char *myaddr, int myport, int async); /* 199 */ -    Tcl_Channel (*tcl_OpenTcpServer) (Tcl_Interp *interp, int port, const char *host, Tcl_TcpAcceptProc *acceptProc, ClientData callbackData); /* 200 */ -    void (*tcl_Preserve) (ClientData data); /* 201 */ +    Tcl_Channel (*tcl_OpenTcpServer) (Tcl_Interp *interp, int port, const char *host, Tcl_TcpAcceptProc *acceptProc, void *callbackData); /* 200 */ +    void (*tcl_Preserve) (void *data); /* 201 */      void (*tcl_PrintDouble) (Tcl_Interp *interp, double value, char *dst); /* 202 */      int (*tcl_PutEnv) (const char *assignment); /* 203 */      const char * (*tcl_PosixError) (Tcl_Interp *interp); /* 204 */ @@ -2262,14 +2248,14 @@ typedef struct TclStubs {      int (*tcl_RegExpExec) (Tcl_Interp *interp, Tcl_RegExp regexp, const char *text, const char *start); /* 213 */      int (*tcl_RegExpMatch) (Tcl_Interp *interp, const char *text, const char *pattern); /* 214 */      void (*tcl_RegExpRange) (Tcl_RegExp regexp, int index, const char **startPtr, const char **endPtr); /* 215 */ -    void (*tcl_Release) (ClientData clientData); /* 216 */ +    void (*tcl_Release) (void *clientData); /* 216 */      void (*tcl_ResetResult) (Tcl_Interp *interp); /* 217 */      int (*tcl_ScanElement) (const char *src, int *flagPtr); /* 218 */      int (*tcl_ScanCountedElement) (const char *src, int length, int *flagPtr); /* 219 */      TCL_DEPRECATED_API("") int (*tcl_SeekOld) (Tcl_Channel chan, int offset, int mode); /* 220 */      int (*tcl_ServiceAll) (void); /* 221 */      int (*tcl_ServiceEvent) (int flags); /* 222 */ -    void (*tcl_SetAssocData) (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc *proc, ClientData clientData); /* 223 */ +    void (*tcl_SetAssocData) (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc *proc, void *clientData); /* 223 */      void (*tcl_SetChannelBufferSize) (Tcl_Channel chan, int sz); /* 224 */      int (*tcl_SetChannelOption) (Tcl_Interp *interp, Tcl_Channel chan, const char *optionName, const char *newValue); /* 225 */      int (*tcl_SetCommandInfo) (Tcl_Interp *interp, const char *cmdName, const Tcl_CmdInfo *infoPtr); /* 226 */ @@ -2293,22 +2279,22 @@ typedef struct TclStubs {      TCL_DEPRECATED_API("Don't use this function in a stub-enabled extension") void (*tcl_StaticLibrary) (Tcl_Interp *interp, const char *prefix, Tcl_LibraryInitProc *initProc, Tcl_LibraryInitProc *safeInitProc); /* 244 */      TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_StringMatch) (const char *str, const char *pattern); /* 245 */      TCL_DEPRECATED_API("") int (*tcl_TellOld) (Tcl_Channel chan); /* 246 */ -    TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_TraceVar) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, ClientData clientData); /* 247 */ -    int (*tcl_TraceVar2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, ClientData clientData); /* 248 */ +    TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_TraceVar) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, void *clientData); /* 247 */ +    int (*tcl_TraceVar2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, void *clientData); /* 248 */      char * (*tcl_TranslateFileName) (Tcl_Interp *interp, const char *name, Tcl_DString *bufferPtr); /* 249 */      int (*tcl_Ungets) (Tcl_Channel chan, const char *str, int len, int atHead); /* 250 */      void (*tcl_UnlinkVar) (Tcl_Interp *interp, const char *varName); /* 251 */      int (*tcl_UnregisterChannel) (Tcl_Interp *interp, Tcl_Channel chan); /* 252 */      TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_UnsetVar) (Tcl_Interp *interp, const char *varName, int flags); /* 253 */      int (*tcl_UnsetVar2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags); /* 254 */ -    TCL_DEPRECATED_API("No longer in use, changed to macro") void (*tcl_UntraceVar) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, ClientData clientData); /* 255 */ -    void (*tcl_UntraceVar2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, ClientData clientData); /* 256 */ +    TCL_DEPRECATED_API("No longer in use, changed to macro") void (*tcl_UntraceVar) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, void *clientData); /* 255 */ +    void (*tcl_UntraceVar2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, void *clientData); /* 256 */      void (*tcl_UpdateLinkedVar) (Tcl_Interp *interp, const char *varName); /* 257 */      TCL_DEPRECATED_API("No longer in use, changed to macro") int (*tcl_UpVar) (Tcl_Interp *interp, const char *frameName, const char *varName, const char *localName, int flags); /* 258 */      int (*tcl_UpVar2) (Tcl_Interp *interp, const char *frameName, const char *part1, const char *part2, const char *localName, int flags); /* 259 */      int (*tcl_VarEval) (Tcl_Interp *interp, ...); /* 260 */ -    TCL_DEPRECATED_API("No longer in use, changed to macro") ClientData (*tcl_VarTraceInfo) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *procPtr, ClientData prevClientData); /* 261 */ -    ClientData (*tcl_VarTraceInfo2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *procPtr, ClientData prevClientData); /* 262 */ +    TCL_DEPRECATED_API("No longer in use, changed to macro") void * (*tcl_VarTraceInfo) (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *procPtr, void *prevClientData); /* 261 */ +    void * (*tcl_VarTraceInfo2) (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *procPtr, void *prevClientData); /* 262 */      int (*tcl_Write) (Tcl_Channel chan, const char *s, int slen); /* 263 */      void (*tcl_WrongNumArgs) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], const char *message); /* 264 */      int (*tcl_DumpActiveMemory) (const char *fileName); /* 265 */ @@ -2327,15 +2313,15 @@ typedef struct TclStubs {      TCL_DEPRECATED_API("see TIP #422") TCL_NORETURN1 void (*tcl_PanicVA) (const char *format, va_list argList); /* 278 */      void (*tcl_GetVersion) (int *major, int *minor, int *patchLevel, int *type); /* 279 */      void (*tcl_InitMemory) (Tcl_Interp *interp); /* 280 */ -    Tcl_Channel (*tcl_StackChannel) (Tcl_Interp *interp, const Tcl_ChannelType *typePtr, ClientData instanceData, int mask, Tcl_Channel prevChan); /* 281 */ +    Tcl_Channel (*tcl_StackChannel) (Tcl_Interp *interp, const Tcl_ChannelType *typePtr, void *instanceData, int mask, Tcl_Channel prevChan); /* 281 */      int (*tcl_UnstackChannel) (Tcl_Interp *interp, Tcl_Channel chan); /* 282 */      Tcl_Channel (*tcl_GetStackedChannel) (Tcl_Channel chan); /* 283 */      void (*tcl_SetMainLoop) (Tcl_MainLoopProc *proc); /* 284 */      void (*reserved285)(void);      void (*tcl_AppendObjToObj) (Tcl_Obj *objPtr, Tcl_Obj *appendObjPtr); /* 286 */      Tcl_Encoding (*tcl_CreateEncoding) (const Tcl_EncodingType *typePtr); /* 287 */ -    void (*tcl_CreateThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 288 */ -    void (*tcl_DeleteThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 289 */ +    void (*tcl_CreateThreadExitHandler) (Tcl_ExitProc *proc, void *clientData); /* 288 */ +    void (*tcl_DeleteThreadExitHandler) (Tcl_ExitProc *proc, void *clientData); /* 289 */      void (*tcl_DiscardResult) (Tcl_SavedResult *statePtr); /* 290 */      int (*tcl_EvalEx) (Tcl_Interp *interp, const char *script, int numBytes, int flags); /* 291 */      int (*tcl_EvalObjv) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags); /* 292 */ @@ -2344,7 +2330,7 @@ typedef struct TclStubs {      int (*tcl_ExternalToUtf) (Tcl_Interp *interp, Tcl_Encoding encoding, const char *src, int srcLen, int flags, Tcl_EncodingState *statePtr, char *dst, int dstLen, int *srcReadPtr, int *dstWrotePtr, int *dstCharsPtr); /* 295 */      char * (*tcl_ExternalToUtfDString) (Tcl_Encoding encoding, const char *src, int srcLen, Tcl_DString *dsPtr); /* 296 */      void (*tcl_FinalizeThread) (void); /* 297 */ -    void (*tcl_FinalizeNotifier) (ClientData clientData); /* 298 */ +    void (*tcl_FinalizeNotifier) (void *clientData); /* 298 */      void (*tcl_FreeEncoding) (Tcl_Encoding encoding); /* 299 */      Tcl_ThreadId (*tcl_GetCurrentThread) (void); /* 300 */      Tcl_Encoding (*tcl_GetEncoding) (Tcl_Interp *interp, const char *name); /* 301 */ @@ -2353,7 +2339,7 @@ typedef struct TclStubs {      int (*tcl_GetIndexFromObjStruct) (Tcl_Interp *interp, Tcl_Obj *objPtr, const void *tablePtr, int offset, const char *msg, int flags, void *indexPtr); /* 304 */      void * (*tcl_GetThreadData) (Tcl_ThreadDataKey *keyPtr, int size); /* 305 */      Tcl_Obj * (*tcl_GetVar2Ex) (Tcl_Interp *interp, const char *part1, const char *part2, int flags); /* 306 */ -    ClientData (*tcl_InitNotifier) (void); /* 307 */ +    void * (*tcl_InitNotifier) (void); /* 307 */      void (*tcl_MutexLock) (Tcl_Mutex *mutexPtr); /* 308 */      void (*tcl_MutexUnlock) (Tcl_Mutex *mutexPtr); /* 309 */      void (*tcl_ConditionNotify) (Tcl_Condition *condPtr); /* 310 */ @@ -2389,7 +2375,7 @@ typedef struct TclStubs {      char * (*tcl_GetString) (Tcl_Obj *objPtr); /* 340 */      TCL_DEPRECATED_API("Use Tcl_GetEncodingSearchPath") const char * (*tcl_GetDefaultEncodingDir) (void); /* 341 */      TCL_DEPRECATED_API("Use Tcl_SetEncodingSearchPath") void (*tcl_SetDefaultEncodingDir) (const char *path); /* 342 */ -    void (*tcl_AlertNotifier) (ClientData clientData); /* 343 */ +    void (*tcl_AlertNotifier) (void *clientData); /* 343 */      void (*tcl_ServiceModeHook) (int mode); /* 344 */      int (*tcl_UniCharIsAlnum) (int ch); /* 345 */      int (*tcl_UniCharIsAlpha) (int ch); /* 346 */ @@ -2436,10 +2422,10 @@ typedef struct TclStubs {      Tcl_Mutex * (*tcl_GetAllocMutex) (void); /* 387 */      int (*tcl_GetChannelNames) (Tcl_Interp *interp); /* 388 */      int (*tcl_GetChannelNamesEx) (Tcl_Interp *interp, const char *pattern); /* 389 */ -    int (*tcl_ProcObjCmd) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 390 */ +    int (*tcl_ProcObjCmd) (void *clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 390 */      void (*tcl_ConditionFinalize) (Tcl_Condition *condPtr); /* 391 */      void (*tcl_MutexFinalize) (Tcl_Mutex *mutex); /* 392 */ -    int (*tcl_CreateThread) (Tcl_ThreadId *idPtr, Tcl_ThreadCreateProc *proc, ClientData clientData, int stackSize, int flags); /* 393 */ +    int (*tcl_CreateThread) (Tcl_ThreadId *idPtr, Tcl_ThreadCreateProc *proc, void *clientData, int stackSize, int flags); /* 393 */      int (*tcl_ReadRaw) (Tcl_Channel chan, char *dst, int bytesToRead); /* 394 */      int (*tcl_WriteRaw) (Tcl_Channel chan, const char *src, int srcLen); /* 395 */      Tcl_Channel (*tcl_GetTopChannel) (Tcl_Channel chan); /* 396 */ @@ -2471,17 +2457,17 @@ typedef struct TclStubs {      Tcl_HashEntry * (*tcl_CreateHashEntry) (Tcl_HashTable *tablePtr, const void *key, int *newPtr); /* 422 */      void (*tcl_InitCustomHashTable) (Tcl_HashTable *tablePtr, int keyType, const Tcl_HashKeyType *typePtr); /* 423 */      void (*tcl_InitObjHashTable) (Tcl_HashTable *tablePtr); /* 424 */ -    ClientData (*tcl_CommandTraceInfo) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *procPtr, ClientData prevClientData); /* 425 */ -    int (*tcl_TraceCommand) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *proc, ClientData clientData); /* 426 */ -    void (*tcl_UntraceCommand) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *proc, ClientData clientData); /* 427 */ -    char * (*tcl_AttemptAlloc) (unsigned int size); /* 428 */ -    char * (*tcl_AttemptDbCkalloc) (unsigned int size, const char *file, int line); /* 429 */ -    char * (*tcl_AttemptRealloc) (char *ptr, unsigned int size); /* 430 */ -    char * (*tcl_AttemptDbCkrealloc) (char *ptr, unsigned int size, const char *file, int line); /* 431 */ +    void * (*tcl_CommandTraceInfo) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *procPtr, void *prevClientData); /* 425 */ +    int (*tcl_TraceCommand) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *proc, void *clientData); /* 426 */ +    void (*tcl_UntraceCommand) (Tcl_Interp *interp, const char *varName, int flags, Tcl_CommandTraceProc *proc, void *clientData); /* 427 */ +    char * (*tcl_AttemptAlloc) (TCL_HASH_TYPE size); /* 428 */ +    char * (*tcl_AttemptDbCkalloc) (TCL_HASH_TYPE size, const char *file, int line); /* 429 */ +    char * (*tcl_AttemptRealloc) (char *ptr, TCL_HASH_TYPE size); /* 430 */ +    char * (*tcl_AttemptDbCkrealloc) (char *ptr, TCL_HASH_TYPE size, const char *file, int line); /* 431 */      int (*tcl_AttemptSetObjLength) (Tcl_Obj *objPtr, int length); /* 432 */      Tcl_ThreadId (*tcl_GetChannelThread) (Tcl_Channel channel); /* 433 */      unsigned short * (*tcl_GetUnicodeFromObj) (Tcl_Obj *objPtr, int *lengthPtr); /* 434 */ -    TCL_DEPRECATED_API("") int (*tcl_GetMathFuncInfo) (Tcl_Interp *interp, const char *name, int *numArgsPtr, Tcl_ValueType **argTypesPtr, Tcl_MathProc **procPtr, ClientData *clientDataPtr); /* 435 */ +    TCL_DEPRECATED_API("") int (*tcl_GetMathFuncInfo) (Tcl_Interp *interp, const char *name, int *numArgsPtr, Tcl_ValueType **argTypesPtr, Tcl_MathProc **procPtr, void **clientDataPtr); /* 435 */      TCL_DEPRECATED_API("") Tcl_Obj * (*tcl_ListMathFuncs) (Tcl_Interp *interp, const char *pattern); /* 436 */      Tcl_Obj * (*tcl_SubstObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags); /* 437 */      int (*tcl_DetachChannel) (Tcl_Interp *interp, Tcl_Channel channel); /* 438 */ @@ -2511,17 +2497,17 @@ typedef struct TclStubs {      int (*tcl_FSEqualPaths) (Tcl_Obj *firstPtr, Tcl_Obj *secondPtr); /* 462 */      Tcl_Obj * (*tcl_FSGetNormalizedPath) (Tcl_Interp *interp, Tcl_Obj *pathPtr); /* 463 */      Tcl_Obj * (*tcl_FSJoinToPath) (Tcl_Obj *pathPtr, int objc, Tcl_Obj *const objv[]); /* 464 */ -    ClientData (*tcl_FSGetInternalRep) (Tcl_Obj *pathPtr, const Tcl_Filesystem *fsPtr); /* 465 */ +    void * (*tcl_FSGetInternalRep) (Tcl_Obj *pathPtr, const Tcl_Filesystem *fsPtr); /* 465 */      Tcl_Obj * (*tcl_FSGetTranslatedPath) (Tcl_Interp *interp, Tcl_Obj *pathPtr); /* 466 */      int (*tcl_FSEvalFile) (Tcl_Interp *interp, Tcl_Obj *fileName); /* 467 */ -    Tcl_Obj * (*tcl_FSNewNativePath) (const Tcl_Filesystem *fromFilesystem, ClientData clientData); /* 468 */ +    Tcl_Obj * (*tcl_FSNewNativePath) (const Tcl_Filesystem *fromFilesystem, void *clientData); /* 468 */      const void * (*tcl_FSGetNativePath) (Tcl_Obj *pathPtr); /* 469 */      Tcl_Obj * (*tcl_FSFileSystemInfo) (Tcl_Obj *pathPtr); /* 470 */      Tcl_Obj * (*tcl_FSPathSeparator) (Tcl_Obj *pathPtr); /* 471 */      Tcl_Obj * (*tcl_FSListVolumes) (void); /* 472 */ -    int (*tcl_FSRegister) (ClientData clientData, const Tcl_Filesystem *fsPtr); /* 473 */ +    int (*tcl_FSRegister) (void *clientData, const Tcl_Filesystem *fsPtr); /* 473 */      int (*tcl_FSUnregister) (const Tcl_Filesystem *fsPtr); /* 474 */ -    ClientData (*tcl_FSData) (const Tcl_Filesystem *fsPtr); /* 475 */ +    void * (*tcl_FSData) (const Tcl_Filesystem *fsPtr); /* 475 */      const char * (*tcl_FSGetTranslatedStringPath) (Tcl_Interp *interp, Tcl_Obj *pathPtr); /* 476 */      CONST86 Tcl_Filesystem * (*tcl_FSGetFileSystemForPath) (Tcl_Obj *pathPtr); /* 477 */      Tcl_PathType (*tcl_FSGetPathType) (Tcl_Obj *pathPtr); /* 478 */ @@ -2529,7 +2515,7 @@ typedef struct TclStubs {      void (*tcl_FSMountsChanged) (const Tcl_Filesystem *fsPtr); /* 480 */      int (*tcl_EvalTokensStandard) (Tcl_Interp *interp, Tcl_Token *tokenPtr, int count); /* 481 */      void (*tcl_GetTime) (Tcl_Time *timeBuf); /* 482 */ -    Tcl_Trace (*tcl_CreateObjTrace) (Tcl_Interp *interp, int level, int flags, Tcl_CmdObjTraceProc *objProc, ClientData clientData, Tcl_CmdObjTraceDeleteProc *delProc); /* 483 */ +    Tcl_Trace (*tcl_CreateObjTrace) (Tcl_Interp *interp, int level, int flags, Tcl_CmdObjTraceProc *objProc, void *clientData, Tcl_CmdObjTraceDeleteProc *delProc); /* 483 */      int (*tcl_GetCommandInfoFromToken) (Tcl_Command token, Tcl_CmdInfo *infoPtr); /* 484 */      int (*tcl_SetCommandInfoFromToken) (Tcl_Command token, const Tcl_CmdInfo *infoPtr); /* 485 */      Tcl_Obj * (*tcl_DbNewWideIntObj) (Tcl_WideInt wideValue, const char *file, int line); /* 486 */ @@ -2552,7 +2538,7 @@ typedef struct TclStubs {      Tcl_Obj * (*tcl_NewDictObj) (void); /* 503 */      Tcl_Obj * (*tcl_DbNewDictObj) (const char *file, int line); /* 504 */      void (*tcl_RegisterConfig) (Tcl_Interp *interp, const char *pkgName, const Tcl_Config *configuration, const char *valEncoding); /* 505 */ -    Tcl_Namespace * (*tcl_CreateNamespace) (Tcl_Interp *interp, const char *name, ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc); /* 506 */ +    Tcl_Namespace * (*tcl_CreateNamespace) (Tcl_Interp *interp, const char *name, void *clientData, Tcl_NamespaceDeleteProc *deleteProc); /* 506 */      void (*tcl_DeleteNamespace) (Tcl_Namespace *nsPtr); /* 507 */      int (*tcl_AppendExportList) (Tcl_Interp *interp, Tcl_Namespace *nsPtr, Tcl_Obj *objPtr); /* 508 */      int (*tcl_Export) (Tcl_Interp *interp, Tcl_Namespace *nsPtr, const char *pattern, int resetListFirst); /* 509 */ @@ -2566,8 +2552,8 @@ typedef struct TclStubs {      void (*tcl_GetCommandFullName) (Tcl_Interp *interp, Tcl_Command command, Tcl_Obj *objPtr); /* 517 */      int (*tcl_FSEvalFileEx) (Tcl_Interp *interp, Tcl_Obj *fileName, const char *encodingName); /* 518 */      TCL_DEPRECATED_API("Don't use this function in a stub-enabled extension") Tcl_ExitProc * (*tcl_SetExitProc) (TCL_NORETURN1 Tcl_ExitProc *proc); /* 519 */ -    void (*tcl_LimitAddHandler) (Tcl_Interp *interp, int type, Tcl_LimitHandlerProc *handlerProc, ClientData clientData, Tcl_LimitHandlerDeleteProc *deleteProc); /* 520 */ -    void (*tcl_LimitRemoveHandler) (Tcl_Interp *interp, int type, Tcl_LimitHandlerProc *handlerProc, ClientData clientData); /* 521 */ +    void (*tcl_LimitAddHandler) (Tcl_Interp *interp, int type, Tcl_LimitHandlerProc *handlerProc, void *clientData, Tcl_LimitHandlerDeleteProc *deleteProc); /* 520 */ +    void (*tcl_LimitRemoveHandler) (Tcl_Interp *interp, int type, Tcl_LimitHandlerProc *handlerProc, void *clientData); /* 521 */      int (*tcl_LimitReady) (Tcl_Interp *interp); /* 522 */      int (*tcl_LimitCheck) (Tcl_Interp *interp); /* 523 */      int (*tcl_LimitExceeded) (Tcl_Interp *interp); /* 524 */ @@ -2598,8 +2584,8 @@ typedef struct TclStubs {      int (*tcl_GetEnsembleUnknownHandler) (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj **unknownListPtr); /* 549 */      int (*tcl_GetEnsembleFlags) (Tcl_Interp *interp, Tcl_Command token, int *flagsPtr); /* 550 */      int (*tcl_GetEnsembleNamespace) (Tcl_Interp *interp, Tcl_Command token, Tcl_Namespace **namespacePtrPtr); /* 551 */ -    void (*tcl_SetTimeProc) (Tcl_GetTimeProc *getProc, Tcl_ScaleTimeProc *scaleProc, ClientData clientData); /* 552 */ -    void (*tcl_QueryTimeProc) (Tcl_GetTimeProc **getProc, Tcl_ScaleTimeProc **scaleProc, ClientData *clientData); /* 553 */ +    void (*tcl_SetTimeProc) (Tcl_GetTimeProc *getProc, Tcl_ScaleTimeProc *scaleProc, void *clientData); /* 552 */ +    void (*tcl_QueryTimeProc) (Tcl_GetTimeProc **getProc, Tcl_ScaleTimeProc **scaleProc, void **clientData); /* 553 */      Tcl_DriverThreadActionProc * (*tcl_ChannelThreadActionProc) (const Tcl_ChannelType *chanTypePtr); /* 554 */      Tcl_Obj * (*tcl_NewBignumObj) (void *value); /* 555 */      Tcl_Obj * (*tcl_DbNewBignumObj) (void *value, const char *file, int line); /* 556 */ @@ -2626,15 +2612,15 @@ typedef struct TclStubs {      int (*tcl_AppendFormatToObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, const char *format, int objc, Tcl_Obj *const objv[]); /* 577 */      Tcl_Obj * (*tcl_ObjPrintf) (const char *format, ...) TCL_FORMAT_PRINTF(1, 2); /* 578 */      void (*tcl_AppendPrintfToObj) (Tcl_Obj *objPtr, const char *format, ...) TCL_FORMAT_PRINTF(2, 3); /* 579 */ -    int (*tcl_CancelEval) (Tcl_Interp *interp, Tcl_Obj *resultObjPtr, ClientData clientData, int flags); /* 580 */ +    int (*tcl_CancelEval) (Tcl_Interp *interp, Tcl_Obj *resultObjPtr, void *clientData, int flags); /* 580 */      int (*tcl_Canceled) (Tcl_Interp *interp, int flags); /* 581 */      int (*tcl_CreatePipe) (Tcl_Interp *interp, Tcl_Channel *rchan, Tcl_Channel *wchan, int flags); /* 582 */ -    Tcl_Command (*tcl_NRCreateCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_ObjCmdProc *proc, Tcl_ObjCmdProc *nreProc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); /* 583 */ +    Tcl_Command (*tcl_NRCreateCommand) (Tcl_Interp *interp, const char *cmdName, Tcl_ObjCmdProc *proc, Tcl_ObjCmdProc *nreProc, void *clientData, Tcl_CmdDeleteProc *deleteProc); /* 583 */      int (*tcl_NREvalObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags); /* 584 */      int (*tcl_NREvalObjv) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags); /* 585 */      int (*tcl_NRCmdSwap) (Tcl_Interp *interp, Tcl_Command cmd, int objc, Tcl_Obj *const objv[], int flags); /* 586 */ -    void (*tcl_NRAddCallback) (Tcl_Interp *interp, Tcl_NRPostProc *postProcPtr, ClientData data0, ClientData data1, ClientData data2, ClientData data3); /* 587 */ -    int (*tcl_NRCallObjProc) (Tcl_Interp *interp, Tcl_ObjCmdProc *objProc, ClientData clientData, int objc, Tcl_Obj *const objv[]); /* 588 */ +    void (*tcl_NRAddCallback) (Tcl_Interp *interp, Tcl_NRPostProc *postProcPtr, void *data0, void *data1, void *data2, void *data3); /* 587 */ +    int (*tcl_NRCallObjProc) (Tcl_Interp *interp, Tcl_ObjCmdProc *objProc, void *clientData, int objc, Tcl_Obj *const objv[]); /* 588 */      unsigned (*tcl_GetFSDeviceFromStat) (const Tcl_StatBuf *statPtr); /* 589 */      unsigned (*tcl_GetFSInodeFromStat) (const Tcl_StatBuf *statPtr); /* 590 */      unsigned (*tcl_GetModeFromStat) (const Tcl_StatBuf *statPtr); /* 591 */ @@ -2677,13 +2663,13 @@ typedef struct TclStubs {      void * (*tcl_FindSymbol) (Tcl_Interp *interp, Tcl_LoadHandle handle, const char *symbol); /* 628 */      int (*tcl_FSUnloadFile) (Tcl_Interp *interp, Tcl_LoadHandle handlePtr); /* 629 */      void (*tcl_ZlibStreamSetCompressionDictionary) (Tcl_ZlibStream zhandle, Tcl_Obj *compressionDictionaryObj); /* 630 */ -    Tcl_Channel (*tcl_OpenTcpServerEx) (Tcl_Interp *interp, const char *service, const char *host, unsigned int flags, Tcl_TcpAcceptProc *acceptProc, ClientData callbackData); /* 631 */ +    Tcl_Channel (*tcl_OpenTcpServerEx) (Tcl_Interp *interp, const char *service, const char *host, unsigned int flags, Tcl_TcpAcceptProc *acceptProc, void *callbackData); /* 631 */      int (*tclZipfs_Mount) (Tcl_Interp *interp, const char *mountPoint, const char *zipname, const char *passwd); /* 632 */      int (*tclZipfs_Unmount) (Tcl_Interp *interp, const char *mountPoint); /* 633 */      Tcl_Obj * (*tclZipfs_TclLibrary) (void); /* 634 */      int (*tclZipfs_MountBuffer) (Tcl_Interp *interp, const char *mountPoint, unsigned char *data, size_t datalen, int copy); /* 635 */      void (*tcl_FreeInternalRep) (Tcl_Obj *objPtr); /* 636 */ -    char * (*tcl_InitStringRep) (Tcl_Obj *objPtr, const char *bytes, unsigned int numBytes); /* 637 */ +    char * (*tcl_InitStringRep) (Tcl_Obj *objPtr, const char *bytes, TCL_HASH_TYPE numBytes); /* 637 */      Tcl_ObjInternalRep * (*tcl_FetchInternalRep) (Tcl_Obj *objPtr, const Tcl_ObjType *typePtr); /* 638 */      void (*tcl_StoreInternalRep) (Tcl_Obj *objPtr, const Tcl_ObjType *typePtr, const Tcl_ObjInternalRep *irPtr); /* 639 */      int (*tcl_HasStringRep) (Tcl_Obj *objPtr); /* 640 */ diff --git a/generic/tclInt.decls b/generic/tclInt.decls index 6b0bdae..5a9f4f0 100644 --- a/generic/tclInt.decls +++ b/generic/tclInt.decls @@ -80,7 +80,7 @@ declare 12 {  #	    Tcl_DString *headPtr, char *tail, Tcl_GlobTypeData *types)  #}  declare 14 { -    int TclDumpMemoryInfo(ClientData clientData, int flags) +    int TclDumpMemoryInfo(void *clientData, int flags)  }  # Removed in 8.1:  #  declare 15 { @@ -227,11 +227,11 @@ declare 51 {  #	    int flags)  #}  declare 53 { -    int TclInvokeObjectCommand(ClientData clientData, Tcl_Interp *interp, +    int TclInvokeObjectCommand(void *clientData, Tcl_Interp *interp,  	    int argc, const char **argv)  }  declare 54 { -    int TclInvokeStringCommand(ClientData clientData, Tcl_Interp *interp, +    int TclInvokeStringCommand(void *clientData, Tcl_Interp *interp,  	    int objc, Tcl_Obj *const objv[])  }  declare 55 { @@ -267,7 +267,7 @@ declare 62 {      int TclObjCommandComplete(Tcl_Obj *cmdPtr)  }  declare 63 { -    int TclObjInterpProc(ClientData clientData, Tcl_Interp *interp, +    int TclObjInterpProc(void *clientData, Tcl_Interp *interp,  	    int objc, Tcl_Obj *const objv[])  }  declare 64 { @@ -357,7 +357,7 @@ declare 81 {  #      void TclPlatformInit(Tcl_Interp *interp)  #  }  declare 88 {deprecated {}} { -    char *TclPrecTraceProc(ClientData clientData, Tcl_Interp *interp, +    char *TclPrecTraceProc(void *clientData, Tcl_Interp *interp,  	    const char *name1, const char *name2, int flags)  }  declare 89 { @@ -377,7 +377,7 @@ declare 92 {  	    const char *procName)  }  declare 93 { -    void TclProcDeleteProc(ClientData clientData) +    void TclProcDeleteProc(void *clientData)  }  # Removed in 8.5:  #declare 94 { @@ -459,7 +459,7 @@ declare 112 {  }  declare 113 {      Tcl_Namespace *TclCreateNamespace(Tcl_Interp *interp, const char *name, -	    ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc) +	    void *clientData, Tcl_NamespaceDeleteProc *deleteProc)  }  declare 114 {      void TclDeleteNamespace(Tcl_Namespace *nsPtr) @@ -565,7 +565,7 @@ declare 141 {  }  declare 142 {      int TclSetByteCodeFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr, -	    CompileHookProc *hookProc, ClientData clientData) +	    CompileHookProc *hookProc, void *clientData)  }  declare 143 {      int TclAddLiteralObj(struct CompileEnv *envPtr, Tcl_Obj *objPtr, @@ -642,7 +642,7 @@ declare 161 {  	    Tcl_Obj *cmdObjPtr)  }  declare 162 { -    void TclChannelEventScriptInvoker(ClientData clientData, int flags) +    void TclChannelEventScriptInvoker(void *clientData, int flags)  }  # ALERT: The result of 'TclGetInstructionTable' is actually a @@ -940,7 +940,7 @@ declare 237 {  # NRE functions for "rogue" extensions to exploit NRE; they will need to  # include NRE.h too.  declare 238 { -    int TclNRInterpProc(ClientData clientData, Tcl_Interp *interp, +    int TclNRInterpProc(void *clientData, Tcl_Interp *interp,  	    int objc, Tcl_Obj *const objv[])  }  declare 239 { diff --git a/generic/tclInt.h b/generic/tclInt.h index 294ff97..72107ef 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -423,8 +423,9 @@ struct NamespacePathEntry {   */  #define NS_DYING	0x01 -#define NS_TEARDOWN	0x02 -#define NS_DEAD		0x04 +#define NS_DEAD		0x02 +#define NS_TEARDOWN	0x04 +#define NS_KILLED	0x04 /* Same as NS_TEARDOWN (Deprecated) */  #define NS_SUPPRESS_COMPILATION	0x08  /* diff --git a/generic/tclIntDecls.h b/generic/tclIntDecls.h index 28b2a61..33b6883 100644 --- a/generic/tclIntDecls.h +++ b/generic/tclIntDecls.h @@ -96,7 +96,7 @@ EXTERN void		TclDeleteVars(Interp *iPtr,  				TclVarHashTable *tablePtr);  /* Slot 13 is reserved */  /* 14 */ -EXTERN int		TclDumpMemoryInfo(ClientData clientData, int flags); +EXTERN int		TclDumpMemoryInfo(void *clientData, int flags);  /* Slot 15 is reserved */  /* 16 */  EXTERN void		TclExprFloatError(Tcl_Interp *interp, double value); @@ -173,11 +173,11 @@ EXTERN void		TclInitCompiledLocals(Tcl_Interp *interp,  EXTERN int		TclInterpInit(Tcl_Interp *interp);  /* Slot 52 is reserved */  /* 53 */ -EXTERN int		TclInvokeObjectCommand(ClientData clientData, +EXTERN int		TclInvokeObjectCommand(void *clientData,  				Tcl_Interp *interp, int argc,  				const char **argv);  /* 54 */ -EXTERN int		TclInvokeStringCommand(ClientData clientData, +EXTERN int		TclInvokeStringCommand(void *clientData,  				Tcl_Interp *interp, int objc,  				Tcl_Obj *const objv[]);  /* 55 */ @@ -197,7 +197,7 @@ EXTERN Tcl_Obj *	TclNewProcBodyObj(Proc *procPtr);  /* 62 */  EXTERN int		TclObjCommandComplete(Tcl_Obj *cmdPtr);  /* 63 */ -EXTERN int		TclObjInterpProc(ClientData clientData, +EXTERN int		TclObjInterpProc(void *clientData,  				Tcl_Interp *interp, int objc,  				Tcl_Obj *const objv[]);  /* 64 */ @@ -235,7 +235,7 @@ EXTERN void *		TclpRealloc(void *ptr, unsigned int size);  /* Slot 87 is reserved */  /* 88 */  TCL_DEPRECATED("") -char *			TclPrecTraceProc(ClientData clientData, +char *			TclPrecTraceProc(void *clientData,  				Tcl_Interp *interp, const char *name1,  				const char *name2, int flags);  /* 89 */ @@ -250,7 +250,7 @@ EXTERN int		TclProcCompileProc(Tcl_Interp *interp, Proc *procPtr,  				const char *description,  				const char *procName);  /* 93 */ -EXTERN void		TclProcDeleteProc(ClientData clientData); +EXTERN void		TclProcDeleteProc(void *clientData);  /* Slot 94 is reserved */  /* Slot 95 is reserved */  /* 96 */ @@ -293,7 +293,7 @@ EXTERN int		TclAppendExportList(Tcl_Interp *interp,  				Tcl_Namespace *nsPtr, Tcl_Obj *objPtr);  /* 113 */  EXTERN Tcl_Namespace *	TclCreateNamespace(Tcl_Interp *interp, -				const char *name, ClientData clientData, +				const char *name, void *clientData,  				Tcl_NamespaceDeleteProc *deleteProc);  /* 114 */  EXTERN void		TclDeleteNamespace(Tcl_Namespace *nsPtr); @@ -370,7 +370,7 @@ EXTERN const char *	TclpGetCwd(Tcl_Interp *interp, Tcl_DString *cwdPtr);  /* 142 */  EXTERN int		TclSetByteCodeFromAny(Tcl_Interp *interp,  				Tcl_Obj *objPtr, CompileHookProc *hookProc, -				ClientData clientData); +				void *clientData);  /* 143 */  EXTERN int		TclAddLiteralObj(struct CompileEnv *envPtr,  				Tcl_Obj *objPtr, LiteralEntry **litPtrPtr); @@ -415,7 +415,7 @@ const char *		TclGetStartupScriptFileName(void);  EXTERN int		TclChannelTransform(Tcl_Interp *interp,  				Tcl_Channel chan, Tcl_Obj *cmdObjPtr);  /* 162 */ -EXTERN void		TclChannelEventScriptInvoker(ClientData clientData, +EXTERN void		TclChannelEventScriptInvoker(void *clientData,  				int flags);  /* 163 */  EXTERN const void *	TclGetInstructionTable(void); @@ -584,9 +584,8 @@ void			TclBackgroundException(Tcl_Interp *interp, int code);  /* 237 */  EXTERN int		TclResetCancellation(Tcl_Interp *interp, int force);  /* 238 */ -EXTERN int		TclNRInterpProc(ClientData clientData, -				Tcl_Interp *interp, int objc, -				Tcl_Obj *const objv[]); +EXTERN int		TclNRInterpProc(void *clientData, Tcl_Interp *interp, +				int objc, Tcl_Obj *const objv[]);  /* 239 */  EXTERN int		TclNRInterpProcCore(Tcl_Interp *interp,  				Tcl_Obj *procNameObj, int skip, @@ -678,7 +677,7 @@ typedef struct TclIntStubs {      void (*tclDeleteCompiledLocalVars) (Interp *iPtr, CallFrame *framePtr); /* 11 */      void (*tclDeleteVars) (Interp *iPtr, TclVarHashTable *tablePtr); /* 12 */      void (*reserved13)(void); -    int (*tclDumpMemoryInfo) (ClientData clientData, int flags); /* 14 */ +    int (*tclDumpMemoryInfo) (void *clientData, int flags); /* 14 */      void (*reserved15)(void);      void (*tclExprFloatError) (Tcl_Interp *interp, double value); /* 16 */      void (*reserved17)(void); @@ -717,8 +716,8 @@ typedef struct TclIntStubs {      void (*tclInitCompiledLocals) (Tcl_Interp *interp, CallFrame *framePtr, Namespace *nsPtr); /* 50 */      int (*tclInterpInit) (Tcl_Interp *interp); /* 51 */      void (*reserved52)(void); -    int (*tclInvokeObjectCommand) (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv); /* 53 */ -    int (*tclInvokeStringCommand) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 54 */ +    int (*tclInvokeObjectCommand) (void *clientData, Tcl_Interp *interp, int argc, const char **argv); /* 53 */ +    int (*tclInvokeStringCommand) (void *clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 54 */      Proc * (*tclIsProc) (Command *cmdPtr); /* 55 */      void (*reserved56)(void);      void (*reserved57)(void); @@ -727,7 +726,7 @@ typedef struct TclIntStubs {      int (*tclNeedSpace) (const char *start, const char *end); /* 60 */      Tcl_Obj * (*tclNewProcBodyObj) (Proc *procPtr); /* 61 */      int (*tclObjCommandComplete) (Tcl_Obj *cmdPtr); /* 62 */ -    int (*tclObjInterpProc) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 63 */ +    int (*tclObjInterpProc) (void *clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 63 */      int (*tclObjInvoke) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags); /* 64 */      void (*reserved65)(void);      void (*reserved66)(void); @@ -752,12 +751,12 @@ typedef struct TclIntStubs {      void (*reserved85)(void);      void (*reserved86)(void);      void (*reserved87)(void); -    TCL_DEPRECATED_API("") char * (*tclPrecTraceProc) (ClientData clientData, Tcl_Interp *interp, const char *name1, const char *name2, int flags); /* 88 */ +    TCL_DEPRECATED_API("") char * (*tclPrecTraceProc) (void *clientData, Tcl_Interp *interp, const char *name1, const char *name2, int flags); /* 88 */      int (*tclPreventAliasLoop) (Tcl_Interp *interp, Tcl_Interp *cmdInterp, Tcl_Command cmd); /* 89 */      void (*reserved90)(void);      void (*tclProcCleanupProc) (Proc *procPtr); /* 91 */      int (*tclProcCompileProc) (Tcl_Interp *interp, Proc *procPtr, Tcl_Obj *bodyPtr, Namespace *nsPtr, const char *description, const char *procName); /* 92 */ -    void (*tclProcDeleteProc) (ClientData clientData); /* 93 */ +    void (*tclProcDeleteProc) (void *clientData); /* 93 */      void (*reserved94)(void);      void (*reserved95)(void);      int (*tclRenameCommand) (Tcl_Interp *interp, const char *oldName, const char *newName); /* 96 */ @@ -777,7 +776,7 @@ typedef struct TclIntStubs {      int (*tclSockMinimumBuffers) (void *sock, int size); /* 110 */      void (*tcl_AddInterpResolvers) (Tcl_Interp *interp, const char *name, Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc, Tcl_ResolveCompiledVarProc *compiledVarProc); /* 111 */      int (*tclAppendExportList) (Tcl_Interp *interp, Tcl_Namespace *nsPtr, Tcl_Obj *objPtr); /* 112 */ -    Tcl_Namespace * (*tclCreateNamespace) (Tcl_Interp *interp, const char *name, ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc); /* 113 */ +    Tcl_Namespace * (*tclCreateNamespace) (Tcl_Interp *interp, const char *name, void *clientData, Tcl_NamespaceDeleteProc *deleteProc); /* 113 */      void (*tclDeleteNamespace) (Tcl_Namespace *nsPtr); /* 114 */      int (*tclExport) (Tcl_Interp *interp, Tcl_Namespace *nsPtr, const char *pattern, int resetListFirst); /* 115 */      Tcl_Command (*tclFindCommand) (Tcl_Interp *interp, const char *name, Tcl_Namespace *contextNsPtr, int flags); /* 116 */ @@ -806,7 +805,7 @@ typedef struct TclIntStubs {      void (*reserved139)(void);      void (*reserved140)(void);      const char * (*tclpGetCwd) (Tcl_Interp *interp, Tcl_DString *cwdPtr); /* 141 */ -    int (*tclSetByteCodeFromAny) (Tcl_Interp *interp, Tcl_Obj *objPtr, CompileHookProc *hookProc, ClientData clientData); /* 142 */ +    int (*tclSetByteCodeFromAny) (Tcl_Interp *interp, Tcl_Obj *objPtr, CompileHookProc *hookProc, void *clientData); /* 142 */      int (*tclAddLiteralObj) (struct CompileEnv *envPtr, Tcl_Obj *objPtr, LiteralEntry **litPtrPtr); /* 143 */      void (*tclHideLiteral) (Tcl_Interp *interp, struct CompileEnv *envPtr, int index); /* 144 */      const struct AuxDataType * (*tclGetAuxDataType) (const char *typeName); /* 145 */ @@ -826,7 +825,7 @@ typedef struct TclIntStubs {      TCL_DEPRECATED_API("use public Tcl_GetStartupScript()") const char * (*tclGetStartupScriptFileName) (void); /* 159 */      void (*reserved160)(void);      int (*tclChannelTransform) (Tcl_Interp *interp, Tcl_Channel chan, Tcl_Obj *cmdObjPtr); /* 161 */ -    void (*tclChannelEventScriptInvoker) (ClientData clientData, int flags); /* 162 */ +    void (*tclChannelEventScriptInvoker) (void *clientData, int flags); /* 162 */      const void * (*tclGetInstructionTable) (void); /* 163 */      void (*tclExpandCodeArray) (void *envPtr); /* 164 */      void (*tclpSetInitialEncodings) (void); /* 165 */ @@ -902,7 +901,7 @@ typedef struct TclIntStubs {      void (*tclInitVarHashTable) (TclVarHashTable *tablePtr, Namespace *nsPtr); /* 235 */      TCL_DEPRECATED_API("use Tcl_BackgroundException") void (*tclBackgroundException) (Tcl_Interp *interp, int code); /* 236 */      int (*tclResetCancellation) (Tcl_Interp *interp, int force); /* 237 */ -    int (*tclNRInterpProc) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 238 */ +    int (*tclNRInterpProc) (void *clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 238 */      int (*tclNRInterpProcCore) (Tcl_Interp *interp, Tcl_Obj *procNameObj, int skip, ProcErrorProc *errorProc); /* 239 */      int (*tclNRRunCallbacks) (Tcl_Interp *interp, int result, struct NRE_callback *rootPtr); /* 240 */      int (*tclNREvalObjEx) (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags, const CmdFrame *invoker, int word); /* 241 */ diff --git a/generic/tclListObj.c b/generic/tclListObj.c index 0c753cf..a7f723d 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -1022,7 +1022,7 @@ Tcl_ListObjReplace(      }      if (count < 0) {  	count = 0; -    } else if (first > INT_MAX - count /* Handle integer overflow */ +    } else if (count > LIST_MAX /* Handle integer overflow */  	    || numElems < first+count) {  	count = numElems - first; diff --git a/generic/tclOO.decls b/generic/tclOO.decls index e4063c7..c6ffccd 100644 --- a/generic/tclOO.decls +++ b/generic/tclOO.decls @@ -51,7 +51,7 @@ declare 8 {  }  declare 9 {      int Tcl_MethodIsType(Tcl_Method method, const Tcl_MethodType *typePtr, -	    ClientData *clientDataPtr) +	    void **clientDataPtr)  }  declare 10 {      Tcl_Obj *Tcl_MethodName(Tcl_Method method) @@ -59,12 +59,12 @@ declare 10 {  declare 11 {      Tcl_Method Tcl_NewInstanceMethod(Tcl_Interp *interp, Tcl_Object object,  	    Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, -	    ClientData clientData) +	    void *clientData)  }  declare 12 {      Tcl_Method Tcl_NewMethod(Tcl_Interp *interp, Tcl_Class cls,  	    Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, -	    ClientData clientData) +	    void *clientData)  }  declare 13 {      Tcl_Object Tcl_NewObjectInstance(Tcl_Interp *interp, Tcl_Class cls, @@ -87,20 +87,20 @@ declare 18 {      int Tcl_ObjectContextSkippedArgs(Tcl_ObjectContext context)  }  declare 19 { -    ClientData Tcl_ClassGetMetadata(Tcl_Class clazz, +    void *Tcl_ClassGetMetadata(Tcl_Class clazz,  	    const Tcl_ObjectMetadataType *typePtr)  }  declare 20 {      void Tcl_ClassSetMetadata(Tcl_Class clazz, -	    const Tcl_ObjectMetadataType *typePtr, ClientData metadata) +	    const Tcl_ObjectMetadataType *typePtr, void *metadata)  }  declare 21 { -    ClientData Tcl_ObjectGetMetadata(Tcl_Object object, +    void *Tcl_ObjectGetMetadata(Tcl_Object object,  	    const Tcl_ObjectMetadataType *typePtr)  }  declare 22 {      void Tcl_ObjectSetMetadata(Tcl_Object object, -	    const Tcl_ObjectMetadataType *typePtr, ClientData metadata) +	    const Tcl_ObjectMetadataType *typePtr, void *metadata)  }  declare 23 {      int Tcl_ObjectContextInvokeNext(Tcl_Interp *interp, @@ -150,14 +150,14 @@ declare 0 {  declare 1 {      Tcl_Method TclOOMakeProcInstanceMethod(Tcl_Interp *interp, Object *oPtr,  	    int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, -	    const Tcl_MethodType *typePtr, ClientData clientData, +	    const Tcl_MethodType *typePtr, void *clientData,  	    Proc **procPtrPtr)  }  declare 2 {      Tcl_Method TclOOMakeProcMethod(Tcl_Interp *interp, Class *clsPtr,  	    int flags, Tcl_Obj *nameObj, const char *namePtr,  	    Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, -	    ClientData clientData, Proc **procPtrPtr) +	    void *clientData, Proc **procPtrPtr)  }  declare 3 {      Method *TclOONewProcInstanceMethod(Tcl_Interp *interp, Object *oPtr, @@ -188,13 +188,13 @@ declare 9 {      Tcl_Method TclOONewProcInstanceMethodEx(Tcl_Interp *interp,  	    Tcl_Object oPtr, TclOO_PreCallProc *preCallPtr,  	    TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, -	    ClientData clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, +	    void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj,  	    Tcl_Obj *bodyObj, int flags, void **internalTokenPtr)  }  declare 10 {      Tcl_Method TclOONewProcMethodEx(Tcl_Interp *interp, Tcl_Class clsPtr,  	    TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, -	    ProcErrorProc *errProc, ClientData clientData, Tcl_Obj *nameObj, +	    ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj,  	    Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags,  	    void **internalTokenPtr)  } diff --git a/generic/tclOODecls.h b/generic/tclOODecls.h index 3be1e3d..6ba5d14 100644 --- a/generic/tclOODecls.h +++ b/generic/tclOODecls.h @@ -53,19 +53,19 @@ TCLAPI int		Tcl_MethodIsPublic(Tcl_Method method);  /* 9 */  TCLAPI int		Tcl_MethodIsType(Tcl_Method method,  				const Tcl_MethodType *typePtr, -				ClientData *clientDataPtr); +				void **clientDataPtr);  /* 10 */  TCLAPI Tcl_Obj *	Tcl_MethodName(Tcl_Method method);  /* 11 */  TCLAPI Tcl_Method	Tcl_NewInstanceMethod(Tcl_Interp *interp,  				Tcl_Object object, Tcl_Obj *nameObj,  				int flags, const Tcl_MethodType *typePtr, -				ClientData clientData); +				void *clientData);  /* 12 */  TCLAPI Tcl_Method	Tcl_NewMethod(Tcl_Interp *interp, Tcl_Class cls,  				Tcl_Obj *nameObj, int flags,  				const Tcl_MethodType *typePtr, -				ClientData clientData); +				void *clientData);  /* 13 */  TCLAPI Tcl_Object	Tcl_NewObjectInstance(Tcl_Interp *interp,  				Tcl_Class cls, const char *nameStr, @@ -84,19 +84,19 @@ TCLAPI Tcl_Object	Tcl_ObjectContextObject(Tcl_ObjectContext context);  TCLAPI int		Tcl_ObjectContextSkippedArgs(  				Tcl_ObjectContext context);  /* 19 */ -TCLAPI ClientData	Tcl_ClassGetMetadata(Tcl_Class clazz, +TCLAPI void *		Tcl_ClassGetMetadata(Tcl_Class clazz,  				const Tcl_ObjectMetadataType *typePtr);  /* 20 */  TCLAPI void		Tcl_ClassSetMetadata(Tcl_Class clazz,  				const Tcl_ObjectMetadataType *typePtr, -				ClientData metadata); +				void *metadata);  /* 21 */ -TCLAPI ClientData	Tcl_ObjectGetMetadata(Tcl_Object object, +TCLAPI void *		Tcl_ObjectGetMetadata(Tcl_Object object,  				const Tcl_ObjectMetadataType *typePtr);  /* 22 */  TCLAPI void		Tcl_ObjectSetMetadata(Tcl_Object object,  				const Tcl_ObjectMetadataType *typePtr, -				ClientData metadata); +				void *metadata);  /* 23 */  TCLAPI int		Tcl_ObjectContextInvokeNext(Tcl_Interp *interp,  				Tcl_ObjectContext context, int objc, @@ -141,20 +141,20 @@ typedef struct TclOOStubs {      Tcl_Class (*tcl_MethodDeclarerClass) (Tcl_Method method); /* 6 */      Tcl_Object (*tcl_MethodDeclarerObject) (Tcl_Method method); /* 7 */      int (*tcl_MethodIsPublic) (Tcl_Method method); /* 8 */ -    int (*tcl_MethodIsType) (Tcl_Method method, const Tcl_MethodType *typePtr, ClientData *clientDataPtr); /* 9 */ +    int (*tcl_MethodIsType) (Tcl_Method method, const Tcl_MethodType *typePtr, void **clientDataPtr); /* 9 */      Tcl_Obj * (*tcl_MethodName) (Tcl_Method method); /* 10 */ -    Tcl_Method (*tcl_NewInstanceMethod) (Tcl_Interp *interp, Tcl_Object object, Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, ClientData clientData); /* 11 */ -    Tcl_Method (*tcl_NewMethod) (Tcl_Interp *interp, Tcl_Class cls, Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, ClientData clientData); /* 12 */ +    Tcl_Method (*tcl_NewInstanceMethod) (Tcl_Interp *interp, Tcl_Object object, Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, void *clientData); /* 11 */ +    Tcl_Method (*tcl_NewMethod) (Tcl_Interp *interp, Tcl_Class cls, Tcl_Obj *nameObj, int flags, const Tcl_MethodType *typePtr, void *clientData); /* 12 */      Tcl_Object (*tcl_NewObjectInstance) (Tcl_Interp *interp, Tcl_Class cls, const char *nameStr, const char *nsNameStr, int objc, Tcl_Obj *const *objv, int skip); /* 13 */      int (*tcl_ObjectDeleted) (Tcl_Object object); /* 14 */      int (*tcl_ObjectContextIsFiltering) (Tcl_ObjectContext context); /* 15 */      Tcl_Method (*tcl_ObjectContextMethod) (Tcl_ObjectContext context); /* 16 */      Tcl_Object (*tcl_ObjectContextObject) (Tcl_ObjectContext context); /* 17 */      int (*tcl_ObjectContextSkippedArgs) (Tcl_ObjectContext context); /* 18 */ -    ClientData (*tcl_ClassGetMetadata) (Tcl_Class clazz, const Tcl_ObjectMetadataType *typePtr); /* 19 */ -    void (*tcl_ClassSetMetadata) (Tcl_Class clazz, const Tcl_ObjectMetadataType *typePtr, ClientData metadata); /* 20 */ -    ClientData (*tcl_ObjectGetMetadata) (Tcl_Object object, const Tcl_ObjectMetadataType *typePtr); /* 21 */ -    void (*tcl_ObjectSetMetadata) (Tcl_Object object, const Tcl_ObjectMetadataType *typePtr, ClientData metadata); /* 22 */ +    void * (*tcl_ClassGetMetadata) (Tcl_Class clazz, const Tcl_ObjectMetadataType *typePtr); /* 19 */ +    void (*tcl_ClassSetMetadata) (Tcl_Class clazz, const Tcl_ObjectMetadataType *typePtr, void *metadata); /* 20 */ +    void * (*tcl_ObjectGetMetadata) (Tcl_Object object, const Tcl_ObjectMetadataType *typePtr); /* 21 */ +    void (*tcl_ObjectSetMetadata) (Tcl_Object object, const Tcl_ObjectMetadataType *typePtr, void *metadata); /* 22 */      int (*tcl_ObjectContextInvokeNext) (Tcl_Interp *interp, Tcl_ObjectContext context, int objc, Tcl_Obj *const *objv, int skip); /* 23 */      Tcl_ObjectMapMethodNameProc * (*tcl_ObjectGetMethodNameMapper) (Tcl_Object object); /* 24 */      void (*tcl_ObjectSetMethodNameMapper) (Tcl_Object object, Tcl_ObjectMapMethodNameProc *mapMethodNameProc); /* 25 */ diff --git a/generic/tclOOIntDecls.h b/generic/tclOOIntDecls.h index 74a8d81..6a5cfd3 100644 --- a/generic/tclOOIntDecls.h +++ b/generic/tclOOIntDecls.h @@ -22,14 +22,14 @@ TCLAPI Tcl_Method	TclOOMakeProcInstanceMethod(Tcl_Interp *interp,  				Object *oPtr, int flags, Tcl_Obj *nameObj,  				Tcl_Obj *argsObj, Tcl_Obj *bodyObj,  				const Tcl_MethodType *typePtr, -				ClientData clientData, Proc **procPtrPtr); +				void *clientData, Proc **procPtrPtr);  /* 2 */  TCLAPI Tcl_Method	TclOOMakeProcMethod(Tcl_Interp *interp,  				Class *clsPtr, int flags, Tcl_Obj *nameObj,  				const char *namePtr, Tcl_Obj *argsObj,  				Tcl_Obj *bodyObj,  				const Tcl_MethodType *typePtr, -				ClientData clientData, Proc **procPtrPtr); +				void *clientData, Proc **procPtrPtr);  /* 3 */  TCLAPI Method *		TclOONewProcInstanceMethod(Tcl_Interp *interp,  				Object *oPtr, int flags, Tcl_Obj *nameObj, @@ -59,19 +59,19 @@ TCLAPI Tcl_Method	TclOONewProcInstanceMethodEx(Tcl_Interp *interp,  				Tcl_Object oPtr,  				TclOO_PreCallProc *preCallPtr,  				TclOO_PostCallProc *postCallPtr, -				ProcErrorProc *errProc, -				ClientData clientData, Tcl_Obj *nameObj, -				Tcl_Obj *argsObj, Tcl_Obj *bodyObj, -				int flags, void **internalTokenPtr); +				ProcErrorProc *errProc, void *clientData, +				Tcl_Obj *nameObj, Tcl_Obj *argsObj, +				Tcl_Obj *bodyObj, int flags, +				void **internalTokenPtr);  /* 10 */  TCLAPI Tcl_Method	TclOONewProcMethodEx(Tcl_Interp *interp,  				Tcl_Class clsPtr,  				TclOO_PreCallProc *preCallPtr,  				TclOO_PostCallProc *postCallPtr, -				ProcErrorProc *errProc, -				ClientData clientData, Tcl_Obj *nameObj, -				Tcl_Obj *argsObj, Tcl_Obj *bodyObj, -				int flags, void **internalTokenPtr); +				ProcErrorProc *errProc, void *clientData, +				Tcl_Obj *nameObj, Tcl_Obj *argsObj, +				Tcl_Obj *bodyObj, int flags, +				void **internalTokenPtr);  /* 11 */  TCLAPI int		TclOOInvokeObject(Tcl_Interp *interp,  				Tcl_Object object, Tcl_Class startCls, @@ -97,16 +97,16 @@ typedef struct TclOOIntStubs {      void *hooks;      Tcl_Object (*tclOOGetDefineCmdContext) (Tcl_Interp *interp); /* 0 */ -    Tcl_Method (*tclOOMakeProcInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, ClientData clientData, Proc **procPtrPtr); /* 1 */ -    Tcl_Method (*tclOOMakeProcMethod) (Tcl_Interp *interp, Class *clsPtr, int flags, Tcl_Obj *nameObj, const char *namePtr, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, ClientData clientData, Proc **procPtrPtr); /* 2 */ +    Tcl_Method (*tclOOMakeProcInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, void *clientData, Proc **procPtrPtr); /* 1 */ +    Tcl_Method (*tclOOMakeProcMethod) (Tcl_Interp *interp, Class *clsPtr, int flags, Tcl_Obj *nameObj, const char *namePtr, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, void *clientData, Proc **procPtrPtr); /* 2 */      Method * (*tclOONewProcInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, ProcedureMethod **pmPtrPtr); /* 3 */      Method * (*tclOONewProcMethod) (Tcl_Interp *interp, Class *clsPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, ProcedureMethod **pmPtrPtr); /* 4 */      int (*tclOOObjectCmdCore) (Object *oPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const *objv, int publicOnly, Class *startCls); /* 5 */      int (*tclOOIsReachable) (Class *targetPtr, Class *startPtr); /* 6 */      Method * (*tclOONewForwardMethod) (Tcl_Interp *interp, Class *clsPtr, int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj); /* 7 */      Method * (*tclOONewForwardInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj); /* 8 */ -    Tcl_Method (*tclOONewProcInstanceMethodEx) (Tcl_Interp *interp, Tcl_Object oPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, ClientData clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); /* 9 */ -    Tcl_Method (*tclOONewProcMethodEx) (Tcl_Interp *interp, Tcl_Class clsPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, ClientData clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); /* 10 */ +    Tcl_Method (*tclOONewProcInstanceMethodEx) (Tcl_Interp *interp, Tcl_Object oPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); /* 9 */ +    Tcl_Method (*tclOONewProcMethodEx) (Tcl_Interp *interp, Tcl_Class clsPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); /* 10 */      int (*tclOOInvokeObject) (Tcl_Interp *interp, Tcl_Object object, Tcl_Class startCls, int publicPrivate, int objc, Tcl_Obj *const *objv); /* 11 */      void (*tclOOObjectSetFilters) (Object *oPtr, int numFilters, Tcl_Obj *const *filters); /* 12 */      void (*tclOOClassSetFilters) (Tcl_Interp *interp, Class *classPtr, int numFilters, Tcl_Obj *const *filters); /* 13 */ diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl index 75ed97e..b3433cc 100755 --- a/tools/tcltk-man2html.tcl +++ b/tools/tcltk-man2html.tcl @@ -43,7 +43,7 @@ proc getversion {tclh {name {}}} {  	# highlighting straight in some editors  	if {[regexp -lineanchor \  	    [string map [list @name@ $name] \ -		{^#define\s+@name@_VERSION\s+\"([^.])+\.([^.\"]+)}] \ +		{^\s*#define\s+@name@_VERSION\s+\"([^.])+\.([^.\"]+)}] \  	    $data -> major minor]} {  		return [list $major $minor]  	} | 
