Skip to content

Commit 4ebd56d

Browse files
author
jan.nijtmans
committed
Minor simplification: Tcl 8.7 doesn't need to be supported any more
1 parent 6933a22 commit 4ebd56d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

generic/threadCmd.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)