Panda3D
 All Classes Functions Variables Enumerations
pystub.cxx
1 // Filename: pystub.cxx
2 // Created by: drose (09Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pystub.h"
16 
17 extern "C" {
18  EXPCL_PYSTUB int PyArg_Parse(...);
19  EXPCL_PYSTUB int PyArg_ParseTuple(...);
20  EXPCL_PYSTUB int PyArg_ParseTupleAndKeywords(...);
21  EXPCL_PYSTUB int PyArg_UnpackTuple(...);
22  EXPCL_PYSTUB int PyBool_FromLong(...);
23  EXPCL_PYSTUB int PyBuffer_Release(...);
24  EXPCL_PYSTUB int PyBytes_AsString(...);
25  EXPCL_PYSTUB int PyBytes_AsStringAndSize(...);
26  EXPCL_PYSTUB int PyBytes_FromStringAndSize(...);
27  EXPCL_PYSTUB int PyBytes_Size(...);
28  EXPCL_PYSTUB int PyCFunction_New(...);
29  EXPCL_PYSTUB int PyCFunction_NewEx(...);
30  EXPCL_PYSTUB int PyCallable_Check(...);
31  EXPCL_PYSTUB int PyDict_DelItem(...);
32  EXPCL_PYSTUB int PyDict_DelItemString(...);
33  EXPCL_PYSTUB int PyDict_GetItem(...);
34  EXPCL_PYSTUB int PyDict_GetItemString(...);
35  EXPCL_PYSTUB int PyDict_New(...);
36  EXPCL_PYSTUB int PyDict_SetItem(...);
37  EXPCL_PYSTUB int PyDict_SetItemString(...);
38  EXPCL_PYSTUB int PyDict_Size(...);
39  EXPCL_PYSTUB int PyDict_Type(...);
40  EXPCL_PYSTUB int PyErr_Clear(...);
41  EXPCL_PYSTUB int PyErr_ExceptionMatches(...);
42  EXPCL_PYSTUB int PyErr_Fetch(...);
43  EXPCL_PYSTUB int PyErr_Format(...);
44  EXPCL_PYSTUB int PyErr_NoMemory(...);
45  EXPCL_PYSTUB int PyErr_Occurred(...);
46  EXPCL_PYSTUB int PyErr_Print(...);
47  EXPCL_PYSTUB int PyErr_Restore(...);
48  EXPCL_PYSTUB int PyErr_SetString(...);
49  EXPCL_PYSTUB int PyErr_Warn(...);
50  EXPCL_PYSTUB int PyErr_WarnEx(...);
51  EXPCL_PYSTUB int PyEval_CallFunction(...);
52  EXPCL_PYSTUB int PyEval_CallObjectWithKeywords(...);
53  EXPCL_PYSTUB int PyEval_InitThreads(...);
54  EXPCL_PYSTUB int PyEval_RestoreThread(...);
55  EXPCL_PYSTUB int PyEval_SaveThread(...);
56  EXPCL_PYSTUB int PyFloat_AsDouble(...);
57  EXPCL_PYSTUB int PyFloat_FromDouble(...);
58  EXPCL_PYSTUB int PyFloat_Type(...);
59  EXPCL_PYSTUB int PyGen_Check(...);
60  EXPCL_PYSTUB int PyGen_Type(...);
61  EXPCL_PYSTUB int PyGILState_Ensure(...);
62  EXPCL_PYSTUB int PyGILState_Release(...);
63  EXPCL_PYSTUB int PyImport_GetModuleDict(...);
64  EXPCL_PYSTUB int PyInt_AsLong(...);
65  EXPCL_PYSTUB int PyInt_AsSsize_t(...);
66  EXPCL_PYSTUB int PyInt_FromLong(...);
67  EXPCL_PYSTUB int PyInt_FromSize_t(...);
68  EXPCL_PYSTUB int PyInt_Type(...);
69  EXPCL_PYSTUB int PyList_Append(...);
70  EXPCL_PYSTUB int PyList_AsTuple(...);
71  EXPCL_PYSTUB int PyList_GetItem(...);
72  EXPCL_PYSTUB int PyList_New(...);
73  EXPCL_PYSTUB int PyList_SetItem(...);
74  EXPCL_PYSTUB int PyList_Type(...);
75  EXPCL_PYSTUB int PyLong_AsLong(...);
76  EXPCL_PYSTUB int PyLong_AsLongLong(...);
77  EXPCL_PYSTUB int PyLong_AsSsize_t(...);
78  EXPCL_PYSTUB int PyLong_AsUnsignedLong(...);
79  EXPCL_PYSTUB int PyLong_AsUnsignedLongLong(...);
80  EXPCL_PYSTUB int PyLong_FromLong(...);
81  EXPCL_PYSTUB int PyLong_FromLongLong(...);
82  EXPCL_PYSTUB int PyLong_FromSize_t(...);
83  EXPCL_PYSTUB int PyLong_FromUnsignedLong(...);
84  EXPCL_PYSTUB int PyLong_FromUnsignedLongLong(...);
85  EXPCL_PYSTUB int PyLong_Type(...);
86  EXPCL_PYSTUB int PyMapping_GetItemString(...);
87  EXPCL_PYSTUB int PyMem_Free(...);
88  EXPCL_PYSTUB int PyMemoryView_FromObject(...);
89  EXPCL_PYSTUB int PyModule_AddIntConstant(...);
90  EXPCL_PYSTUB int PyModule_AddObject(...);
91  EXPCL_PYSTUB int PyModule_AddStringConstant(...);
92  EXPCL_PYSTUB int PyModule_Create2(...);
93  EXPCL_PYSTUB int PyNumber_Check(...);
94  EXPCL_PYSTUB int PyNumber_Float(...);
95  EXPCL_PYSTUB int PyNumber_Int(...);
96  EXPCL_PYSTUB int PyNumber_Long(...);
97  EXPCL_PYSTUB int PyObject_ASCII(...);
98  EXPCL_PYSTUB int PyObject_Call(...);
99  EXPCL_PYSTUB int PyObject_CallFunction(...);
100  EXPCL_PYSTUB int PyObject_CallFunctionObjArgs(...);
101  EXPCL_PYSTUB int PyObject_CallMethod(...);
102  EXPCL_PYSTUB int PyObject_CallMethodObjArgs(...);
103  EXPCL_PYSTUB int PyObject_CallObject(...);
104  EXPCL_PYSTUB int PyObject_Cmp(...);
105  EXPCL_PYSTUB int PyObject_Compare(...);
106  EXPCL_PYSTUB int PyObject_Free(...);
107  EXPCL_PYSTUB int PyObject_GenericGetAttr(...);
108  EXPCL_PYSTUB int PyObject_GenericSetAttr(...);
109  EXPCL_PYSTUB int PyObject_GetAttrString(...);
110  EXPCL_PYSTUB int PyObject_GetBuffer(...);
111  EXPCL_PYSTUB int PyObject_HasAttrString(...);
112  EXPCL_PYSTUB int PyObject_IsInstance(...);
113  EXPCL_PYSTUB int PyObject_IsTrue(...);
114  EXPCL_PYSTUB int PyObject_Repr(...);
115  EXPCL_PYSTUB int PyObject_RichCompareBool(...);
116  EXPCL_PYSTUB int PyObject_SetAttrString(...);
117  EXPCL_PYSTUB int PyObject_Str(...);
118  EXPCL_PYSTUB int PyObject_Type(...);
119  EXPCL_PYSTUB int PySequence_Check(...);
120  EXPCL_PYSTUB int PySequence_Fast(...);
121  EXPCL_PYSTUB int PySequence_GetItem(...);
122  EXPCL_PYSTUB int PySequence_Size(...);
123  EXPCL_PYSTUB int PySequence_Tuple(...);
124  EXPCL_PYSTUB int PyString_AsString(...);
125  EXPCL_PYSTUB int PyString_AsStringAndSize(...);
126  EXPCL_PYSTUB int PyString_FromFormat(...);
127  EXPCL_PYSTUB int PyString_FromString(...);
128  EXPCL_PYSTUB int PyString_FromStringAndSize(...);
129  EXPCL_PYSTUB int PyString_InternFromString(...);
130  EXPCL_PYSTUB int PyString_InternInPlace(...);
131  EXPCL_PYSTUB int PyString_Size(...);
132  EXPCL_PYSTUB int PyString_Type(...);
133  EXPCL_PYSTUB int PySys_GetObject(...);
134  EXPCL_PYSTUB int PyThreadState_Clear(...);
135  EXPCL_PYSTUB int PyThreadState_Delete(...);
136  EXPCL_PYSTUB int PyThreadState_Get(...);
137  EXPCL_PYSTUB int PyThreadState_New(...);
138  EXPCL_PYSTUB int PyThreadState_Swap(...);
139  EXPCL_PYSTUB int PyTuple_GetItem(...);
140  EXPCL_PYSTUB int PyTuple_New(...);
141  EXPCL_PYSTUB int PyTuple_Pack(...);
142  EXPCL_PYSTUB int PyTuple_Size(...);
143  EXPCL_PYSTUB int PyTuple_Type(...);
144  EXPCL_PYSTUB int PyType_GenericAlloc(...);
145  EXPCL_PYSTUB int PyType_IsSubtype(...);
146  EXPCL_PYSTUB int PyType_Ready(...);
147  EXPCL_PYSTUB int PyUnicodeUCS2_FromStringAndSize(...);
148  EXPCL_PYSTUB int PyUnicodeUCS2_FromWideChar(...);
149  EXPCL_PYSTUB int PyUnicodeUCS2_AsWideChar(...);
150  EXPCL_PYSTUB int PyUnicodeUCS2_GetSize(...);
151  EXPCL_PYSTUB int PyUnicodeUCS4_FromStringAndSize(...);
152  EXPCL_PYSTUB int PyUnicodeUCS4_FromWideChar(...);
153  EXPCL_PYSTUB int PyUnicodeUCS4_AsWideChar(...);
154  EXPCL_PYSTUB int PyUnicodeUCS4_GetSize(...);
155  EXPCL_PYSTUB int PyUnicode_AsUTF8(...);
156  EXPCL_PYSTUB int PyUnicode_AsUTF8AndSize(...);
157  EXPCL_PYSTUB int PyUnicode_AsWideChar(...);
158  EXPCL_PYSTUB int PyUnicode_AsWideCharString(...);
159  EXPCL_PYSTUB int PyUnicode_FromFormat(...);
160  EXPCL_PYSTUB int PyUnicode_FromString(...);
161  EXPCL_PYSTUB int PyUnicode_FromStringAndSize(...);
162  EXPCL_PYSTUB int PyUnicode_FromWideChar(...);
163  EXPCL_PYSTUB int PyUnicode_GetSize(...);
164  EXPCL_PYSTUB int PyUnicode_InternFromString(...);
165  EXPCL_PYSTUB int PyUnicode_InternInPlace(...);
166  EXPCL_PYSTUB int PyUnicode_Type(...);
167  EXPCL_PYSTUB int Py_BuildValue(...);
168  EXPCL_PYSTUB int Py_InitModule4(...);
169  EXPCL_PYSTUB int Py_InitModule4_64(...);
170  EXPCL_PYSTUB int Py_InitModule4TraceRefs(...);
171  EXPCL_PYSTUB int _PyArg_ParseTuple_SizeT(...);
172  EXPCL_PYSTUB int _PyArg_ParseTupleAndKeywords_SizeT(...);
173  EXPCL_PYSTUB int _PyArg_Parse_SizeT(...);
174  EXPCL_PYSTUB int _PyObject_CallFunction_SizeT(...);
175  EXPCL_PYSTUB int _PyObject_CallMethod_SizeT(...);
176  EXPCL_PYSTUB int _PyObject_DebugFree(...);
177  EXPCL_PYSTUB int _PyObject_Del(...);
178  EXPCL_PYSTUB int _Py_BuildValue_SizeT(...);
179  EXPCL_PYSTUB int _Py_Dealloc(...);
180  EXPCL_PYSTUB int _Py_NegativeRefcount(...);
181  EXPCL_PYSTUB int _Py_RefTotal(...);
182 
183  EXPCL_PYSTUB void Py_Initialize();
184  EXPCL_PYSTUB int Py_IsInitialized();
185 
186  EXPCL_PYSTUB extern void *PyExc_AssertionError;
187  EXPCL_PYSTUB extern void *PyExc_AttributeError;
188  EXPCL_PYSTUB extern void *PyExc_BufferError;
189  EXPCL_PYSTUB extern void *PyExc_ConnectionError;
190  EXPCL_PYSTUB extern void *PyExc_Exception;
191  EXPCL_PYSTUB extern void *PyExc_FutureWarning;
192  EXPCL_PYSTUB extern void *PyExc_IndexError;
193  EXPCL_PYSTUB extern void *PyExc_RuntimeError;
194  EXPCL_PYSTUB extern void *PyExc_StandardError;
195  EXPCL_PYSTUB extern void *PyExc_StopIteration;
196  EXPCL_PYSTUB extern void *PyExc_SystemExit;
197  EXPCL_PYSTUB extern void *PyExc_TypeError;
198  EXPCL_PYSTUB extern void *PyExc_ValueError;
199  EXPCL_PYSTUB extern void *_PyThreadState_Current;
200  EXPCL_PYSTUB extern void *_Py_FalseStruct;
201  EXPCL_PYSTUB extern void *_Py_NoneStruct;
202  EXPCL_PYSTUB extern void *_Py_NotImplementedStruct;
203  EXPCL_PYSTUB extern void *_Py_TrueStruct;
204  EXPCL_PYSTUB extern void *_Py_ZeroStruct;
205 };
206 
207 
208 int PyArg_Parse(...) { return 0; };
209 int PyArg_ParseTuple(...) { return 0; }
210 int PyArg_ParseTupleAndKeywords(...) { return 0; }
211 int PyArg_UnpackTuple(...) { return 0; };
212 int PyBool_FromLong(...) { return 0; }
213 int PyBuffer_Release(...) { return 0; }
214 int PyBytes_AsString(...) { return 0; }
215 int PyBytes_AsStringAndSize(...) { return 0; }
216 int PyBytes_FromStringAndSize(...) { return 0; }
217 int PyBytes_Size(...) { return 0; }
218 int PyCFunction_New(...) { return 0; };
219 int PyCFunction_NewEx(...) { return 0; };
220 int PyCallable_Check(...) { return 0; }
221 int PyDict_DelItem(...) { return 0; }
222 int PyDict_DelItemString(...) { return 0; }
223 int PyDict_GetItem(...) { return 0; }
224 int PyDict_GetItemString(...) { return 0; }
225 int PyDict_New(...) { return 0; };
226 int PyDict_SetItem(...) { return 0; };
227 int PyDict_SetItemString(...) { return 0; };
228 int PyDict_Size(...){ return 0; }
229 int PyDict_Type(...) { return 0; };
230 int PyErr_Clear(...) { return 0; };
231 int PyErr_ExceptionMatches(...) { return 0; };
232 int PyErr_Fetch(...) { return 0; }
233 int PyErr_Format(...) { return 0; };
234 int PyErr_NoMemory(...) { return 0; }
235 int PyErr_Occurred(...) { return 0; }
236 int PyErr_Print(...) { return 0; }
237 int PyErr_Restore(...) { return 0; }
238 int PyErr_SetString(...) { return 0; }
239 int PyErr_Warn(...) { return 0; }
240 int PyErr_WarnEx(...) { return 0; }
241 int PyEval_CallFunction(...) { return 0; }
242 int PyEval_CallObjectWithKeywords(...) { return 0; }
243 int PyEval_InitThreads(...) { return 0; }
244 int PyEval_RestoreThread(...) { return 0; }
245 int PyEval_SaveThread(...) { return 0; }
246 int PyFloat_AsDouble(...) { return 0; }
247 int PyFloat_FromDouble(...) { return 0; }
248 int PyFloat_Type(...) { return 0; }
249 int PyGen_Check(...) { return 0; }
250 int PyGen_Type(...) { return 0; }
251 int PyGILState_Ensure(...) { return 0; }
252 int PyGILState_Release(...) { return 0; }
253 int PyImport_GetModuleDict(...) { return 0; }
254 int PyInt_AsLong(...) { return 0; }
255 int PyInt_AsSsize_t(...) { return 0; }
256 int PyInt_FromLong(...) { return 0; }
257 int PyInt_FromSize_t(...) { return 0; }
258 int PyInt_Type(...) { return 0; }
259 int PyList_Append(...) { return 0; }
260 int PyList_AsTuple(...) { return 0; }
261 int PyList_GetItem(...) { return 0; }
262 int PyList_New(...) { return 0; }
263 int PyList_SetItem(...) { return 0; }
264 int PyList_Type(...) { return 0; }
265 int PyLong_AsLong(...) { return 0; }
266 int PyLong_AsLongLong(...) { return 0; }
267 int PyLong_AsSsize_t(...) { return 0; }
268 int PyLong_AsUnsignedLong(...) { return 0; }
269 int PyLong_AsUnsignedLongLong(...) { return 0; }
270 int PyLong_FromLong(...) { return 0; }
271 int PyLong_FromLongLong(...) { return 0; }
272 int PyLong_FromSize_t(...) { return 0; }
273 int PyLong_FromUnsignedLong(...) { return 0; }
274 int PyLong_FromUnsignedLongLong(...) { return 0; }
275 int PyLong_Type(...) { return 0; }
276 int PyMapping_GetItemString(...) { return 0; }
277 int PyMem_Free(...) { return 0; }
278 int PyMemoryView_FromObject(...) { return 0; }
279 int PyModule_AddIntConstant(...) { return 0; };
280 int PyModule_AddObject(...) { return 0; };
281 int PyModule_AddStringConstant(...) { return 0; };
282 int PyModule_Create2(...) { return 0; };
283 int PyNumber_Check(...) { return 0; }
284 int PyNumber_Float(...) { return 0; }
285 int PyNumber_Int(...) { return 0; }
286 int PyNumber_Long(...) { return 0; }
287 int PyObject_ASCII(...) { return 0; }
288 int PyObject_Call(...) { return 0; }
289 int PyObject_CallFunction(...) { return 0; }
290 int PyObject_CallFunctionObjArgs(...) { return 0; }
291 int PyObject_CallMethod(...) { return 0; }
292 int PyObject_CallMethodObjArgs(...) { return 0; }
293 int PyObject_CallObject(...) { return 0; }
294 int PyObject_Cmp(...) { return 0; }
295 int PyObject_Compare(...) { return 0; }
296 int PyObject_Free(...) { return 0; }
297 int PyObject_GenericGetAttr(...) { return 0; };
298 int PyObject_GenericSetAttr(...) { return 0; };
299 int PyObject_GetAttrString(...) { return 0; }
300 int PyObject_GetBuffer(...) { return 0; }
301 int PyObject_HasAttrString(...) { return 0; }
302 int PyObject_IsInstance(...) { return 0; }
303 int PyObject_IsTrue(...) { return 0; }
304 int PyObject_Repr(...) { return 0; }
305 int PyObject_RichCompareBool(...) { return 0; }
306 int PyObject_SetAttrString(...) { return 0; }
307 int PyObject_Str(...) { return 0; }
308 int PyObject_Type(...) { return 0; }
309 int PySequence_Check(...) { return 0; }
310 int PySequence_Fast(...) { return 0; }
311 int PySequence_GetItem(...) { return 0; }
312 int PySequence_Size(...) { return 0; }
313 int PySequence_Tuple(...) { return 0; }
314 int PyString_AsString(...) { return 0; }
315 int PyString_AsStringAndSize(...) { return 0; }
316 int PyString_FromFormat(...) { return 0; }
317 int PyString_FromString(...) { return 0; }
318 int PyString_FromStringAndSize(...) { return 0; }
319 int PyString_InternFromString(...) { return 0; }
320 int PyString_InternInPlace(...) { return 0; }
321 int PyString_Size(...) { return 0; }
322 int PyString_Type(...) { return 0; }
323 int PySys_GetObject(...) { return 0; }
324 int PyThreadState_Clear(...) { return 0; }
325 int PyThreadState_Delete(...) { return 0; }
326 int PyThreadState_Get(...) { return 0; }
327 int PyThreadState_New(...) { return 0; }
328 int PyThreadState_Swap(...) { return 0; }
329 int PyTuple_GetItem(...) { return 0; }
330 int PyTuple_New(...) { return 0; }
331 int PyTuple_Pack(...) { return 0; }
332 int PyTuple_Size(...) { return 0; };
333 int PyTuple_Type(...) { return 0; };
334 int PyType_GenericAlloc(...) { return 0; };
335 int PyType_IsSubtype(...) { return 0; }
336 int PyType_Ready(...) { return 0; };
337 int PyUnicodeUCS2_FromStringAndSize(...) { return 0; }
338 int PyUnicodeUCS2_FromWideChar(...) { return 0; }
339 int PyUnicodeUCS2_AsWideChar(...) { return 0; }
340 int PyUnicodeUCS2_GetSize(...) { return 0; }
341 int PyUnicodeUCS4_FromStringAndSize(...) { return 0; }
342 int PyUnicodeUCS4_FromWideChar(...) { return 0; }
343 int PyUnicodeUCS4_AsWideChar(...) { return 0; }
344 int PyUnicodeUCS4_GetSize(...) { return 0; }
345 int PyUnicode_AsUTF8(...) { return 0; }
346 int PyUnicode_AsUTF8AndSize(...) { return 0; }
347 int PyUnicode_AsWideChar(...) { return 0; }
348 int PyUnicode_AsWideCharString(...) { return 0; }
349 int PyUnicode_FromFormat(...) { return 0; }
350 int PyUnicode_FromString(...) { return 0; }
351 int PyUnicode_FromStringAndSize(...) { return 0; }
352 int PyUnicode_FromWideChar(...) { return 0; }
353 int PyUnicode_GetSize(...) { return 0; }
354 int PyUnicode_InternFromString(...) { return 0; }
355 int PyUnicode_InternInPlace(...) { return 0; }
356 int PyUnicode_Type(...) { return 0; }
357 int Py_BuildValue(...) { return 0; }
358 int Py_InitModule4(...) { return 0; }
359 int Py_InitModule4_64(...) { return 0; }
360 int Py_InitModule4TraceRefs(...) { return 0; };
361 int _PyArg_ParseTuple_SizeT(...) { return 0; };
362 int _PyArg_ParseTupleAndKeywords_SizeT(...) { return 0; };
363 int _PyArg_Parse_SizeT(...) { return 0; };
364 int _PyObject_CallFunction_SizeT(...) { return 0; };
365 int _PyObject_CallMethod_SizeT(...) { return 0; };
366 int _PyObject_DebugFree(...) { return 0; };
367 int _PyObject_Del(...) { return 0; };
368 int _Py_BuildValue_SizeT(...) { return 0; };
369 int _Py_Dealloc(...) { return 0; };
370 int _Py_NegativeRefcount(...) { return 0; };
371 int _Py_RefTotal(...) { return 0; };
372 
373 // We actually might call this one.
374 void Py_Initialize() {
375 }
376 int Py_IsInitialized() {
377  return 0;
378 }
379 
380 
381 void *PyExc_AssertionError = (void *)NULL;
382 void *PyExc_AttributeError = (void *)NULL;
383 void *PyExc_BufferError = (void *)NULL;
384 void *PyExc_ConnectionError = (void *)NULL;
385 void *PyExc_Exception = (void *)NULL;
386 void *PyExc_FutureWarning = (void *)NULL;
387 void *PyExc_IndexError = (void *)NULL;
388 void *PyExc_RuntimeError = (void *)NULL;
389 void *PyExc_StandardError = (void *)NULL;
390 void *PyExc_StopIteration = (void *)NULL;
391 void *PyExc_SystemExit = (void *)NULL;
392 void *PyExc_TypeError = (void *)NULL;
393 void *PyExc_ValueError = (void *)NULL;
394 void *_PyThreadState_Current = (void *)NULL;
395 void *_Py_FalseStruct = (void *)NULL;
396 void *_Py_NoneStruct = (void *)NULL;
397 void *_Py_NotImplementedStruct = (void *)NULL;
398 void *_Py_TrueStruct = (void *)NULL;
399 void *_Py_ZeroStruct = (void *)NULL;
400 
401 
402 void
403 pystub() {
404 }