Skip to content

Commit b34fe35

Browse files
committed
Add more interfaces
1 parent 6f57b9a commit b34fe35

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

cfg/python.cfg

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,53 @@
102102
<pure/>
103103
<use-retval/>
104104
</function>
105+
<!-- https://docs.python.org/2.0/ext/parseTuple.html
106+
PyObject *Py_BuildValue(char *format, ...); -->
107+
<function name="Py_BuildValue">
108+
<returnValue type="PyObject *"/>
109+
<noreturn>false</noreturn>
110+
<leak-ignore/>
111+
<arg nr="1">
112+
<not-uninit/>
113+
<formatstr/>
114+
</arg>
115+
<arg nr="2"/>
116+
</function>
117+
<!-- https://docs.python.org/2.0/ext/parseTuple.html
118+
int PyArg_ParseTuple(PyObject *arg, char *format, ...); -->
119+
<function name="PyArg_ParseTuple">
120+
<returnValue type="int"/>
121+
<noreturn>false</noreturn>
122+
<leak-ignore/>
123+
<arg nr="1">
124+
<not-null/>
125+
<not-uninit/>
126+
</arg>
127+
<arg nr="2">
128+
<not-uninit/>
129+
<formatstr/>
130+
</arg>
131+
<arg nr="3"/>
132+
</function>
133+
<!-- int PyInt_Check(PyObject *o) -->
134+
<function name="PyInt_Check">
135+
<returnValue type="int"/>
136+
<noreturn>false</noreturn>
137+
<leak-ignore/>
138+
<arg nr="1">
139+
<not-bool/>
140+
<not-uninit/>
141+
</arg>
142+
</function>
143+
<!-- PyObject* PyInt_FromLong(long ival) -->
144+
<function name="PPyInt_FromLong">
145+
<returnValue type="PyObject *"/>
146+
<noreturn>false</noreturn>
147+
<arg nr="1">
148+
<not-bool/>
149+
<not-uninit/>
150+
</arg>
151+
</function>
105152
<!-- Deprecated DL_IMPORT and DL_EXPORT macros -->
106153
<define name="DL_IMPORT(RTYPE)" value="RTYPE"/>
107154
<define name="DL_EXPORT(RTYPE)" value="RTYPE"/>

0 commit comments

Comments
 (0)