summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-17 20:54:49 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-17 20:54:49 +0000
commit901170b4010eb1580d959b06d206e3fb7243995d (patch)
treeeb1c7e5d190acd26463792873599769a06d00c52 /Include/pythonrun.h
parent12d6f8768fcd5f36a7896789da18a7655949a30c (diff)
downloadcpython-901170b4010eb1580d959b06d206e3fb7243995d.tar.gz
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.
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r--Include/pythonrun.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 514d3bc887..e309078a69 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -37,10 +37,12 @@ PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags
PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *,
- int, PyCompilerFlags *flags);
+ int, PyCompilerFlags *flags,
+ PyArena *);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int,
char *, char *,
- PyCompilerFlags *, int *);
+ PyCompilerFlags *, int *,
+ PyArena *);
#define PyParser_SimpleParseString(S, B) \
PyParser_SimpleParseStringFlags(S, B, 0)
#define PyParser_SimpleParseFile(FP, S, B) \