]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Include/pythonrun.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Include / pythonrun.h
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Include/pythonrun.h b/AppPkg/Applications/Python/Python-2.7.2/Include/pythonrun.h
deleted file mode 100644 (file)
index 7584ee5..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-\r
-/* Interfaces to parse and execute pieces of python code */\r
-\r
-#ifndef Py_PYTHONRUN_H\r
-#define Py_PYTHONRUN_H\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \\r
-                   CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \\r
-                   CO_FUTURE_UNICODE_LITERALS)\r
-#define PyCF_MASK_OBSOLETE (CO_NESTED)\r
-#define PyCF_SOURCE_IS_UTF8  0x0100\r
-#define PyCF_DONT_IMPLY_DEDENT 0x0200\r
-#define PyCF_ONLY_AST 0x0400\r
-\r
-typedef struct {\r
-    int cf_flags;  /* bitmask of CO_xxx flags relevant to future */\r
-} PyCompilerFlags;\r
-\r
-PyAPI_FUNC(void) Py_SetProgramName(char *);\r
-PyAPI_FUNC(char *) Py_GetProgramName(void);\r
-\r
-PyAPI_FUNC(void) Py_SetPythonHome(char *);\r
-PyAPI_FUNC(char *) Py_GetPythonHome(void);\r
-\r
-PyAPI_FUNC(void) Py_Initialize(void);\r
-PyAPI_FUNC(void) Py_InitializeEx(int);\r
-PyAPI_FUNC(void) Py_Finalize(void);\r
-PyAPI_FUNC(int) Py_IsInitialized(void);\r
-PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);\r
-PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);\r
-\r
-PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *);\r
-PyAPI_FUNC(int) PyRun_AnyFileExFlags(FILE *, const char *, int, PyCompilerFlags *);\r
-PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);\r
-PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *);\r
-PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);\r
-PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *);\r
-\r
-PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *,\r
-                                                 int, PyCompilerFlags *flags,\r
-                                                 PyArena *);\r
-PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int,\r
-                                               char *, char *,\r
-                                               PyCompilerFlags *, int *,\r
-                                               PyArena *);\r
-#define PyParser_SimpleParseString(S, B) \\r
-    PyParser_SimpleParseStringFlags(S, B, 0)\r
-#define PyParser_SimpleParseFile(FP, S, B) \\r
-    PyParser_SimpleParseFileFlags(FP, S, B, 0)\r
-PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int,\r
-                                                          int);\r
-PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,\r
-                                                        int, int);\r
-\r
-PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *,\r
-                                         PyObject *, PyCompilerFlags *);\r
-\r
-PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int,\r
-                                         PyObject *, PyObject *, int,\r
-                                         PyCompilerFlags *);\r
-\r
-#define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL)\r
-PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int,\r
-                                             PyCompilerFlags *);\r
-PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int);\r
-\r
-PyAPI_FUNC(void) PyErr_Print(void);\r
-PyAPI_FUNC(void) PyErr_PrintEx(int);\r
-PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);\r
-\r
-PyAPI_FUNC(int) Py_AtExit(void (*func)(void));\r
-\r
-PyAPI_FUNC(void) Py_Exit(int);\r
-\r
-PyAPI_FUNC(int) Py_FdIsInteractive(FILE *, const char *);\r
-\r
-/* Bootstrap */\r
-PyAPI_FUNC(int) Py_Main(int argc, char **argv);\r
-\r
-/* Use macros for a bunch of old variants */\r
-#define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL)\r
-#define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL)\r
-#define PyRun_AnyFileEx(fp, name, closeit) \\r
-    PyRun_AnyFileExFlags(fp, name, closeit, NULL)\r
-#define PyRun_AnyFileFlags(fp, name, flags) \\r
-    PyRun_AnyFileExFlags(fp, name, 0, flags)\r
-#define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL)\r
-#define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL)\r
-#define PyRun_SimpleFileEx(f, p, c) PyRun_SimpleFileExFlags(f, p, c, NULL)\r
-#define PyRun_InteractiveOne(f, p) PyRun_InteractiveOneFlags(f, p, NULL)\r
-#define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL)\r
-#define PyRun_File(fp, p, s, g, l) \\r
-    PyRun_FileExFlags(fp, p, s, g, l, 0, NULL)\r
-#define PyRun_FileEx(fp, p, s, g, l, c) \\r
-    PyRun_FileExFlags(fp, p, s, g, l, c, NULL)\r
-#define PyRun_FileFlags(fp, p, s, g, l, flags) \\r
-    PyRun_FileExFlags(fp, p, s, g, l, 0, flags)\r
-\r
-/* In getpath.c */\r
-PyAPI_FUNC(char *) Py_GetProgramFullPath(void);\r
-PyAPI_FUNC(char *) Py_GetPrefix(void);\r
-PyAPI_FUNC(char *) Py_GetExecPrefix(void);\r
-PyAPI_FUNC(char *) Py_GetPath(void);\r
-\r
-/* In their own files */\r
-PyAPI_FUNC(const char *) Py_GetVersion(void);\r
-PyAPI_FUNC(const char *) Py_GetPlatform(void);\r
-PyAPI_FUNC(const char *) Py_GetCopyright(void);\r
-PyAPI_FUNC(const char *) Py_GetCompiler(void);\r
-PyAPI_FUNC(const char *) Py_GetBuildInfo(void);\r
-PyAPI_FUNC(const char *) _Py_svnversion(void);\r
-PyAPI_FUNC(const char *) Py_SubversionRevision(void);\r
-PyAPI_FUNC(const char *) Py_SubversionShortBranch(void);\r
-PyAPI_FUNC(const char *) _Py_hgidentifier(void);\r
-PyAPI_FUNC(const char *) _Py_hgversion(void);\r
-\r
-/* Internal -- various one-time initializations */\r
-PyAPI_FUNC(PyObject *) _PyBuiltin_Init(void);\r
-PyAPI_FUNC(PyObject *) _PySys_Init(void);\r
-PyAPI_FUNC(void) _PyImport_Init(void);\r
-PyAPI_FUNC(void) _PyExc_Init(void);\r
-PyAPI_FUNC(void) _PyImportHooks_Init(void);\r
-PyAPI_FUNC(int) _PyFrame_Init(void);\r
-PyAPI_FUNC(int) _PyInt_Init(void);\r
-PyAPI_FUNC(int) _PyLong_Init(void);\r
-PyAPI_FUNC(void) _PyFloat_Init(void);\r
-PyAPI_FUNC(int) PyByteArray_Init(void);\r
-\r
-/* Various internal finalizers */\r
-PyAPI_FUNC(void) _PyExc_Fini(void);\r
-PyAPI_FUNC(void) _PyImport_Fini(void);\r
-PyAPI_FUNC(void) PyMethod_Fini(void);\r
-PyAPI_FUNC(void) PyFrame_Fini(void);\r
-PyAPI_FUNC(void) PyCFunction_Fini(void);\r
-PyAPI_FUNC(void) PyDict_Fini(void);\r
-PyAPI_FUNC(void) PyTuple_Fini(void);\r
-PyAPI_FUNC(void) PyList_Fini(void);\r
-PyAPI_FUNC(void) PySet_Fini(void);\r
-PyAPI_FUNC(void) PyString_Fini(void);\r
-PyAPI_FUNC(void) PyInt_Fini(void);\r
-PyAPI_FUNC(void) PyFloat_Fini(void);\r
-PyAPI_FUNC(void) PyOS_FiniInterrupts(void);\r
-PyAPI_FUNC(void) PyByteArray_Fini(void);\r
-\r
-/* Stuff with no proper home (yet) */\r
-PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *);\r
-PyAPI_DATA(int) (*PyOS_InputHook)(void);\r
-PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *);\r
-PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;\r
-\r
-/* Stack size, in "pointers" (so we get extra safety margins\r
-   on 64-bit platforms).  On a 32-bit platform, this translates\r
-   to a 8k margin. */\r
-#define PYOS_STACK_MARGIN 2048\r
-\r
-#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300\r
-/* Enable stack checking under Microsoft C */\r
-#define USE_STACKCHECK\r
-#endif\r
-\r
-#ifdef USE_STACKCHECK\r
-/* Check that we aren't overflowing our stack */\r
-PyAPI_FUNC(int) PyOS_CheckStack(void);\r
-#endif\r
-\r
-/* Signals */\r
-typedef void (*PyOS_sighandler_t)(int);\r
-PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int);\r
-PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);\r
-\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-#endif /* !Py_PYTHONRUN_H */\r