PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/py2exe/source/import-tab.h

https://bitbucket.org/briancurtin/py2exe3
C++ Header | 56 lines | 56 code | 0 blank | 0 comment | 0 complexity | 1c41cb35b809e326617183e12da51ed9 MD5 | raw file
  1. #define Py_Initialize ((void(*)(void))imports[0].proc)
  2. #define PyRun_SimpleString ((int(*)(char *))imports[1].proc)
  3. #define Py_Finalize ((void(*)(void))imports[2].proc)
  4. #define Py_GetPath ((char *(*)(void))imports[3].proc)
  5. #define Py_SetPythonHome ((void(*)(char *))imports[4].proc)
  6. #define Py_SetProgramName ((void(*)(char *))imports[5].proc)
  7. #define PyMarshal_ReadObjectFromString ((PyObject *(*)(char *, Py_ssize_t))imports[6].proc)
  8. #define PyObject_CallFunction ((PyObject *(*)(PyObject *, char *, ...))imports[7].proc)
  9. #define PyString_AsStringAndSize ((int(*)(PyObject *, char **, Py_ssize_t *))imports[8].proc)
  10. #define PyString_AsString ((char *(*)(PyObject *))imports[9].proc)
  11. #define PyArg_ParseTuple ((int(*)(PyObject *, char *, ...))imports[10].proc)
  12. #define PyErr_Format ((PyObject *(*)(PyObject *, const char *, ...))imports[11].proc)
  13. #define PyImport_ImportModule ((PyObject *(*)(char *))imports[12].proc)
  14. #define PyInt_FromLong ((PyObject *(*)(long))imports[13].proc)
  15. #define PyInt_AsLong ((long(*)(PyObject *))imports[14].proc)
  16. #define PyLong_FromVoidPtr ((PyObject *(*)(void *))imports[15].proc)
  17. #define Py_InitModule4 ((PyObject *(*)(char *, PyMethodDef *, char *, PyObject *, int))imports[16].proc)
  18. #define PyTuple_New ((PyObject *(*)(Py_ssize_t))imports[17].proc)
  19. #define PyTuple_SetItem ((int(*)(PyObject*, Py_ssize_t, PyObject *))imports[18].proc)
  20. #define Py_IsInitialized ((int(*)(void))imports[19].proc)
  21. #define PyObject_SetAttrString ((int(*)(PyObject *, char *, PyObject *))imports[20].proc)
  22. #define PyCFunction_NewEx ((PyObject *(*)(PyMethodDef *, PyObject *, PyObject *))imports[21].proc)
  23. #define PyObject_GetAttrString ((PyObject *(*)(PyObject *, char *))imports[22].proc)
  24. #define Py_BuildValue ((PyObject *(*)(char *, ...))imports[23].proc)
  25. #define PyObject_Call ((PyObject *(*)(PyObject *, PyObject *, PyObject *))imports[24].proc)
  26. #define PySys_WriteStderr ((void(*)(const char *, ...))imports[25].proc)
  27. #define PyErr_Occurred ((PyObject *(*)(void))imports[26].proc)
  28. #define PyErr_Clear ((void(*)(void))imports[27].proc)
  29. #define PyObject_IsInstance ((int(*)(PyObject *, PyObject *))imports[28].proc)
  30. #define PyInt_Type (*(PyObject(*))imports[29].proc)
  31. #define _Py_NoneStruct (*(PyObject(*))imports[30].proc)
  32. #define PyExc_ImportError (*(PyObject *(*))imports[31].proc)
  33. #define _Py_PackageContext (*(char *(*))imports[32].proc)
  34. #define PyGILState_Ensure ((PyGILState_STATE(*)(void))imports[33].proc)
  35. #define PyGILState_Release ((void(*)(PyGILState_STATE))imports[34].proc)
  36. #define PySys_SetObject ((void(*)(char *, PyObject *))imports[35].proc)
  37. #define PySys_GetObject ((PyObject *(*)(char *))imports[36].proc)
  38. #define PyString_FromString ((PyObject *(*)(char *))imports[37].proc)
  39. #define Py_FdIsInteractive ((int(*)(FILE *, char *))imports[38].proc)
  40. #define PyRun_InteractiveLoop ((int(*)(FILE *, char *))imports[39].proc)
  41. #define PySys_SetArgv ((void(*)(int, char **))imports[40].proc)
  42. #define PyImport_AddModule ((PyObject *(*)(char *))imports[41].proc)
  43. #define PyModule_GetDict ((PyObject *(*)(PyObject *))imports[42].proc)
  44. #define PySequence_Length ((Py_ssize_t(*)(PyObject *))imports[43].proc)
  45. #define PySequence_GetItem ((PyObject *(*)(PyObject *, Py_ssize_t))imports[44].proc)
  46. #define PyEval_EvalCode ((PyObject *(*)(PyCodeObject *, PyObject *, PyObject *))imports[45].proc)
  47. #define PyErr_Print ((void(*)(void))imports[46].proc)
  48. #define PyBool_FromLong ((PyObject *(*)(long))imports[47].proc)
  49. #define Py_VerboseFlag (*(int(*))imports[48].proc)
  50. #define Py_NoSiteFlag (*(int(*))imports[49].proc)
  51. #define Py_OptimizeFlag (*(int(*))imports[50].proc)
  52. #define Py_IgnoreEnvironmentFlag (*(int(*))imports[51].proc)
  53. #define PyObject_Str ((PyObject *(*)(PyObject *))imports[52].proc)
  54. #define PyList_New ((PyObject *(*)(Py_ssize_t))imports[53].proc)
  55. #define PyList_SetItem ((int(*)(PyObject *, Py_ssize_t, PyObject *))imports[54].proc)
  56. #define PyList_Append ((int(*)(PyObject *, PyObject *))imports[55].proc)