]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add support for Tcl 9
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 25 Nov 2024 07:03:16 +0000 (08:03 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 25 Nov 2024 11:27:10 +0000 (12:27 +0100)
commitf979197eba77fc07c316cdb93436b3ac135222df
tree2abeb7d12d71ea91f2c8a09329b2b843307997ee
parent0813a5e69186cb6705ce5b390d4488d8b783c8f2
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 <tristan@partin.io>
Discussion: https://www.postgresql.org/message-id/flat/bce0fe54-75b4-438e-b42b-8e84bc7c0e9c%40eisentraut.org
src/pl/tcl/pltcl.c