This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Devin Jeanpierre, mark.dickinson, serhiy.storchaka, vstinner
Date 2013-04-30.22:06:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367359579.01.0.171966633468.issue17870@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a first patch adding the following functions:

    PyObject* PyLong_FromIntMax_t(intmax_t v);
    PyObject* PyLong_FromUintMax_t(uintmax_t v);
    intmax_t PyLong_AsIntMax_t(PyObject *pylong);
    uintmax_t PyLong_AsUintMax_t(PyObject *pylong);

I used AC_TYPE_INTMAX_T and AC_TYPE_UINTMAX_T in configure.ac, so intmax_t and uintmax_t are defined if the platform does not provide them. (I guess that these types are defined in pyconfig.h.) On Windows, Visual Studio 2010 supports stdint.h, and so these types are available.

autoheader && autoconf must be called to regenerate configure script and pyconfig.h.in template.
History
Date User Action Args
2013-04-30 22:06:19vstinnersetrecipients: + vstinner, mark.dickinson, Devin Jeanpierre, serhiy.storchaka
2013-04-30 22:06:19vstinnersetmessageid: <1367359579.01.0.171966633468.issue17870@psf.upfronthosting.co.za>
2013-04-30 22:06:18vstinnerlinkissue17870 messages
2013-04-30 22:06:18vstinnercreate