Skip to content
Tcl Source Code Changes To Migrating C extensions to Tcl 9
Login

Changes To Migrating C extensions to Tcl 9

Changes to "Migrating C extensions to Tcl 9" between 2024-12-15 22:19:12 and 2024-12-16 16:41:56

1
2
3
4
5
6
7
8
9


10
11
12

13
14
15
16
17
18
19
1
2
3
4
5
6
7


8
9
10
11

12
13
14
15
16
17
18
19







-
-
+
+


-
+







(Work in progress...)

Also see [Porting extensions to Tcl 9](https://wiki.tcl-lang.org/page/Porting+extensions+to+Tcl+9)
for another post on the topic.

## Init stubs and package require with open version

The list of versions should include TCL/Tk 9. Here is an example for TCL 8.5 and following versions.
Remark the "-" after "8.5".
The list of versions should include TCL 9. Here is an example for TCL 8.5 up to any TCL 9 version.
Note that the upper bound "10" is exclusive.

~~~
    if (Tcl_InitStubs(interp, "8.5-", 0) == NULL) {
    if (Tcl_InitStubs(interp, "8.5-10", 0) == NULL) {
        return TCL_ERROR;
    }
~~~

## 64-bit data support

On 64-bit platforms, Tcl 9 no longer limits data size (lengths of strings, lists
︙