Add support for Tcl 9

Peter Eisentraut <peter@eisentraut.org>

Commit: 17d081a6f9e3d5cbdc53e42ca2ec449d4722d0e2
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-11-25T12:11:18Z
Releases: 14.16
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

Files

PathChange+/−
src/pl/tcl/pltcl.c modified +10 −6

Discussion