[PATCH] util.h: Defined macros for working with strings using the python C API

Benoit Boissinot bboissin at gmail.com
Fri Jun 18 04:58:16 CDT 2010


On Fri, Jun 18, 2010 at 8:46 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Renato Cunha <renatoc <at> gmail.com> writes:
>>
>> +//#define PyString_Size PyUnicode_GET_SIZE
>
> C++-style comments will break some C compilers. I'm not sure what Mercurial's
> policy is with that but I just wanted to point it out.

Please don't use them, we try to support a wide range of compilers.

cheers,

Benoit


More information about the Mercurial-devel mailing list