Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Side by Side Diff: Modules/_testcapimodule.c

Issue 2414: Add gc header size to returned sizeof information SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: added a default return value and made this and the gc_head inclusion optional Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * C Extension module to test Python interpreter C APIs. 2 * C Extension module to test Python interpreter C APIs.
3 * 3 *
4 * The 'test_*' functions exported by this module are run as part of the 4 * The 'test_*' functions exported by this module are run as part of the
5 * standard Python regression test, via Lib/test/test_capi.py. 5 * standard Python regression test, via Lib/test/test_capi.py.
6 */ 6 */
7 7
8 #include "Python.h" 8 #include "Python.h"
9 #include <float.h> 9 #include <float.h>
10 #include "structmember.h" 10 #include "structmember.h"
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 PyModule_AddObject(m, "ULONG_MAX", PyLong_FromUnsignedLong(ULONG_MAX)); 960 PyModule_AddObject(m, "ULONG_MAX", PyLong_FromUnsignedLong(ULONG_MAX));
961 PyModule_AddObject(m, "FLT_MAX", PyFloat_FromDouble(FLT_MAX)); 961 PyModule_AddObject(m, "FLT_MAX", PyFloat_FromDouble(FLT_MAX));
962 PyModule_AddObject(m, "FLT_MIN", PyFloat_FromDouble(FLT_MIN)); 962 PyModule_AddObject(m, "FLT_MIN", PyFloat_FromDouble(FLT_MIN));
963 PyModule_AddObject(m, "DBL_MAX", PyFloat_FromDouble(DBL_MAX)); 963 PyModule_AddObject(m, "DBL_MAX", PyFloat_FromDouble(DBL_MAX));
964 PyModule_AddObject(m, "DBL_MIN", PyFloat_FromDouble(DBL_MIN)); 964 PyModule_AddObject(m, "DBL_MIN", PyFloat_FromDouble(DBL_MIN));
965 PyModule_AddObject(m, "LLONG_MAX", PyLong_FromLongLong(PY_LLONG_MAX)); 965 PyModule_AddObject(m, "LLONG_MAX", PyLong_FromLongLong(PY_LLONG_MAX));
966 PyModule_AddObject(m, "LLONG_MIN", PyLong_FromLongLong(PY_LLONG_MIN)); 966 PyModule_AddObject(m, "LLONG_MIN", PyLong_FromLongLong(PY_LLONG_MIN));
967 PyModule_AddObject(m, "ULLONG_MAX", PyLong_FromUnsignedLongLong(PY_ULLON G_MAX)); 967 PyModule_AddObject(m, "ULLONG_MAX", PyLong_FromUnsignedLongLong(PY_ULLON G_MAX));
968 PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyInt_FromSsize_t(PY_SSIZE_T_MAX )); 968 PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyInt_FromSsize_t(PY_SSIZE_T_MAX ));
969 PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN )); 969 PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN ));
970 PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyInt_FromSsize_t(sizeof(PyGC_ Head)));
970 971
971 TestError = PyErr_NewException("_testcapi.error", NULL, NULL); 972 TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
972 Py_INCREF(TestError); 973 Py_INCREF(TestError);
973 PyModule_AddObject(m, "error", TestError); 974 PyModule_AddObject(m, "error", TestError);
974 } 975 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497