[Pyrex] Python 2.2.x LONG_LONG Compatibility
Toshio
toshio at tiki-lounge.com
Thu Jan 15 19:38:01 CET 2004
It seems python 2.2 defines LONG_LONG and python 2.3 defines
PY_LONG_LONG. There's a well published and easy check for this:
#if !defined(PY_LONG_LONG) && defined(LONG_LONG)
#define PY_LONG_LONG LONG_LONG
#endif
The problem is I don't know how to get this into the generated C file.
Maybe Pyrex should do it automatically? Here's a patch to Nodes.py that
inserts it right after the include files.
It's probably not sufficiently abstracted as is. Maybe a --compat22
commandline switch that activates this (and other?) pieces of
compatibility code?
-Toshio
--
Toshio <toshio at tiki-lounge.com>
_______________________________________________
Pyrex mailing list
Pyrex at lists.copyleft.no
http://lists.copyleft.no/mailman/listinfo/pyrex
More information about the Pyrex
mailing list