#include "pyconfig.h"
#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API …
#endif
#include "parts.h"
#include "util.h"
#include "clinic/long.c.h"
static PyObject *
raiseTestError(const char* test_name, const char* msg)
{ … }
#define UNBIND(X) …
static PyObject *
raise_test_long_error(const char* msg)
{ … }
#define TESTNAME …
#define TYPENAME …
#define F_S_TO_PY …
#define F_PY_TO_S …
#define F_U_TO_PY …
#define F_PY_TO_U …
#include "testcapi_long.h"
static PyObject *
_testlimitedcapi_test_long_api_impl(PyObject *module)
{ … }
#undef TESTNAME
#undef TYPENAME
#undef F_S_TO_PY
#undef F_PY_TO_S
#undef F_U_TO_PY
#undef F_PY_TO_U
static PyObject *
raise_test_longlong_error(const char* msg)
{ … }
#define TESTNAME …
#define TYPENAME …
#define F_S_TO_PY …
#define F_PY_TO_S …
#define F_U_TO_PY …
#define F_PY_TO_U …
#include "testcapi_long.h"
static PyObject *
_testlimitedcapi_test_longlong_api_impl(PyObject *module)
{ … }
#undef TESTNAME
#undef TYPENAME
#undef F_S_TO_PY
#undef F_PY_TO_S
#undef F_U_TO_PY
#undef F_PY_TO_U
static PyObject *
_testlimitedcapi_test_long_and_overflow_impl(PyObject *module)
{ … }
static PyObject *
_testlimitedcapi_test_long_long_and_overflow_impl(PyObject *module)
{ … }
static PyObject *
_testlimitedcapi_test_long_as_size_t_impl(PyObject *module)
{ … }
static PyObject *
_testlimitedcapi_test_long_as_unsigned_long_long_mask_impl(PyObject *module)
{ … }
static PyObject *
_testlimitedcapi_test_long_as_double_impl(PyObject *module)
{ … }
static PyObject *
pylong_check(PyObject *module, PyObject *obj)
{ … }
static PyObject *
pylong_checkexact(PyObject *module, PyObject *obj)
{ … }
static PyObject *
pylong_fromdouble(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_fromstring(PyObject *module, PyObject *args)
{ … }
static PyObject *
pylong_fromvoidptr(PyObject *module, PyObject *arg)
{ … }
static PyObject *
_testlimitedcapi_PyLong_AsInt(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_aslong(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_aslongandoverflow(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asunsignedlong(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asunsignedlongmask(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_aslonglong(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_aslonglongandoverflow(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asunsignedlonglong(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asunsignedlonglongmask(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_as_ssize_t(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_as_size_t(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asdouble(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asvoidptr(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_aspid(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asint32(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asuint32(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asint64(PyObject *module, PyObject *arg)
{ … }
static PyObject *
pylong_asuint64(PyObject *module, PyObject *arg)
{ … }
static PyMethodDef test_methods[] = …;
int
_PyTestLimitedCAPI_Init_Long(PyObject *mod)
{ … }