cppcheck-py 2.9__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cppcheck/__init__.py +55 -0
- cppcheck/cppcheck-2.9.tar.gz +0 -0
- cppcheck/data/addons/__init__.py +0 -0
- cppcheck/data/addons/cppcheck.py +39 -0
- cppcheck/data/addons/cppcheckdata.py +1529 -0
- cppcheck/data/addons/findcasts.py +33 -0
- cppcheck/data/addons/misc.py +163 -0
- cppcheck/data/addons/misra.py +4728 -0
- cppcheck/data/addons/misra_9.py +513 -0
- cppcheck/data/addons/naming.py +91 -0
- cppcheck/data/addons/namingng.py +253 -0
- cppcheck/data/addons/runaddon.py +12 -0
- cppcheck/data/addons/threadsafety.py +39 -0
- cppcheck/data/addons/y2038.py +252 -0
- cppcheck/data/cfg/avr.cfg +431 -0
- cppcheck/data/cfg/bento4.cfg +142 -0
- cppcheck/data/cfg/boost.cfg +1268 -0
- cppcheck/data/cfg/bsd.cfg +546 -0
- cppcheck/data/cfg/cairo.cfg +88 -0
- cppcheck/data/cfg/cppcheck-lib.cfg +72 -0
- cppcheck/data/cfg/cppunit.cfg +48 -0
- cppcheck/data/cfg/daca.cfg +31 -0
- cppcheck/data/cfg/dpdk.cfg +11 -0
- cppcheck/data/cfg/embedded_sql.cfg +4 -0
- cppcheck/data/cfg/emscripten.cfg +7 -0
- cppcheck/data/cfg/ginac.cfg +12848 -0
- cppcheck/data/cfg/gnu.cfg +1626 -0
- cppcheck/data/cfg/googletest.cfg +60 -0
- cppcheck/data/cfg/gtk.cfg +20584 -0
- cppcheck/data/cfg/icu.cfg +6 -0
- cppcheck/data/cfg/kde.cfg +51 -0
- cppcheck/data/cfg/libcerror.cfg +128 -0
- cppcheck/data/cfg/libcurl.cfg +487 -0
- cppcheck/data/cfg/libsigc++.cfg +36 -0
- cppcheck/data/cfg/lua.cfg +316 -0
- cppcheck/data/cfg/mfc.cfg +256 -0
- cppcheck/data/cfg/microsoft_atl.cfg +40 -0
- cppcheck/data/cfg/microsoft_sal.cfg +491 -0
- cppcheck/data/cfg/microsoft_unittest.cfg +20 -0
- cppcheck/data/cfg/motif.cfg +318 -0
- cppcheck/data/cfg/nspr.cfg +38 -0
- cppcheck/data/cfg/ntl.cfg +6907 -0
- cppcheck/data/cfg/opencv2.cfg +132 -0
- cppcheck/data/cfg/opengl.cfg +580 -0
- cppcheck/data/cfg/openmp.cfg +157 -0
- cppcheck/data/cfg/openssl.cfg +174 -0
- cppcheck/data/cfg/pcre.cfg +165 -0
- cppcheck/data/cfg/posix.cfg +6252 -0
- cppcheck/data/cfg/python.cfg +674 -0
- cppcheck/data/cfg/qt.cfg +5255 -0
- cppcheck/data/cfg/ruby.cfg +142 -0
- cppcheck/data/cfg/sdl.cfg +354 -0
- cppcheck/data/cfg/sfml.cfg +301 -0
- cppcheck/data/cfg/sqlite3.cfg +1527 -0
- cppcheck/data/cfg/std.cfg +8716 -0
- cppcheck/data/cfg/tinyxml2.cfg +56 -0
- cppcheck/data/cfg/vcl.cfg +4 -0
- cppcheck/data/cfg/windows.cfg +17941 -0
- cppcheck/data/cfg/wxsqlite3.cfg +1955 -0
- cppcheck/data/cfg/wxsvg.cfg +16905 -0
- cppcheck/data/cfg/wxwidgets.cfg +16464 -0
- cppcheck/data/cfg/zlib.cfg +1450 -0
- cppcheck/data/cppcheck-htmlreport +986 -0
- cppcheck/data/cppcheck.exe +0 -0
- cppcheck/data/platforms/aix_ppc64.xml +17 -0
- cppcheck/data/platforms/arm32-wchar_t2.xml +17 -0
- cppcheck/data/platforms/arm32-wchar_t4.xml +17 -0
- cppcheck/data/platforms/arm64-wchar_t2.xml +17 -0
- cppcheck/data/platforms/arm64-wchar_t4.xml +17 -0
- cppcheck/data/platforms/avr8.xml +18 -0
- cppcheck/data/platforms/cray_sv1.xml +17 -0
- cppcheck/data/platforms/elbrus-e1cp.xml +18 -0
- cppcheck/data/platforms/mips32.xml +18 -0
- cppcheck/data/platforms/msp430_eabi_large_datamodel.xml +17 -0
- cppcheck/data/platforms/pic16.xml +18 -0
- cppcheck/data/platforms/pic8-enhanced.xml +18 -0
- cppcheck/data/platforms/pic8.xml +18 -0
- cppcheck/data/platforms/unix32-unsigned.xml +17 -0
- cppcheck/data/platforms/unix64-unsigned.xml +17 -0
- cppcheck_py-2.9.dist-info/METADATA +76 -0
- cppcheck_py-2.9.dist-info/RECORD +84 -0
- cppcheck_py-2.9.dist-info/WHEEL +5 -0
- cppcheck_py-2.9.dist-info/entry_points.txt +4 -0
- cppcheck_py-2.9.dist-info/licenses/LICENSE.md +191 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<def format="2">
|
|
3
|
+
<define name="Py_RETURN_FALSE" value="return Py_INCREF(Py_False), Py_False"/>
|
|
4
|
+
<define name="Py_RETURN_NONE" value="return Py_INCREF(Py_None), Py_None"/>
|
|
5
|
+
<define name="Py_RETURN_TRUE" value="return Py_INCREF(Py_True), Py_True"/>
|
|
6
|
+
|
|
7
|
+
<!-- Python C API. see https://docs.python.org/2/c-api/index.html -->
|
|
8
|
+
<!-- ########## Python C API Types ########## -->
|
|
9
|
+
<define name="PY_LONG_LONG" value="long long"/>
|
|
10
|
+
<podtype name="Py_ssize_t" sign="s"/>
|
|
11
|
+
<define name="Py_uintptr_t" value="uintptr_t"/>
|
|
12
|
+
<define name="Py_intptr_t" value="intptr_t"/>
|
|
13
|
+
<define name="PY_UINT32_T" value="uint32_t"/>
|
|
14
|
+
<define name="PY_UINT64_T" value="uint64_t"/>
|
|
15
|
+
<define name="PY_INT32_T" value="int32_t"/>
|
|
16
|
+
<define name="PY_INT64_T" value="int64_t"/>
|
|
17
|
+
<define name="Py_hash_t" value="Py_ssize_t"/>
|
|
18
|
+
<define name="Py_uhash_t" value="size_t"/>
|
|
19
|
+
<define name="Py_ssize_clean_t" value="Py_ssize_t"/>
|
|
20
|
+
<!-- ########## Python C API Macros / Defines ########## -->
|
|
21
|
+
<define name="PY_LLONG_MIN" value="LLONG_MIN"/>
|
|
22
|
+
<define name="PY_LLONG_MAX" value="LLONG_MAX"/>
|
|
23
|
+
<define name="PY_ULLONG_MAX" value="ULLONG_MAX"/>
|
|
24
|
+
<define name="PY_SIZE_MAX" value="SIZE_MAX"/>
|
|
25
|
+
<define name="PY_SSIZE_T_MAX" value="((Py_ssize_t)(((size_t)-1)>>1))"/>
|
|
26
|
+
<define name="PY_SSIZE_T_MIN" value="(-PY_SSIZE_T_MAX-1)"/>
|
|
27
|
+
<define name="Py_MEMCPY" value="memcpy"/>
|
|
28
|
+
<define name="Py_FORCE_EXPANSION(X)" value="X"/>
|
|
29
|
+
<define name="Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW)" value="(NARROW)(VALUE)"/>
|
|
30
|
+
<define name="Py_ALIGNED(x)" value=""/>
|
|
31
|
+
<define name="Py_VA_COPY" value="va_copy"/>
|
|
32
|
+
<define name="PyMem_MALLOC(n)" value="PyMem_Malloc(n)"/>
|
|
33
|
+
<define name="PyMem_REALLOC(p, n)" value="PyMem_Realloc(p, n)"/>
|
|
34
|
+
<define name="PyMem_FREE(p)" value="PyMem_Free(p)"/>
|
|
35
|
+
<define name="PyMem_Del" value="PyMem_Free"/>
|
|
36
|
+
<define name="PyMem_DEL" value="PyMem_FREE"/>
|
|
37
|
+
<define name="PyMem_New(type, n)" value="( (type *) PyMem_Malloc((n) * sizeof(type)) )"/>
|
|
38
|
+
<define name="PyMem_NEW(type, n)" value="( (type *) PyMem_MALLOC((n) * sizeof(type)) )"/>
|
|
39
|
+
<define name="PyMem_Resize(p, type, n)" value="( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : (type *) PyMem_Realloc((p), (n) * sizeof(type)) )"/>
|
|
40
|
+
<define name="PyMem_RESIZE(p, type, n)" value="( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : (type *) PyMem_REALLOC((p), (n) * sizeof(type)) )"/>
|
|
41
|
+
<define name="PyObject_MALLOC" value="PyObject_Malloc"/>
|
|
42
|
+
<define name="PyObject_REALLOC" value="PyObject_Realloc"/>
|
|
43
|
+
<define name="PyObject_FREE" value="PyObject_Free"/>
|
|
44
|
+
<define name="PyObject_Del" value="PyObject_Free"/>
|
|
45
|
+
<define name="PyObject_DEL" value="PyObject_Free"/>
|
|
46
|
+
<define name="PyObject_New(type, typeobj)" value="( (type *) _PyObject_New(typeobj) )"/>
|
|
47
|
+
<define name="PyObject_NewVar(type, typeobj, n)" value="( (type *) _PyObject_NewVar((typeobj), (n)) )"/>
|
|
48
|
+
<!-- ########## Python C API Allocation / Deallocation ########## -->
|
|
49
|
+
<memory>
|
|
50
|
+
<alloc init="false" buffer-size="malloc">PyMem_Malloc</alloc>
|
|
51
|
+
<alloc init="true" buffer-size="calloc">PyMem_Calloc</alloc>
|
|
52
|
+
<realloc init="false" buffer-size="malloc:2">PyMem_Realloc</realloc>
|
|
53
|
+
<dealloc>PyMem_Free</dealloc>
|
|
54
|
+
</memory>
|
|
55
|
+
<memory>
|
|
56
|
+
<alloc init="false" buffer-size="malloc">PyMem_RawMalloc</alloc>
|
|
57
|
+
<alloc init="true" buffer-size="calloc">PyMem_RawCalloc</alloc>
|
|
58
|
+
<realloc init="false" buffer-size="malloc:2">PyMem_RawRealloc</realloc>
|
|
59
|
+
<dealloc>PyMem_RawFree</dealloc>
|
|
60
|
+
</memory>
|
|
61
|
+
<memory>
|
|
62
|
+
<alloc init="false" buffer-size="malloc">PyObject_Malloc</alloc>
|
|
63
|
+
<alloc init="true" buffer-size="calloc">PyObject_Calloc</alloc>
|
|
64
|
+
<realloc init="false" buffer-size="malloc:2">PyObject_Realloc</realloc>
|
|
65
|
+
<dealloc>PyObject_Free</dealloc>
|
|
66
|
+
</memory>
|
|
67
|
+
<!-- ########## Python C API Functions ########## -->
|
|
68
|
+
<!-- Those are macros, but it's helpful to declare a function here -->
|
|
69
|
+
<!-- void Py_INCREF(PyObject *o) -->
|
|
70
|
+
<!-- void Py_DECREF(PyObject *o) -->
|
|
71
|
+
<function name="Py_INCREF,Py_IncRef,Py_DECREF,Py_DecRef">
|
|
72
|
+
<leak-ignore/>
|
|
73
|
+
<noreturn>false</noreturn>
|
|
74
|
+
<returnValue type="void"/>
|
|
75
|
+
<arg nr="1">
|
|
76
|
+
<not-null/>
|
|
77
|
+
<not-uninit/>
|
|
78
|
+
</arg>
|
|
79
|
+
</function>
|
|
80
|
+
<!-- Those are macros, but it's helpful to declare a function here -->
|
|
81
|
+
<!-- void Py_XINCREF(PyObject *o) -->
|
|
82
|
+
<!-- void Py_XDECREF(PyObject *o) -->
|
|
83
|
+
<!-- void Py_CLEAR(PyObject *o) -->
|
|
84
|
+
<function name="Py_XINCREF,Py_XDECREF,Py_CLEAR">
|
|
85
|
+
<leak-ignore/>
|
|
86
|
+
<noreturn>false</noreturn>
|
|
87
|
+
<returnValue type="void"/>
|
|
88
|
+
<arg nr="1">
|
|
89
|
+
<not-uninit/>
|
|
90
|
+
</arg>
|
|
91
|
+
</function>
|
|
92
|
+
<!-- void Py_Exit(int status) -->
|
|
93
|
+
<function name="Py_Exit">
|
|
94
|
+
<noreturn>true</noreturn>
|
|
95
|
+
<returnValue type="void"/>
|
|
96
|
+
<arg nr="1" direction="in">
|
|
97
|
+
<not-uninit/>
|
|
98
|
+
</arg>
|
|
99
|
+
</function>
|
|
100
|
+
<!-- void Py_FatalError(const char *message) -->
|
|
101
|
+
<function name="Py_FatalError">
|
|
102
|
+
<noreturn>true</noreturn>
|
|
103
|
+
<returnValue type="void"/>
|
|
104
|
+
<arg nr="1" direction="in">
|
|
105
|
+
<not-uninit/>
|
|
106
|
+
</arg>
|
|
107
|
+
</function>
|
|
108
|
+
<!-- void Py_Initialize() -->
|
|
109
|
+
<!-- void Py_Finalize() -->
|
|
110
|
+
<function name="Py_Initialize,Py_Finalize">
|
|
111
|
+
<noreturn>false</noreturn>
|
|
112
|
+
<returnValue type="void"/>
|
|
113
|
+
</function>
|
|
114
|
+
<!-- void Py_InitializeEx(int initsigs) -->
|
|
115
|
+
<function name="Py_InitializeEx">
|
|
116
|
+
<noreturn>false</noreturn>
|
|
117
|
+
<returnValue type="void"/>
|
|
118
|
+
<arg nr="1">
|
|
119
|
+
<not-bool/>
|
|
120
|
+
<not-uninit/>
|
|
121
|
+
</arg>
|
|
122
|
+
</function>
|
|
123
|
+
<!-- PyObject* Py_InitModule(char *name, PyMethodDef *methods) -->
|
|
124
|
+
<function name="Py_InitModule">
|
|
125
|
+
<noreturn>false</noreturn>
|
|
126
|
+
<returnValue type="PyObject*"/>
|
|
127
|
+
<arg nr="1">
|
|
128
|
+
<not-uninit/>
|
|
129
|
+
</arg>
|
|
130
|
+
<arg nr="2">
|
|
131
|
+
<not-uninit/>
|
|
132
|
+
</arg>
|
|
133
|
+
</function>
|
|
134
|
+
<!-- PyObject* Py_InitModule3(char *name, PyMethodDef *methods, char *doc) -->
|
|
135
|
+
<function name="Py_InitModule3">
|
|
136
|
+
<noreturn>false</noreturn>
|
|
137
|
+
<returnValue type="PyObject*"/>
|
|
138
|
+
<arg nr="1">
|
|
139
|
+
<not-uninit/>
|
|
140
|
+
</arg>
|
|
141
|
+
<arg nr="2">
|
|
142
|
+
<not-uninit/>
|
|
143
|
+
</arg>
|
|
144
|
+
<arg nr="3">
|
|
145
|
+
<not-uninit/>
|
|
146
|
+
</arg>
|
|
147
|
+
</function>
|
|
148
|
+
<!-- PyObject* Py_InitModule4(char *name, PyMethodDef *methods, char *doc, PyObject *self, int apiver) -->
|
|
149
|
+
<function name="Py_InitModule4">
|
|
150
|
+
<noreturn>false</noreturn>
|
|
151
|
+
<returnValue type="PyObject*"/>
|
|
152
|
+
<arg nr="1">
|
|
153
|
+
<not-uninit/>
|
|
154
|
+
</arg>
|
|
155
|
+
<arg nr="2">
|
|
156
|
+
<not-uninit/>
|
|
157
|
+
</arg>
|
|
158
|
+
<arg nr="3">
|
|
159
|
+
<not-uninit/>
|
|
160
|
+
</arg>
|
|
161
|
+
<arg nr="4" direction="in">
|
|
162
|
+
<not-uninit/>
|
|
163
|
+
</arg>
|
|
164
|
+
</function>
|
|
165
|
+
<!-- int Py_IsInitialized() -->
|
|
166
|
+
<function name="Py_IsInitialized">
|
|
167
|
+
<noreturn>false</noreturn>
|
|
168
|
+
<pure/>
|
|
169
|
+
<returnValue type="int"/>
|
|
170
|
+
<use-retval/>
|
|
171
|
+
</function>
|
|
172
|
+
<!-- int Py_Main(int argc, wchar_t **argv) -->
|
|
173
|
+
<function name="Py_Main">
|
|
174
|
+
<leak-ignore/>
|
|
175
|
+
<returnValue type="int"/>
|
|
176
|
+
<arg nr="1">
|
|
177
|
+
<not-uninit/>
|
|
178
|
+
<valid>0:</valid>
|
|
179
|
+
</arg>
|
|
180
|
+
<arg nr="2">
|
|
181
|
+
<not-uninit/>
|
|
182
|
+
</arg>
|
|
183
|
+
</function>
|
|
184
|
+
<!-- void Py_SetProgramName(const wchar_t *name) -->
|
|
185
|
+
<!-- void Py_SetPythonHome(const wchar_t *home) -->
|
|
186
|
+
<function name="Py_SetProgramName,Py_SetPythonHome">
|
|
187
|
+
<leak-ignore/>
|
|
188
|
+
<noreturn>false</noreturn>
|
|
189
|
+
<returnValue type="void"/>
|
|
190
|
+
<arg nr="1">
|
|
191
|
+
<not-null/>
|
|
192
|
+
<not-uninit/>
|
|
193
|
+
<strz/>
|
|
194
|
+
</arg>
|
|
195
|
+
</function>
|
|
196
|
+
<!-- int PyArg_ParseTuple(PyObject *args, const char *format, ...) -->
|
|
197
|
+
<function name="PyArg_ParseTuple">
|
|
198
|
+
<noreturn>false</noreturn>
|
|
199
|
+
<returnValue type="int"/>
|
|
200
|
+
<leak-ignore/>
|
|
201
|
+
<arg nr="1" direction="in">
|
|
202
|
+
<not-uninit/>
|
|
203
|
+
</arg>
|
|
204
|
+
<arg nr="2" direction="in">
|
|
205
|
+
<not-uninit/>
|
|
206
|
+
<strz/>
|
|
207
|
+
</arg>
|
|
208
|
+
<arg nr="any" direction="out">
|
|
209
|
+
<not-null/>
|
|
210
|
+
<not-bool/>
|
|
211
|
+
</arg>
|
|
212
|
+
</function>
|
|
213
|
+
<!-- int PyArg_VaParse(PyObject *args, const char *format, va_list vargs) -->
|
|
214
|
+
<function name="PyArg_VaParse">
|
|
215
|
+
<noreturn>false</noreturn>
|
|
216
|
+
<returnValue type="int"/>
|
|
217
|
+
<leak-ignore/>
|
|
218
|
+
<arg nr="1" direction="in">
|
|
219
|
+
<not-null/>
|
|
220
|
+
<not-uninit/>
|
|
221
|
+
</arg>
|
|
222
|
+
<arg nr="2" direction="in">
|
|
223
|
+
<not-uninit/>
|
|
224
|
+
<strz/>
|
|
225
|
+
</arg>
|
|
226
|
+
<arg nr="3">
|
|
227
|
+
<not-uninit/>
|
|
228
|
+
<not-bool/>
|
|
229
|
+
</arg>
|
|
230
|
+
</function>
|
|
231
|
+
<!-- int PyArg_ParseTupleAndKeywords(PyObject *args, PyObject *kw, const char *format, char *keywords[], ...) -->
|
|
232
|
+
<function name="PyArg_ParseTupleAndKeywords">
|
|
233
|
+
<noreturn>false</noreturn>
|
|
234
|
+
<returnValue type="int"/>
|
|
235
|
+
<leak-ignore/>
|
|
236
|
+
<arg nr="1" direction="in">
|
|
237
|
+
<not-uninit/>
|
|
238
|
+
</arg>
|
|
239
|
+
<arg nr="2" direction="in">
|
|
240
|
+
<not-uninit/>
|
|
241
|
+
</arg>
|
|
242
|
+
<arg nr="3" direction="in">
|
|
243
|
+
<not-uninit/>
|
|
244
|
+
<strz/>
|
|
245
|
+
</arg>
|
|
246
|
+
<arg nr="4" direction="in">
|
|
247
|
+
<not-uninit/>
|
|
248
|
+
</arg>
|
|
249
|
+
<arg nr="any" direction="out">
|
|
250
|
+
<not-null/>
|
|
251
|
+
<not-bool/>
|
|
252
|
+
</arg>
|
|
253
|
+
</function>
|
|
254
|
+
<!-- PyObject* PyDict_New() -->
|
|
255
|
+
<function name="PyDict_New">
|
|
256
|
+
<noreturn>false</noreturn>
|
|
257
|
+
<returnValue type="PyObject*"/>
|
|
258
|
+
<use-retval/>
|
|
259
|
+
</function>
|
|
260
|
+
<!-- int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val) -->
|
|
261
|
+
<function name="PyDict_SetItem">
|
|
262
|
+
<noreturn>false</noreturn>
|
|
263
|
+
<returnValue type="int"/>
|
|
264
|
+
<arg nr="1">
|
|
265
|
+
<not-uninit/>
|
|
266
|
+
</arg>
|
|
267
|
+
<arg nr="2">
|
|
268
|
+
<not-uninit/>
|
|
269
|
+
</arg>
|
|
270
|
+
<arg nr="3">
|
|
271
|
+
<not-uninit/>
|
|
272
|
+
<not-bool/>
|
|
273
|
+
</arg>
|
|
274
|
+
</function>
|
|
275
|
+
<!-- int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val) -->
|
|
276
|
+
<function name="PyDict_SetItemString">
|
|
277
|
+
<noreturn>false</noreturn>
|
|
278
|
+
<returnValue type="int"/>
|
|
279
|
+
<arg nr="1">
|
|
280
|
+
<not-uninit/>
|
|
281
|
+
</arg>
|
|
282
|
+
<arg nr="2" direction="in">
|
|
283
|
+
<not-uninit/>
|
|
284
|
+
<strz/>
|
|
285
|
+
</arg>
|
|
286
|
+
<arg nr="3">
|
|
287
|
+
<not-uninit/>
|
|
288
|
+
<not-bool/>
|
|
289
|
+
</arg>
|
|
290
|
+
</function>
|
|
291
|
+
<!-- void PyErr_Clear() -->
|
|
292
|
+
<function name="PyErr_Clear">
|
|
293
|
+
<noreturn>false</noreturn>
|
|
294
|
+
<returnValue type="void"/>
|
|
295
|
+
</function>
|
|
296
|
+
<!-- PyObject* PyErr_Format(PyObject *exception, const char *format, ...) -->
|
|
297
|
+
<function name="PyErr_Format">
|
|
298
|
+
<noreturn>false</noreturn>
|
|
299
|
+
<returnValue type="PyObject*">NULL</returnValue>
|
|
300
|
+
<leak-ignore/>
|
|
301
|
+
<arg nr="1">
|
|
302
|
+
<not-uninit/>
|
|
303
|
+
</arg>
|
|
304
|
+
<arg nr="2" direction="in">
|
|
305
|
+
<not-uninit/>
|
|
306
|
+
<strz/>
|
|
307
|
+
</arg>
|
|
308
|
+
<arg nr="variadic" direction="in">
|
|
309
|
+
<not-uninit/>
|
|
310
|
+
</arg>
|
|
311
|
+
</function>
|
|
312
|
+
<!-- PyObject* PyErr_FormatV(PyObject *exception, const char *format, va_list vargs) -->
|
|
313
|
+
<function name="PyErr_FormatV">
|
|
314
|
+
<noreturn>false</noreturn>
|
|
315
|
+
<returnValue type="PyObject*">NULL</returnValue>
|
|
316
|
+
<leak-ignore/>
|
|
317
|
+
<arg nr="1">
|
|
318
|
+
<not-uninit/>
|
|
319
|
+
</arg>
|
|
320
|
+
<arg nr="2" direction="in">
|
|
321
|
+
<not-uninit/>
|
|
322
|
+
<strz/>
|
|
323
|
+
</arg>
|
|
324
|
+
<arg nr="3" direction="in">
|
|
325
|
+
<not-uninit/>
|
|
326
|
+
</arg>
|
|
327
|
+
</function>
|
|
328
|
+
<!-- PyObject* PyErr_NewException(const char *name, PyObject *base, PyObject *dict) -->
|
|
329
|
+
<function name="PyErr_NewException">
|
|
330
|
+
<noreturn>false</noreturn>
|
|
331
|
+
<returnValue type="PyObject*"/>
|
|
332
|
+
<use-retval/>
|
|
333
|
+
<arg nr="1" direction="in">
|
|
334
|
+
<not-uninit/>
|
|
335
|
+
<strz/>
|
|
336
|
+
</arg>
|
|
337
|
+
<arg nr="2">
|
|
338
|
+
<not-uninit/>
|
|
339
|
+
</arg>
|
|
340
|
+
<arg nr="3">
|
|
341
|
+
<not-uninit/>
|
|
342
|
+
</arg>
|
|
343
|
+
</function>
|
|
344
|
+
<!-- PyObject* PyErr_NewExceptionWithDoc(const char *name, const char *doc, PyObject *base, PyObject *dict) -->
|
|
345
|
+
<function name="PyErr_NewExceptionWithDoc">
|
|
346
|
+
<noreturn>false</noreturn>
|
|
347
|
+
<returnValue type="PyObject*"/>
|
|
348
|
+
<use-retval/>
|
|
349
|
+
<arg nr="1" direction="in">
|
|
350
|
+
<not-uninit/>
|
|
351
|
+
<strz/>
|
|
352
|
+
</arg>
|
|
353
|
+
<arg nr="2" direction="in">
|
|
354
|
+
<not-uninit/>
|
|
355
|
+
<strz/>
|
|
356
|
+
</arg>
|
|
357
|
+
<arg nr="3">
|
|
358
|
+
<not-uninit/>
|
|
359
|
+
</arg>
|
|
360
|
+
<arg nr="4">
|
|
361
|
+
<not-uninit/>
|
|
362
|
+
</arg>
|
|
363
|
+
</function>
|
|
364
|
+
<!-- PyObject* PyErr_SetFromErrno(PyObject *type) -->
|
|
365
|
+
<function name="PyErr_SetFromErrno">
|
|
366
|
+
<noreturn>false</noreturn>
|
|
367
|
+
<returnValue type="PyObject*">NULL</returnValue>
|
|
368
|
+
<leak-ignore/>
|
|
369
|
+
<arg nr="1">
|
|
370
|
+
<not-uninit/>
|
|
371
|
+
</arg>
|
|
372
|
+
</function>
|
|
373
|
+
<!-- void PyErr_SetObject(PyObject *type, PyObject *value) -->
|
|
374
|
+
<function name="PyErr_SetObject">
|
|
375
|
+
<leak-ignore/>
|
|
376
|
+
<noreturn>false</noreturn>
|
|
377
|
+
<returnValue type="void"/>
|
|
378
|
+
<arg nr="1">
|
|
379
|
+
<not-null/>
|
|
380
|
+
<not-uninit/>
|
|
381
|
+
</arg>
|
|
382
|
+
<arg nr="2">
|
|
383
|
+
<not-null/>
|
|
384
|
+
<not-uninit/>
|
|
385
|
+
</arg>
|
|
386
|
+
</function>
|
|
387
|
+
<!-- void PyErr_SetString(PyObject *type, const char *message) -->
|
|
388
|
+
<function name="PyErr_SetString">
|
|
389
|
+
<leak-ignore/>
|
|
390
|
+
<noreturn>false</noreturn>
|
|
391
|
+
<returnValue type="void"/>
|
|
392
|
+
<arg nr="1">
|
|
393
|
+
<not-uninit/>
|
|
394
|
+
</arg>
|
|
395
|
+
<arg nr="2" direction="in">
|
|
396
|
+
<strz/>
|
|
397
|
+
<not-null/>
|
|
398
|
+
<not-uninit/>
|
|
399
|
+
</arg>
|
|
400
|
+
</function>
|
|
401
|
+
<function name="Py_GetProgramName,Py_GetExecPrefix,Py_GetProgramFullPath,Py_GetPath,Py_GetPythonHome">
|
|
402
|
+
<noreturn>false</noreturn>
|
|
403
|
+
<returnValue type="char *"/>
|
|
404
|
+
<pure/>
|
|
405
|
+
<use-retval/>
|
|
406
|
+
</function>
|
|
407
|
+
<function name="Py_GetVersion,Py_GetPlatform,Py_GetCopyright,Py_GetCompiler,Py_GetBuildInfo">
|
|
408
|
+
<noreturn>false</noreturn>
|
|
409
|
+
<returnValue type="const char *"/>
|
|
410
|
+
<pure/>
|
|
411
|
+
<use-retval/>
|
|
412
|
+
</function>
|
|
413
|
+
<!-- https://docs.python.org/2.0/ext/parseTuple.html
|
|
414
|
+
PyObject *Py_BuildValue(char *format, ...); -->
|
|
415
|
+
<function name="Py_BuildValue">
|
|
416
|
+
<returnValue type="PyObject *"/>
|
|
417
|
+
<noreturn>false</noreturn>
|
|
418
|
+
<leak-ignore/>
|
|
419
|
+
<use-retval/>
|
|
420
|
+
<arg nr="1">
|
|
421
|
+
<not-uninit/>
|
|
422
|
+
<formatstr/>
|
|
423
|
+
</arg>
|
|
424
|
+
<arg nr="2"/>
|
|
425
|
+
</function>
|
|
426
|
+
<!-- PyObject* PyBytes_FromString(const char *v) -->
|
|
427
|
+
<function name="PyBytes_FromString">
|
|
428
|
+
<noreturn>false</noreturn>
|
|
429
|
+
<returnValue type="PyObject*"/>
|
|
430
|
+
<use-retval/>
|
|
431
|
+
<arg nr="1" direction="in">
|
|
432
|
+
<not-null/>
|
|
433
|
+
<not-uninit/>
|
|
434
|
+
<not-bool/>
|
|
435
|
+
<strz/>
|
|
436
|
+
</arg>
|
|
437
|
+
</function>
|
|
438
|
+
<!-- double PyFloat_AsDouble(PyObject *pyfloat) -->
|
|
439
|
+
<function name="PyFloat_AsDouble">
|
|
440
|
+
<noreturn>false</noreturn>
|
|
441
|
+
<returnValue type="double"/>
|
|
442
|
+
<use-retval/>
|
|
443
|
+
<arg nr="1" direction="in">
|
|
444
|
+
<not-uninit/>
|
|
445
|
+
<not-bool/>
|
|
446
|
+
</arg>
|
|
447
|
+
</function>
|
|
448
|
+
<!-- double PyFloat_AS_DOUBLE(PyObject *pyfloat) -->
|
|
449
|
+
<function name="PyFloat_AS_DOUBLE">
|
|
450
|
+
<noreturn>false</noreturn>
|
|
451
|
+
<returnValue type="double"/>
|
|
452
|
+
<use-retval/>
|
|
453
|
+
<arg nr="1" direction="in">
|
|
454
|
+
<not-null/>
|
|
455
|
+
<not-uninit/>
|
|
456
|
+
<not-bool/>
|
|
457
|
+
</arg>
|
|
458
|
+
</function>
|
|
459
|
+
<!-- int PyFloat_Check(PyObject *p) -->
|
|
460
|
+
<!-- int PyFloat_CheckExact(PyObject *p) -->
|
|
461
|
+
<function name="PyFloat_Check,PyFloat_CheckExact">
|
|
462
|
+
<noreturn>false</noreturn>
|
|
463
|
+
<returnValue type="int"/>
|
|
464
|
+
<use-retval/>
|
|
465
|
+
<arg nr="1" direction="in">
|
|
466
|
+
<not-uninit/>
|
|
467
|
+
<not-bool/>
|
|
468
|
+
</arg>
|
|
469
|
+
</function>
|
|
470
|
+
<!-- PyObject* PyFloat_FromDouble(double v) -->
|
|
471
|
+
<function name="PyFloat_FromDouble">
|
|
472
|
+
<noreturn>false</noreturn>
|
|
473
|
+
<returnValue type="PyObject*"/>
|
|
474
|
+
<use-retval/>
|
|
475
|
+
<arg nr="1" direction="in">
|
|
476
|
+
<not-uninit/>
|
|
477
|
+
<not-bool/>
|
|
478
|
+
</arg>
|
|
479
|
+
</function>
|
|
480
|
+
<!-- PyObject* PyFloat_FromString(PyObject *str) -->
|
|
481
|
+
<function name="PyFloat_FromString">
|
|
482
|
+
<noreturn>false</noreturn>
|
|
483
|
+
<returnValue type="PyObject*"/>
|
|
484
|
+
<use-retval/>
|
|
485
|
+
<arg nr="1" direction="in">
|
|
486
|
+
<not-uninit/>
|
|
487
|
+
<not-bool/>
|
|
488
|
+
</arg>
|
|
489
|
+
</function>
|
|
490
|
+
<!-- int PyInt_Check(PyObject *o) -->
|
|
491
|
+
<function name="PyInt_Check">
|
|
492
|
+
<returnValue type="int"/>
|
|
493
|
+
<noreturn>false</noreturn>
|
|
494
|
+
<leak-ignore/>
|
|
495
|
+
<arg nr="1">
|
|
496
|
+
<not-bool/>
|
|
497
|
+
<not-uninit/>
|
|
498
|
+
</arg>
|
|
499
|
+
</function>
|
|
500
|
+
<!-- PyObject* PyInt_FromLong(long ival) -->
|
|
501
|
+
<function name="PyInt_FromLong">
|
|
502
|
+
<returnValue type="PyObject *"/>
|
|
503
|
+
<noreturn>false</noreturn>
|
|
504
|
+
<arg nr="1">
|
|
505
|
+
<not-bool/>
|
|
506
|
+
<not-uninit/>
|
|
507
|
+
</arg>
|
|
508
|
+
</function>
|
|
509
|
+
<!-- void* PyMem_Calloc(size_t nelem, size_t elsize) -->
|
|
510
|
+
<!-- void* PyMem_RawCalloc(size_t nelem, size_t elsize) -->
|
|
511
|
+
<function name="PyMem_Calloc,PyMem_RawCalloc">
|
|
512
|
+
<use-retval/>
|
|
513
|
+
<noreturn>false</noreturn>
|
|
514
|
+
<returnValue type="void *"/>
|
|
515
|
+
<arg nr="1" direction="in">
|
|
516
|
+
<not-uninit/>
|
|
517
|
+
<valid>1:</valid>
|
|
518
|
+
</arg>
|
|
519
|
+
<arg nr="2" direction="in">
|
|
520
|
+
<not-uninit/>
|
|
521
|
+
<valid>0:</valid>
|
|
522
|
+
</arg>
|
|
523
|
+
</function>
|
|
524
|
+
<!-- void PyMem_Free(void *p) -->
|
|
525
|
+
<!-- void PyMem_RawFree(void *p) -->
|
|
526
|
+
<function name="PyMem_Free,PyMem_RawFree">
|
|
527
|
+
<noreturn>false</noreturn>
|
|
528
|
+
<returnValue type="void"/>
|
|
529
|
+
<arg nr="1">
|
|
530
|
+
<not-uninit/>
|
|
531
|
+
</arg>
|
|
532
|
+
</function>
|
|
533
|
+
<!-- void* PyMem_Malloc(size_t n) -->
|
|
534
|
+
<!-- void* PyMem_RawMalloc(size_t n) -->
|
|
535
|
+
<function name="PyMem_Malloc,PyMem_RawMalloc">
|
|
536
|
+
<noreturn>false</noreturn>
|
|
537
|
+
<returnValue type="void *"/>
|
|
538
|
+
<use-retval/>
|
|
539
|
+
<arg nr="1" direction="in">
|
|
540
|
+
<not-uninit/>
|
|
541
|
+
<valid>0:</valid>
|
|
542
|
+
</arg>
|
|
543
|
+
</function>
|
|
544
|
+
<!-- void* PyMem_Realloc(void *p, size_t n) -->
|
|
545
|
+
<!-- void* PyMem_RawRealloc(void *p, size_t n) -->
|
|
546
|
+
<function name="PyMem_Realloc,PyMem_RawRealloc">
|
|
547
|
+
<returnValue type="void *"/>
|
|
548
|
+
<use-retval/>
|
|
549
|
+
<noreturn>false</noreturn>
|
|
550
|
+
<arg nr="1">
|
|
551
|
+
<not-uninit/>
|
|
552
|
+
</arg>
|
|
553
|
+
<arg nr="2" direction="in">
|
|
554
|
+
<not-uninit/>
|
|
555
|
+
<valid>0:</valid>
|
|
556
|
+
</arg>
|
|
557
|
+
</function>
|
|
558
|
+
<!-- int PyModule_AddIntConstant(PyObject *module, const char *name, long value) -->
|
|
559
|
+
<function name="PyModule_AddIntConstant">
|
|
560
|
+
<noreturn>false</noreturn>
|
|
561
|
+
<returnValue type="int"/>
|
|
562
|
+
<arg nr="1" direction="inout">
|
|
563
|
+
<not-uninit/>
|
|
564
|
+
</arg>
|
|
565
|
+
<arg nr="2" direction="in">
|
|
566
|
+
<not-null/>
|
|
567
|
+
<not-uninit/>
|
|
568
|
+
<strz/>
|
|
569
|
+
</arg>
|
|
570
|
+
<arg nr="3" direction="in">
|
|
571
|
+
<not-uninit/>
|
|
572
|
+
</arg>
|
|
573
|
+
</function>
|
|
574
|
+
<!-- int PyModule_AddObject(PyObject *module, const char *name, PyObject *value) -->
|
|
575
|
+
<!-- The hint "This means that its return value must be checked, and calling code must Py_DECREF()
|
|
576
|
+
value manually on error." in the documentation suggests to add use-retval. -->
|
|
577
|
+
<function name="PyModule_AddObject">
|
|
578
|
+
<noreturn>false</noreturn>
|
|
579
|
+
<returnValue type="int"/>
|
|
580
|
+
<use-retval/>
|
|
581
|
+
<arg nr="1">
|
|
582
|
+
<not-null/>
|
|
583
|
+
<not-uninit/>
|
|
584
|
+
</arg>
|
|
585
|
+
<arg nr="2" direction="in">
|
|
586
|
+
<not-null/>
|
|
587
|
+
<not-uninit/>
|
|
588
|
+
<strz/>
|
|
589
|
+
</arg>
|
|
590
|
+
<arg nr="3">
|
|
591
|
+
<not-null/>
|
|
592
|
+
<not-bool/>
|
|
593
|
+
</arg>
|
|
594
|
+
</function>
|
|
595
|
+
<!-- int PyModule_AddStringConstant(PyObject *module, const char *name, const char *value) -->
|
|
596
|
+
<function name="PyModule_AddStringConstant">
|
|
597
|
+
<noreturn>false</noreturn>
|
|
598
|
+
<returnValue type="int"/>
|
|
599
|
+
<arg nr="1" direction="inout">
|
|
600
|
+
<not-uninit/>
|
|
601
|
+
</arg>
|
|
602
|
+
<arg nr="2" direction="in">
|
|
603
|
+
<not-null/>
|
|
604
|
+
<not-uninit/>
|
|
605
|
+
<strz/>
|
|
606
|
+
</arg>
|
|
607
|
+
<arg nr="3" direction="in">
|
|
608
|
+
<not-null/>
|
|
609
|
+
<not-uninit/>
|
|
610
|
+
<strz/>
|
|
611
|
+
<not-bool/>
|
|
612
|
+
</arg>
|
|
613
|
+
</function>
|
|
614
|
+
<!-- void PyObject_Del(void *op) -->
|
|
615
|
+
<function name="PyObject_Del">
|
|
616
|
+
<noreturn>false</noreturn>
|
|
617
|
+
<returnValue type="void"/>
|
|
618
|
+
<arg nr="1">
|
|
619
|
+
<not-uninit/>
|
|
620
|
+
</arg>
|
|
621
|
+
</function>
|
|
622
|
+
<!-- PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name) -->
|
|
623
|
+
<function name="PyObject_GetAttrString">
|
|
624
|
+
<noreturn>false</noreturn>
|
|
625
|
+
<returnValue type="PyObject*"/>
|
|
626
|
+
<use-retval/>
|
|
627
|
+
<arg nr="1">
|
|
628
|
+
<not-uninit/>
|
|
629
|
+
</arg>
|
|
630
|
+
<arg nr="2" direction="in">
|
|
631
|
+
<not-null/>
|
|
632
|
+
<not-uninit/>
|
|
633
|
+
<strz/>
|
|
634
|
+
<not-bool/>
|
|
635
|
+
</arg>
|
|
636
|
+
</function>
|
|
637
|
+
<!-- PyAPI_FUNC(PyObject *) _PyObject_New(PyTypeObject *); -->
|
|
638
|
+
<function name="_PyObject_New">
|
|
639
|
+
<noreturn>false</noreturn>
|
|
640
|
+
<returnValue type="PyObject *"/>
|
|
641
|
+
<use-retval/>
|
|
642
|
+
<arg nr="1"/>
|
|
643
|
+
</function>
|
|
644
|
+
<!-- PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t); -->
|
|
645
|
+
<function name="_PyObject_NewVar">
|
|
646
|
+
<noreturn>false</noreturn>
|
|
647
|
+
<returnValue type="PyVarObject *"/>
|
|
648
|
+
<use-retval/>
|
|
649
|
+
<arg nr="1"/>
|
|
650
|
+
<arg nr="3" direction="in">
|
|
651
|
+
<not-uninit/>
|
|
652
|
+
<not-bool/>
|
|
653
|
+
</arg>
|
|
654
|
+
</function>
|
|
655
|
+
<!-- PyObject* PyString_FromString(const char *v) -->
|
|
656
|
+
<function name="PyString_FromString">
|
|
657
|
+
<noreturn>false</noreturn>
|
|
658
|
+
<returnValue type="PyObject*"/>
|
|
659
|
+
<use-retval/>
|
|
660
|
+
<arg nr="1" direction="in">
|
|
661
|
+
<not-null/>
|
|
662
|
+
<not-uninit/>
|
|
663
|
+
<not-bool/>
|
|
664
|
+
<strz/>
|
|
665
|
+
</arg>
|
|
666
|
+
</function>
|
|
667
|
+
<!-- Deprecated DL_IMPORT and DL_EXPORT macros -->
|
|
668
|
+
<define name="DL_IMPORT(RTYPE)" value="RTYPE"/>
|
|
669
|
+
<define name="DL_EXPORT(RTYPE)" value="RTYPE"/>
|
|
670
|
+
<define name="Py_BEGIN_ALLOW_THREADS" value=""/>
|
|
671
|
+
<define name="Py_END_ALLOW_THREADS" value=""/>
|
|
672
|
+
<define name="Py_BLOCK_THREADS" value=""/>
|
|
673
|
+
<define name="Py_UNBLOCK_THREADS" value=""/>
|
|
674
|
+
</def>
|