Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3744)

Side by Side Diff: Include/pythonrun.h

Issue 10553: Add optimize argument to builtin compile() and byte-compilation modules
Patch Set: Created 2 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Include/compile.h ('k') | Lib/compileall.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Interfaces to parse and execute pieces of python code */ 2 /* Interfaces to parse and execute pieces of python code */
3 3
4 #ifndef Py_PYTHONRUN_H 4 #ifndef Py_PYTHONRUN_H
5 #define Py_PYTHONRUN_H 5 #define Py_PYTHONRUN_H
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \ 10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *, 57 PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,
58 int, int); 58 int, int);
59 59
60 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *, 60 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *,
61 PyObject *, PyCompilerFlags *); 61 PyObject *, PyCompilerFlags *);
62 62
63 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, 63 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int,
64 PyObject *, PyObject *, int, 64 PyObject *, PyObject *, int,
65 PyCompilerFlags *); 65 PyCompilerFlags *);
66 66
67 #define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL) 67 #define Py_CompileString(str, p, s) Py_CompileStringExFlags(str, p, s, NULL, -1)
68 PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int, 68 #define Py_CompileStringFlags(str, p, s, f) Py_CompileStringExFlags(str, p, s, f , -1)
69 PyCompilerFlags *); 69 PyAPI_FUNC(PyObject *) Py_CompileStringExFlags(const char *, const char *, int,
70 PyCompilerFlags *, int);
70 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int) ; 71 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int) ;
71 72
72 PyAPI_FUNC(void) PyErr_Print(void); 73 PyAPI_FUNC(void) PyErr_Print(void);
73 PyAPI_FUNC(void) PyErr_PrintEx(int); 74 PyAPI_FUNC(void) PyErr_PrintEx(int);
74 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); 75 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
75 76
76 /* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level 77 /* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level
77 * exit functions. 78 * exit functions.
78 */ 79 */
79 PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(void)); 80 PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(void));
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 /* Signals */ 176 /* Signals */
176 typedef void (*PyOS_sighandler_t)(int); 177 typedef void (*PyOS_sighandler_t)(int);
177 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int); 178 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int);
178 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); 179 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);
179 180
180 181
181 #ifdef __cplusplus 182 #ifdef __cplusplus
182 } 183 }
183 #endif 184 #endif
184 #endif /* !Py_PYTHONRUN_H */ 185 #endif /* !Py_PYTHONRUN_H */
OLDNEW
« no previous file with comments | « Include/compile.h ('k') | Lib/compileall.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7