File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -512,22 +512,18 @@ Thread_Init(
512512 Tcl_Interp * interp /* The current Tcl interpreter */
513513) {
514514 const char * version = ThreadInit (interp );
515- Tcl_CmdInfo info ;
516515
517516 if (version == NULL ) {
518517 return TCL_ERROR ;
519518 }
520519
521- if (Tcl_GetCommandInfo (interp , "::tcl::build-info" , & info )) {
522520#if TCL_MAJOR_VERSION > 8
523- if (info .isNativeObjectProc == 2 ) {
524- Tcl_CreateObjCommand2 (interp , "::thread::build-info" ,
525- info .objProc2 , (void * )version , NULL );
526- } else
527- #endif
528- Tcl_CreateObjCommand (interp , "::thread::build-info" ,
529- info .objProc , (void * )version , NULL );
521+ Tcl_CmdInfo info ;
522+ if (Tcl_GetCommandInfo (interp , "::tcl::build-info" , & info )) {
523+ Tcl_CreateObjCommand2 (interp , "::thread::build-info" ,
524+ info .objProc2 , (void * )version , NULL );
530525 }
526+ #endif
531527 Tcl_PkgProvideEx (interp , "Thread" , PACKAGE_VERSION , NULL );
532528 return Tcl_PkgProvideEx (interp , "thread" , PACKAGE_VERSION , NULL );
533529}
You can’t perform that action at this time.
0 commit comments