[Python-Dev] LONG_LONG (Was: [Python-checkins] python/dist/src/Misc NEWS,1.703,1.704) (original) (raw)

Thomas Heller theller@python.net
07 Apr 2003 08:56:38 +0200


loewis@users.sourceforge.net writes:

Update of /cvsroot/python/python/dist/src/Misc In directory sc8-pr-cvs1:/tmp/cvs-serv28757/Misc

Modified Files: NEWS Log Message: Rename LONGLONG to PYLONGLONG. Fixes #710285.

What is the recommended way to port code like this to Python 2.3, and still remain compatible with 2.2?

Thanks,

Thomas

typedef struct { PyObject_HEAD char tag; union { char c; char b; short h; int i; long l; #ifdef HAVE_LONG_LONG LONG_LONG q; #endif double d; float f; void *p; } value; PyObject *obj; } PyCArgObject;