summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-06-16 08:10:13 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-06-16 08:10:13 (GMT)
commit83c9edc05c1d237c03fd273cb337157084a910af (patch)
tree2331ef342df6e08fea881f4d7d3b610038c2dfae /Modules/_testcapimodule.c
parentc60578417423bcd5263fcf19e6ff147943a72159 (diff)
downloadcpython-83c9edc05c1d237c03fd273cb337157084a910af.zip
cpython-83c9edc05c1d237c03fd273cb337157084a910af.tar.gz
cpython-83c9edc05c1d237c03fd273cb337157084a910af.tar.bz2
Fix error in comment, and in test_long_api and test_longlong_api remove
the need for the F_ERROR macro.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 1a95e76..1c5b0e5 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -202,7 +202,6 @@ raise_test_long_error(const char* msg)
#define F_PY_TO_S PyLong_AsLong
#define F_U_TO_PY PyLong_FromUnsignedLong
#define F_PY_TO_U PyLong_AsUnsignedLong
-#define F_ERROR raise_test_long_error
#include "testcapi_long.h"
@@ -212,7 +211,7 @@ test_long_api(PyObject* self, PyObject* args)
if (!PyArg_ParseTuple(args, ":test_long_api"))
return NULL;
- return TESTNAME();
+ return TESTNAME(raise_test_long_error);
}
#undef TESTNAME
@@ -221,7 +220,6 @@ test_long_api(PyObject* self, PyObject* args)
#undef F_PY_TO_S
#undef F_U_TO_PY
#undef F_PY_TO_U
-#undef F_ERROR
#ifdef HAVE_LONG_LONG
@@ -237,7 +235,6 @@ raise_test_longlong_error(const char* msg)
#define F_PY_TO_S PyLong_AsLongLong
#define F_U_TO_PY PyLong_FromUnsignedLongLong
#define F_PY_TO_U PyLong_AsUnsignedLongLong
-#define F_ERROR raise_test_longlong_error
#include "testcapi_long.h"
@@ -247,7 +244,7 @@ test_longlong_api(PyObject* self, PyObject* args)
if (!PyArg_ParseTuple(args, ":test_longlong_api"))
return NULL;
- return TESTNAME();
+ return TESTNAME(raise_test_longlong_error);
}
#undef TESTNAME
@@ -256,7 +253,6 @@ test_longlong_api(PyObject* self, PyObject* args)
#undef F_PY_TO_S
#undef F_U_TO_PY
#undef F_PY_TO_U
-#undef F_ERROR
#endif /* ifdef HAVE_LONG_LONG */