Add support for Tcl 9
authorPeter Eisentraut <[email protected]>
Mon, 25 Nov 2024 07:03:16 +0000 (08:03 +0100)
committerPeter Eisentraut <[email protected]>
Mon, 25 Nov 2024 12:11:49 +0000 (13:11 +0100)
commitf230e27a2a790de1e1837e25807cb6df2e99b2ed
treedb00703f3007065c7d57557c599f24db7072cf13
parent13242b64e15d1ecd807382d15c178f31bf460192
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.

The affected variables are used for quantities that will not approach
values beyond the range of int, so this doesn't change any
functionality.

Reviewed-by: Tristan Partin <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/bce0fe54-75b4-438e-b42b-8e84bc7c0e9c%40eisentraut.org
src/pl/tcl/pltcl.c