Skip to content

Commit 849f777

Browse files
committed
As the "-" syntax is available since TCL 8.5, require this version. Also change comments. THanks, Jan, for the hint.
1 parent df63b71 commit 849f777

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

generic/tclsample.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,11 @@ Sample_Init(
359359
{
360360
Tcl_CmdInfo info;
361361

362-
/*
363-
* This may work with 8.0, but we are using strictly stubs here,
364-
* which requires 8.1.
365-
*/
366362
/*
367-
* FIXME: The "-" in "8.1-" is for Tcl 9 and is not correct following the manpage:
368-
' "A version string consisting of one or more decimal numbers separated by dots."
369-
* Nevertheless, it worked for TCL 8.6.13 and pre-9.0.1.
363+
* Support any TCL version starting with 8.5.0.
364+
* The "-" stands for "min-unbound" and thus includes TCL 9
370365
*/
371-
if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) {
366+
if (Tcl_InitStubs(interp, "8.5-", 0) == NULL) {
372367
return TCL_ERROR;
373368
}
374369

0 commit comments

Comments
 (0)