diff options
author | Georg Brandl <georg@python.org> | 2006-04-13 07:29:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-04-13 07:29:18 (GMT) |
commit | 635af32bdfd0bb002d37b7dcb148d8f18c1438cc (patch) | |
tree | eb70c4e18f6e02b07c792e9000ccea5c25dd4321 /Modules/_testcapimodule.c | |
parent | bb3001188093076dedb370b7ad6d82c4360f5fc8 (diff) | |
download | cpython-635af32bdfd0bb002d37b7dcb148d8f18c1438cc.zip cpython-635af32bdfd0bb002d37b7dcb148d8f18c1438cc.tar.gz cpython-635af32bdfd0bb002d37b7dcb148d8f18c1438cc.tar.bz2 |
Add PY_SSIZE_T_MIN/MAX to _testcapi.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index b1461bd..dcf0db2 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -704,8 +704,10 @@ init_testcapi(void) PyModule_AddObject(m, "ULONG_MAX", PyLong_FromUnsignedLong(ULONG_MAX)); PyModule_AddObject(m, "INT_MIN", PyInt_FromLong(INT_MIN)); PyModule_AddObject(m, "LONG_MIN", PyInt_FromLong(LONG_MIN)); + PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN)); PyModule_AddObject(m, "INT_MAX", PyInt_FromLong(INT_MAX)); PyModule_AddObject(m, "LONG_MAX", PyInt_FromLong(LONG_MAX)); + PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyInt_FromSsize_t(PY_SSIZE_T_MAX)); TestError = PyErr_NewException("_testcapi.error", NULL, NULL); Py_INCREF(TestError); |