Changeset 388 for python/vendor/current/Include/pythonrun.h
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Include/pythonrun.h
r2 r388 17 17 18 18 typedef struct { 19 19 int cf_flags; /* bitmask of CO_xxx flags relevant to future */ 20 20 } PyCompilerFlags; 21 21 … … 40 40 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *); 41 41 42 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, 43 42 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, 43 int, PyCompilerFlags *flags, 44 44 PyArena *); 45 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int, 46 45 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int, 46 char *, char *, 47 47 PyCompilerFlags *, int *, 48 48 PyArena *); 49 49 #define PyParser_SimpleParseString(S, B) \ 50 50 PyParser_SimpleParseStringFlags(S, B, 0) 51 51 #define PyParser_SimpleParseFile(FP, S, B) \ 52 53 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, 54 52 PyParser_SimpleParseFileFlags(FP, S, B, 0) 53 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, 54 int); 55 55 PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *, 56 56 int, int); 57 57 58 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *, 59 58 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *, 59 PyObject *, PyCompilerFlags *); 60 60 61 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, 62 PyObject *, PyObject *, int, 63 61 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, 62 PyObject *, PyObject *, int, 63 PyCompilerFlags *); 64 64 65 65 #define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL) 66 66 PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int, 67 67 PyCompilerFlags *); 68 68 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int); 69 69 … … 85 85 #define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL) 86 86 #define PyRun_AnyFileEx(fp, name, closeit) \ 87 87 PyRun_AnyFileExFlags(fp, name, closeit, NULL) 88 88 #define PyRun_AnyFileFlags(fp, name, flags) \ 89 89 PyRun_AnyFileExFlags(fp, name, 0, flags) 90 90 #define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL) 91 91 #define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL) … … 94 94 #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL) 95 95 #define PyRun_File(fp, p, s, g, l) \ 96 96 PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) 97 97 #define PyRun_FileEx(fp, p, s, g, l, c) \ 98 98 PyRun_FileExFlags(fp, p, s, g, l, c, NULL) 99 99 #define PyRun_FileFlags(fp, p, s, g, l, flags) \ 100 100 PyRun_FileExFlags(fp, p, s, g, l, 0, flags) 101 101 102 102 /* In getpath.c */ … … 115 115 PyAPI_FUNC(const char *) Py_SubversionRevision(void); 116 116 PyAPI_FUNC(const char *) Py_SubversionShortBranch(void); 117 PyAPI_FUNC(const char *) _Py_hgidentifier(void); 118 PyAPI_FUNC(const char *) _Py_hgversion(void); 117 119 118 120 /* Internal -- various one-time initializations */ … … 124 126 PyAPI_FUNC(int) _PyFrame_Init(void); 125 127 PyAPI_FUNC(int) _PyInt_Init(void); 128 PyAPI_FUNC(int) _PyLong_Init(void); 126 129 PyAPI_FUNC(void) _PyFloat_Init(void); 127 130 PyAPI_FUNC(int) PyByteArray_Init(void); 131 PyAPI_FUNC(void) _PyRandom_Init(void); 128 132 129 133 /* Various internal finalizers */ … … 169 173 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); 170 174 175 /* Random */ 176 PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size); 171 177 172 178 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.