[PATCH 0 of 6] Port of hg's C modules to py3k

Renato Cunha renatoc at gmail.com
Wed Jun 9 12:27:17 CDT 2010


Hi Michael,

On Tue, Jun 08, 2010 at 03:24:07PM -0400, Michael Tharp wrote:
> I wrote some macros to ease the transition without having nearly as
> many #ifdef/#else/#endif blocks, maybe you can borrow some ideas:
> 
> http://hg.rpath.com/rmake-2.0/file/fe7aaf43bc5e/rmake/lib/pycompat.h

The PYBYTES_Foo macros are very good indeed. Unfortunately, AFAIK, the license
used on that file is incompatible with the GPLv2, which means I cannot really
use your code directly. I'm writing a simpler "util.h" (temporary name) with
some macros defined in a less clever way while I don't come up with a more
interesting version.

Regards,
-- 
Renato Cunha <http://renatocunha.com>
Blog: http://valedotrovao.com
"If more of us valued food and cheer
and song above hoarded gold,
it would be a merrier world.
              -- J. R. R. Tolkien


More information about the Mercurial-devel mailing list