PageRenderTime 63ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/dtool/src/pystub/pystub.cxx

https://bitbucket.org/unkier/panda3d
C++ | 304 lines | 278 code | 12 blank | 14 comment | 0 complexity | 6664755a01dfcd93ecf0562a420dc63e MD5 | raw file
Possible License(s): BSD-3-Clause
  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. #include "pystub.h"
  15. extern "C" {
  16. EXPCL_PYSTUB int PyArg_Parse(...);
  17. EXPCL_PYSTUB int PyArg_ParseTuple(...);
  18. EXPCL_PYSTUB int PyArg_ParseTupleAndKeywords(...);
  19. EXPCL_PYSTUB int PyBool_FromLong(...);
  20. EXPCL_PYSTUB int PyCFunction_New(...);
  21. EXPCL_PYSTUB int PyCFunction_NewEx(...);
  22. EXPCL_PYSTUB int PyCallable_Check(...);
  23. EXPCL_PYSTUB int PyDict_DelItemString(...);
  24. EXPCL_PYSTUB int PyDict_GetItem(...);
  25. EXPCL_PYSTUB int PyDict_GetItemString(...);
  26. EXPCL_PYSTUB int PyDict_New(...);
  27. EXPCL_PYSTUB int PyDict_SetItem(...);
  28. EXPCL_PYSTUB int PyDict_SetItemString(...);
  29. EXPCL_PYSTUB int PyDict_Size(...);
  30. EXPCL_PYSTUB int PyDict_Type(...);
  31. EXPCL_PYSTUB int PyErr_Clear(...);
  32. EXPCL_PYSTUB int PyErr_ExceptionMatches(...);
  33. EXPCL_PYSTUB int PyErr_Fetch(...);
  34. EXPCL_PYSTUB int PyErr_Format(...);
  35. EXPCL_PYSTUB int PyErr_Occurred(...);
  36. EXPCL_PYSTUB int PyErr_Print(...);
  37. EXPCL_PYSTUB int PyErr_Restore(...);
  38. EXPCL_PYSTUB int PyErr_SetString(...);
  39. EXPCL_PYSTUB int PyErr_Warn(...);
  40. EXPCL_PYSTUB int PyErr_WarnEx(...);
  41. EXPCL_PYSTUB int PyEval_CallFunction(...);
  42. EXPCL_PYSTUB int PyEval_CallObjectWithKeywords(...);
  43. EXPCL_PYSTUB int PyEval_InitThreads(...);
  44. EXPCL_PYSTUB int PyEval_RestoreThread(...);
  45. EXPCL_PYSTUB int PyEval_SaveThread(...);
  46. EXPCL_PYSTUB int PyFloat_AsDouble(...);
  47. EXPCL_PYSTUB int PyFloat_FromDouble(...);
  48. EXPCL_PYSTUB int PyFloat_Type(...);
  49. EXPCL_PYSTUB int PyGen_Check(...);
  50. EXPCL_PYSTUB int PyGen_Type(...);
  51. EXPCL_PYSTUB int PyGILState_Ensure(...);
  52. EXPCL_PYSTUB int PyGILState_Release(...);
  53. EXPCL_PYSTUB int PyImport_GetModuleDict(...);
  54. EXPCL_PYSTUB int PyInt_AsLong(...);
  55. EXPCL_PYSTUB int PyInt_AsSsize_t(...);
  56. EXPCL_PYSTUB int PyInt_FromLong(...);
  57. EXPCL_PYSTUB int PyInt_Type(...);
  58. EXPCL_PYSTUB int PyList_Append(...);
  59. EXPCL_PYSTUB int PyList_AsTuple(...);
  60. EXPCL_PYSTUB int PyList_GetItem(...);
  61. EXPCL_PYSTUB int PyList_New(...);
  62. EXPCL_PYSTUB int PyList_SetItem(...);
  63. EXPCL_PYSTUB int PyList_Type(...);
  64. EXPCL_PYSTUB int PyLong_AsLong(...);
  65. EXPCL_PYSTUB int PyLong_AsLongLong(...);
  66. EXPCL_PYSTUB int PyLong_AsUnsignedLong(...);
  67. EXPCL_PYSTUB int PyLong_AsUnsignedLongLong(...);
  68. EXPCL_PYSTUB int PyLong_FromLong(...);
  69. EXPCL_PYSTUB int PyLong_FromLongLong(...);
  70. EXPCL_PYSTUB int PyLong_FromUnsignedLong(...);
  71. EXPCL_PYSTUB int PyLong_FromUnsignedLongLong(...);
  72. EXPCL_PYSTUB int PyLong_Type(...);
  73. EXPCL_PYSTUB int PyMapping_GetItemString(...);
  74. EXPCL_PYSTUB int PyModule_AddIntConstant(...);
  75. EXPCL_PYSTUB int PyModule_AddObject(...);
  76. EXPCL_PYSTUB int PyModule_AddStringConstant(...);
  77. EXPCL_PYSTUB int PyNumber_Float(...);
  78. EXPCL_PYSTUB int PyNumber_Long(...);
  79. EXPCL_PYSTUB int PyObject_Call(...);
  80. EXPCL_PYSTUB int PyObject_CallFunction(...);
  81. EXPCL_PYSTUB int PyObject_CallMethod(...);
  82. EXPCL_PYSTUB int PyObject_CallMethodObjArgs(...);
  83. EXPCL_PYSTUB int PyObject_CallObject(...);
  84. EXPCL_PYSTUB int PyObject_Cmp(...);
  85. EXPCL_PYSTUB int PyObject_Compare(...);
  86. EXPCL_PYSTUB int PyObject_Free(...);
  87. EXPCL_PYSTUB int PyObject_GenericGetAttr(...);
  88. EXPCL_PYSTUB int PyObject_GenericSetAttr(...);
  89. EXPCL_PYSTUB int PyObject_GetAttrString(...);
  90. EXPCL_PYSTUB int PyObject_HasAttrString(...);
  91. EXPCL_PYSTUB int PyObject_IsInstance(...);
  92. EXPCL_PYSTUB int PyObject_IsTrue(...);
  93. EXPCL_PYSTUB int PyObject_Repr(...);
  94. EXPCL_PYSTUB int PyObject_SetAttrString(...);
  95. EXPCL_PYSTUB int PyObject_Str(...);
  96. EXPCL_PYSTUB int PyObject_Type(...);
  97. EXPCL_PYSTUB int PySequence_Check(...);
  98. EXPCL_PYSTUB int PySequence_Fast(...);
  99. EXPCL_PYSTUB int PySequence_GetItem(...);
  100. EXPCL_PYSTUB int PySequence_Size(...);
  101. EXPCL_PYSTUB int PySequence_Tuple(...);
  102. EXPCL_PYSTUB int PyString_AsString(...);
  103. EXPCL_PYSTUB int PyString_AsStringAndSize(...);
  104. EXPCL_PYSTUB int PyString_FromString(...);
  105. EXPCL_PYSTUB int PyString_FromStringAndSize(...);
  106. EXPCL_PYSTUB int PyString_Size(...);
  107. EXPCL_PYSTUB int PyString_Type(...);
  108. EXPCL_PYSTUB int PySys_GetObject(...);
  109. EXPCL_PYSTUB int PyThreadState_Clear(...);
  110. EXPCL_PYSTUB int PyThreadState_Delete(...);
  111. EXPCL_PYSTUB int PyThreadState_Get(...);
  112. EXPCL_PYSTUB int PyThreadState_New(...);
  113. EXPCL_PYSTUB int PyThreadState_Swap(...);
  114. EXPCL_PYSTUB int PyTuple_GetItem(...);
  115. EXPCL_PYSTUB int PyTuple_New(...);
  116. EXPCL_PYSTUB int PyTuple_Pack(...);
  117. EXPCL_PYSTUB int PyTuple_Size(...);
  118. EXPCL_PYSTUB int PyTuple_Type(...);
  119. EXPCL_PYSTUB int PyType_GenericAlloc(...);
  120. EXPCL_PYSTUB int PyType_IsSubtype(...);
  121. EXPCL_PYSTUB int PyType_Ready(...);
  122. EXPCL_PYSTUB int PyUnicodeUCS2_FromWideChar(...);
  123. EXPCL_PYSTUB int PyUnicodeUCS2_AsWideChar(...);
  124. EXPCL_PYSTUB int PyUnicodeUCS2_GetSize(...);
  125. EXPCL_PYSTUB int PyUnicodeUCS4_FromWideChar(...);
  126. EXPCL_PYSTUB int PyUnicodeUCS4_AsWideChar(...);
  127. EXPCL_PYSTUB int PyUnicodeUCS4_GetSize(...);
  128. EXPCL_PYSTUB int PyUnicode_Type(...);
  129. EXPCL_PYSTUB int Py_BuildValue(...);
  130. EXPCL_PYSTUB int Py_InitModule4(...);
  131. EXPCL_PYSTUB int Py_InitModule4_64(...);
  132. EXPCL_PYSTUB int Py_InitModule4TraceRefs(...);
  133. EXPCL_PYSTUB int _PyObject_DebugFree(...);
  134. EXPCL_PYSTUB int _PyObject_Del(...);
  135. EXPCL_PYSTUB int _Py_Dealloc(...);
  136. EXPCL_PYSTUB int _Py_NegativeRefcount(...);
  137. EXPCL_PYSTUB int _Py_RefTotal(...);
  138. EXPCL_PYSTUB int Py_IsInitialized();
  139. EXPCL_PYSTUB extern void *PyExc_AssertionError;
  140. EXPCL_PYSTUB extern void *PyExc_AttributeError;
  141. EXPCL_PYSTUB extern void *PyExc_FutureWarning;
  142. EXPCL_PYSTUB extern void *PyExc_IndexError;
  143. EXPCL_PYSTUB extern void *PyExc_RuntimeError;
  144. EXPCL_PYSTUB extern void *PyExc_StandardError;
  145. EXPCL_PYSTUB extern void *PyExc_StopIteration;
  146. EXPCL_PYSTUB extern void *PyExc_SystemExit;
  147. EXPCL_PYSTUB extern void *PyExc_TypeError;
  148. EXPCL_PYSTUB extern void *PyExc_ValueError;
  149. EXPCL_PYSTUB extern void *_Py_NoneStruct;
  150. EXPCL_PYSTUB extern void *_Py_NotImplementedStruct;
  151. };
  152. int PyArg_Parse(...) { return 0; };
  153. int PyArg_ParseTuple(...) { return 0; }
  154. int PyArg_ParseTupleAndKeywords(...) { return 0; }
  155. int PyBool_FromLong(...) { return 0; }
  156. int PyCFunction_New(...) { return 0; };
  157. int PyCFunction_NewEx(...) { return 0; };
  158. int PyCallable_Check(...) { return 0; }
  159. int PyDict_DelItemString(...) { return 0; }
  160. int PyDict_GetItem(...) { return 0; }
  161. int PyDict_GetItemString(...) { return 0; }
  162. int PyDict_New(...) { return 0; };
  163. int PyDict_SetItem(...) { return 0; };
  164. int PyDict_SetItemString(...) { return 0; };
  165. int PyDict_Size(...){ return 0; }
  166. int PyDict_Type(...) { return 0; };
  167. int PyErr_Clear(...) { return 0; };
  168. int PyErr_ExceptionMatches(...) { return 0; };
  169. int PyErr_Fetch(...) { return 0; }
  170. int PyErr_Format(...) { return 0; };
  171. int PyErr_Occurred(...) { return 0; }
  172. int PyErr_Print(...) { return 0; }
  173. int PyErr_Restore(...) { return 0; }
  174. int PyErr_SetString(...) { return 0; }
  175. int PyErr_Warn(...) { return 0; }
  176. int PyErr_WarnEx(...) { return 0; }
  177. int PyEval_CallFunction(...) { return 0; }
  178. int PyEval_CallObjectWithKeywords(...) { return 0; }
  179. int PyEval_InitThreads(...) { return 0; }
  180. int PyEval_RestoreThread(...) { return 0; }
  181. int PyEval_SaveThread(...) { return 0; }
  182. int PyFloat_AsDouble(...) { return 0; }
  183. int PyFloat_FromDouble(...) { return 0; }
  184. int PyFloat_Type(...) { return 0; }
  185. int PyGen_Check(...) { return 0; }
  186. int PyGen_Type(...) { return 0; }
  187. int PyGILState_Ensure(...) { return 0; }
  188. int PyGILState_Release(...) { return 0; }
  189. int PyImport_GetModuleDict(...) { return 0; }
  190. int PyInt_AsLong(...) { return 0; }
  191. int PyInt_AsSsize_t(...) { return 0; }
  192. int PyInt_FromLong(...) { return 0; }
  193. int PyInt_Type(...) { return 0; }
  194. int PyList_Append(...) { return 0; }
  195. int PyList_AsTuple(...) { return 0; }
  196. int PyList_GetItem(...) { return 0; }
  197. int PyList_New(...) { return 0; }
  198. int PyList_SetItem(...) { return 0; }
  199. int PyList_Type(...) { return 0; }
  200. int PyLong_AsLong(...) { return 0; }
  201. int PyLong_AsLongLong(...) { return 0; }
  202. int PyLong_AsUnsignedLong(...) { return 0; }
  203. int PyLong_AsUnsignedLongLong(...) { return 0; }
  204. int PyLong_FromLong(...) { return 0; }
  205. int PyLong_FromLongLong(...) { return 0; }
  206. int PyLong_FromUnsignedLong(...) { return 0; }
  207. int PyLong_FromUnsignedLongLong(...) { return 0; }
  208. int PyLong_Type(...) { return 0; }
  209. int PyMapping_GetItemString(...) { return 0; }
  210. int PyModule_AddIntConstant(...) { return 0; };
  211. int PyModule_AddObject(...) { return 0; };
  212. int PyModule_AddStringConstant(...) { return 0; };
  213. int PyNumber_Float(...) { return 0; }
  214. int PyNumber_Long(...) { return 0; }
  215. int PyObject_Call(...) { return 0; }
  216. int PyObject_CallFunction(...) { return 0; }
  217. int PyObject_CallMethod(...) { return 0; }
  218. int PyObject_CallMethodObjArgs(...) { return 0; }
  219. int PyObject_CallObject(...) { return 0; }
  220. int PyObject_Cmp(...) { return 0; }
  221. int PyObject_Compare(...) { return 0; }
  222. int PyObject_Free(...) { return 0; }
  223. int PyObject_GenericGetAttr(...) { return 0; };
  224. int PyObject_GenericSetAttr(...) { return 0; };
  225. int PyObject_GetAttrString(...) { return 0; }
  226. int PyObject_HasAttrString(...) { return 0; }
  227. int PyObject_IsInstance(...) { return 0; }
  228. int PyObject_IsTrue(...) { return 0; }
  229. int PyObject_Repr(...) { return 0; }
  230. int PyObject_SetAttrString(...) { return 0; }
  231. int PyObject_Str(...) { return 0; }
  232. int PyObject_Type(...) { return 0; }
  233. int PySequence_Check(...) { return 0; }
  234. int PySequence_Fast(...) { return 0; }
  235. int PySequence_GetItem(...) { return 0; }
  236. int PySequence_Size(...) { return 0; }
  237. int PySequence_Tuple(...) { return 0; }
  238. int PyString_AsString(...) { return 0; }
  239. int PyString_AsStringAndSize(...) { return 0; }
  240. int PyString_FromString(...) { return 0; }
  241. int PyString_FromStringAndSize(...) { return 0; }
  242. int PyString_Size(...) { return 0; }
  243. int PyString_Type(...) { return 0; }
  244. int PySys_GetObject(...) { return 0; }
  245. int PyThreadState_Clear(...) { return 0; }
  246. int PyThreadState_Delete(...) { return 0; }
  247. int PyThreadState_Get(...) { return 0; }
  248. int PyThreadState_New(...) { return 0; }
  249. int PyThreadState_Swap(...) { return 0; }
  250. int PyTuple_GetItem(...) { return 0; }
  251. int PyTuple_New(...) { return 0; }
  252. int PyTuple_Pack(...) { return 0; }
  253. int PyTuple_Size(...) { return 0; };
  254. int PyTuple_Type(...) { return 0; };
  255. int PyType_GenericAlloc(...) { return 0; };
  256. int PyType_IsSubtype(...) { return 0; }
  257. int PyType_Ready(...) { return 0; };
  258. int PyUnicodeUCS2_FromWideChar(...) { return 0; }
  259. int PyUnicodeUCS2_AsWideChar(...) { return 0; }
  260. int PyUnicodeUCS2_GetSize(...) { return 0; }
  261. int PyUnicodeUCS4_FromWideChar(...) { return 0; }
  262. int PyUnicodeUCS4_AsWideChar(...) { return 0; }
  263. int PyUnicodeUCS4_GetSize(...) { return 0; }
  264. int PyUnicode_Type(...) { return 0; }
  265. int Py_BuildValue(...) { return 0; }
  266. int Py_InitModule4(...) { return 0; }
  267. int Py_InitModule4_64(...) { return 0; }
  268. int Py_InitModule4TraceRefs(...) { return 0; };
  269. int _PyObject_DebugFree(...) { return 0; };
  270. int _PyObject_Del(...) { return 0; };
  271. int _Py_Dealloc(...) { return 0; };
  272. int _Py_NegativeRefcount(...) { return 0; };
  273. int _Py_RefTotal(...) { return 0; };
  274. // We actually might call this one.
  275. int Py_IsInitialized() {
  276. return 0;
  277. }
  278. void *PyExc_AssertionError = (void *)NULL;
  279. void *PyExc_AttributeError = (void *)NULL;
  280. void *PyExc_FutureWarning = (void *)NULL;
  281. void *PyExc_IndexError = (void *)NULL;
  282. void *PyExc_RuntimeError = (void *)NULL;
  283. void *PyExc_StandardError = (void *)NULL;
  284. void *PyExc_StopIteration = (void *)NULL;
  285. void *PyExc_SystemExit = (void *)NULL;
  286. void *PyExc_TypeError = (void *)NULL;
  287. void *PyExc_ValueError = (void *)NULL;
  288. void *_Py_NoneStruct = (void *)NULL;
  289. void *_Py_NotImplementedStruct = (void *)NULL;
  290. void
  291. pystub() {
  292. }