[PATCH] compat: provide a new declaration of hg_ssize_t, in case we don't have it

Yuya Nishihara yuya at tcha.org
Tue Jul 12 09:05:48 EDT 2016


On Mon, 11 Jul 2016 16:40:55 +0200, Maciej Fijalkowski wrote:
> that's I believe why python uses Py_ssize_t. Either way, I'm happy
> with either solution (I'm probably happier with ssize_t simply), so
> please advise which way we should go

Since we already have own int<n>_t and uint<n>_t typedefs for ancient MSVC,
I think it's fine to redefine ssize_t on MSVC.

Python would have more strict rules for platform compatibility.


More information about the Mercurial-devel mailing list