Add support for Tcl 9
Tcl 9 changed several API functions to take Tcl_Size, which is
ptrdiff_t, instead of int, for 64-bit enablement. We have to change a
few local variables to be compatible with that. We also provide a
fallback typedef of Tcl_Size for older Tcl versions. Here is a patch
for that.
The affected variables are used for quantities that will not approach
values beyond the range of int (usually number of columns), so this
doesn't change any functionality, AFAICT.
Attachments:
0001-Add-support-for-Tcl-9.patchtext/plain; charset=UTF-8; name=0001-Add-support-for-Tcl-9.patchDownload+10-7
Looks correct to me. TIPs 628[0]https://core.tcl-lang.org/tips/doc/trunk/tip/628.md and 666[1]https://core.tcl-lang.org/tips/doc/trunk/tip/666.md seem to be the proposals which added
Tcl_Size and changed functions to use the type.
Reviewed-by: Tristan Partin <tristan@partin.io>
[0]: https://core.tcl-lang.org/tips/doc/trunk/tip/628.md
[1]: https://core.tcl-lang.org/tips/doc/trunk/tip/666.md
--
Tristan Partin
Neon (https://neon.tech)