Skip to content

Commit

Permalink
Ticket [ad39d0234b]: support TCL 9 by init stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
oehhar committed Dec 9, 2024
1 parent 5ca5097 commit 64200f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions generic/tclsample.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,13 @@ Sample_Init(
Tcl_CmdInfo info;

/*
* This may work with 8.0, but we are using strictly stubs here,
* which requires 8.1.
* Require compatible TCL version.
* Possible version requirement strings:
* - "8.1-": 8.1 and any higher version
* - "8.1": 8.1.x to 8.7.x
* - "8.1 9": allow 8.1.x to 8.7.x and 9.x.x, but not 10.x.x
*/
if (Tcl_InitStubs(interp, "8.1", 0) == NULL) {
if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) {
return TCL_ERROR;
}

Expand Down

0 comments on commit 64200f8

Please sign in to comment.