Mercurial > cpython-lru_cache-weakref
comparison Include/pythonrun.h @ 36065:ea083efdc96c legacy-trunk
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
simplifies a lot of error handling code, and fixes many memory leaks.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 17 Dec 2005 20:54:49 +0000 |
| parents | 893be94c8891 |
| children | 9697eeeaf246 |
comparison
equal
deleted
inserted
replaced
| 36064:fb6e64eb86c0 | 36065:ea083efdc96c |
|---|---|
| 35 PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *); | 35 PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *); |
| 36 PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *); | 36 PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *); |
| 37 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *); | 37 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *); |
| 38 | 38 |
| 39 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, | 39 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, |
| 40 int, PyCompilerFlags *flags); | 40 int, PyCompilerFlags *flags, |
| 41 PyArena *); | |
| 41 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int, | 42 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int, |
| 42 char *, char *, | 43 char *, char *, |
| 43 PyCompilerFlags *, int *); | 44 PyCompilerFlags *, int *, |
| 45 PyArena *); | |
| 44 #define PyParser_SimpleParseString(S, B) \ | 46 #define PyParser_SimpleParseString(S, B) \ |
| 45 PyParser_SimpleParseStringFlags(S, B, 0) | 47 PyParser_SimpleParseStringFlags(S, B, 0) |
| 46 #define PyParser_SimpleParseFile(FP, S, B) \ | 48 #define PyParser_SimpleParseFile(FP, S, B) \ |
| 47 PyParser_SimpleParseFileFlags(FP, S, B, 0) | 49 PyParser_SimpleParseFileFlags(FP, S, B, 0) |
| 48 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, | 50 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, |
