• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4 
5 PyDoc_STRVAR(_testlimitedcapi_test_long_api__doc__,
6 "test_long_api($module, /)\n"
7 "--\n"
8 "\n");
9 
10 #define _TESTLIMITEDCAPI_TEST_LONG_API_METHODDEF    \
11     {"test_long_api", (PyCFunction)_testlimitedcapi_test_long_api, METH_NOARGS, _testlimitedcapi_test_long_api__doc__},
12 
13 static PyObject *
14 _testlimitedcapi_test_long_api_impl(PyObject *module);
15 
16 static PyObject *
_testlimitedcapi_test_long_api(PyObject * module,PyObject * Py_UNUSED (ignored))17 _testlimitedcapi_test_long_api(PyObject *module, PyObject *Py_UNUSED(ignored))
18 {
19     return _testlimitedcapi_test_long_api_impl(module);
20 }
21 
22 PyDoc_STRVAR(_testlimitedcapi_test_longlong_api__doc__,
23 "test_longlong_api($module, /)\n"
24 "--\n"
25 "\n");
26 
27 #define _TESTLIMITEDCAPI_TEST_LONGLONG_API_METHODDEF    \
28     {"test_longlong_api", (PyCFunction)_testlimitedcapi_test_longlong_api, METH_NOARGS, _testlimitedcapi_test_longlong_api__doc__},
29 
30 static PyObject *
31 _testlimitedcapi_test_longlong_api_impl(PyObject *module);
32 
33 static PyObject *
_testlimitedcapi_test_longlong_api(PyObject * module,PyObject * Py_UNUSED (ignored))34 _testlimitedcapi_test_longlong_api(PyObject *module, PyObject *Py_UNUSED(ignored))
35 {
36     return _testlimitedcapi_test_longlong_api_impl(module);
37 }
38 
39 PyDoc_STRVAR(_testlimitedcapi_test_long_and_overflow__doc__,
40 "test_long_and_overflow($module, /)\n"
41 "--\n"
42 "\n"
43 "Test the PyLong_AsLongAndOverflow API.\n"
44 "\n"
45 "General conversion to PY_LONG is tested by test_long_api_inner.\n"
46 "This test will concentrate on proper handling of overflow.");
47 
48 #define _TESTLIMITEDCAPI_TEST_LONG_AND_OVERFLOW_METHODDEF    \
49     {"test_long_and_overflow", (PyCFunction)_testlimitedcapi_test_long_and_overflow, METH_NOARGS, _testlimitedcapi_test_long_and_overflow__doc__},
50 
51 static PyObject *
52 _testlimitedcapi_test_long_and_overflow_impl(PyObject *module);
53 
54 static PyObject *
_testlimitedcapi_test_long_and_overflow(PyObject * module,PyObject * Py_UNUSED (ignored))55 _testlimitedcapi_test_long_and_overflow(PyObject *module, PyObject *Py_UNUSED(ignored))
56 {
57     return _testlimitedcapi_test_long_and_overflow_impl(module);
58 }
59 
60 PyDoc_STRVAR(_testlimitedcapi_test_long_long_and_overflow__doc__,
61 "test_long_long_and_overflow($module, /)\n"
62 "--\n"
63 "\n"
64 "Test the PyLong_AsLongLongAndOverflow API.\n"
65 "\n"
66 "General conversion to long long is tested by test_long_api_inner.\n"
67 "This test will concentrate on proper handling of overflow.");
68 
69 #define _TESTLIMITEDCAPI_TEST_LONG_LONG_AND_OVERFLOW_METHODDEF    \
70     {"test_long_long_and_overflow", (PyCFunction)_testlimitedcapi_test_long_long_and_overflow, METH_NOARGS, _testlimitedcapi_test_long_long_and_overflow__doc__},
71 
72 static PyObject *
73 _testlimitedcapi_test_long_long_and_overflow_impl(PyObject *module);
74 
75 static PyObject *
_testlimitedcapi_test_long_long_and_overflow(PyObject * module,PyObject * Py_UNUSED (ignored))76 _testlimitedcapi_test_long_long_and_overflow(PyObject *module, PyObject *Py_UNUSED(ignored))
77 {
78     return _testlimitedcapi_test_long_long_and_overflow_impl(module);
79 }
80 
81 PyDoc_STRVAR(_testlimitedcapi_test_long_as_size_t__doc__,
82 "test_long_as_size_t($module, /)\n"
83 "--\n"
84 "\n"
85 "Test the PyLong_As{Size,Ssize}_t API.\n"
86 "\n"
87 "At present this just tests that non-integer arguments are handled correctly.\n"
88 "It should be extended to test overflow handling.");
89 
90 #define _TESTLIMITEDCAPI_TEST_LONG_AS_SIZE_T_METHODDEF    \
91     {"test_long_as_size_t", (PyCFunction)_testlimitedcapi_test_long_as_size_t, METH_NOARGS, _testlimitedcapi_test_long_as_size_t__doc__},
92 
93 static PyObject *
94 _testlimitedcapi_test_long_as_size_t_impl(PyObject *module);
95 
96 static PyObject *
_testlimitedcapi_test_long_as_size_t(PyObject * module,PyObject * Py_UNUSED (ignored))97 _testlimitedcapi_test_long_as_size_t(PyObject *module, PyObject *Py_UNUSED(ignored))
98 {
99     return _testlimitedcapi_test_long_as_size_t_impl(module);
100 }
101 
102 PyDoc_STRVAR(_testlimitedcapi_test_long_as_unsigned_long_long_mask__doc__,
103 "test_long_as_unsigned_long_long_mask($module, /)\n"
104 "--\n"
105 "\n");
106 
107 #define _TESTLIMITEDCAPI_TEST_LONG_AS_UNSIGNED_LONG_LONG_MASK_METHODDEF    \
108     {"test_long_as_unsigned_long_long_mask", (PyCFunction)_testlimitedcapi_test_long_as_unsigned_long_long_mask, METH_NOARGS, _testlimitedcapi_test_long_as_unsigned_long_long_mask__doc__},
109 
110 static PyObject *
111 _testlimitedcapi_test_long_as_unsigned_long_long_mask_impl(PyObject *module);
112 
113 static PyObject *
_testlimitedcapi_test_long_as_unsigned_long_long_mask(PyObject * module,PyObject * Py_UNUSED (ignored))114 _testlimitedcapi_test_long_as_unsigned_long_long_mask(PyObject *module, PyObject *Py_UNUSED(ignored))
115 {
116     return _testlimitedcapi_test_long_as_unsigned_long_long_mask_impl(module);
117 }
118 
119 PyDoc_STRVAR(_testlimitedcapi_test_long_as_double__doc__,
120 "test_long_as_double($module, /)\n"
121 "--\n"
122 "\n");
123 
124 #define _TESTLIMITEDCAPI_TEST_LONG_AS_DOUBLE_METHODDEF    \
125     {"test_long_as_double", (PyCFunction)_testlimitedcapi_test_long_as_double, METH_NOARGS, _testlimitedcapi_test_long_as_double__doc__},
126 
127 static PyObject *
128 _testlimitedcapi_test_long_as_double_impl(PyObject *module);
129 
130 static PyObject *
_testlimitedcapi_test_long_as_double(PyObject * module,PyObject * Py_UNUSED (ignored))131 _testlimitedcapi_test_long_as_double(PyObject *module, PyObject *Py_UNUSED(ignored))
132 {
133     return _testlimitedcapi_test_long_as_double_impl(module);
134 }
135 
136 PyDoc_STRVAR(_testlimitedcapi_PyLong_AsInt__doc__,
137 "PyLong_AsInt($module, arg, /)\n"
138 "--\n"
139 "\n");
140 
141 #define _TESTLIMITEDCAPI_PYLONG_ASINT_METHODDEF    \
142     {"PyLong_AsInt", (PyCFunction)_testlimitedcapi_PyLong_AsInt, METH_O, _testlimitedcapi_PyLong_AsInt__doc__},
143 /*[clinic end generated code: output=bc52b73c599f96c2 input=a9049054013a1b77]*/
144