diff options
author | Georg Brandl <georg@python.org> | 2010-12-04 10:26:46 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-04 10:26:46 +0000 |
commit | 8334fd9285a8e9f0864b0453ae738fe3f6893b21 (patch) | |
tree | f9341847b4647cd85b6fcd4e5fbece5cd15e1883 /Include/compile.h | |
parent | 427d3149ebe5c4495e69a04be5464e5b8b446c9e (diff) | |
download | cpython-git-8334fd9285a8e9f0864b0453ae738fe3f6893b21.tar.gz |
Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile.
Diffstat (limited to 'Include/compile.h')
-rw-r--r-- | Include/compile.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/compile.h b/Include/compile.h index 4a5ebe6778..456a494028 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -29,8 +29,9 @@ typedef struct { #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL" struct _mod; /* Declare the existence of this type */ -PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *, - PyCompilerFlags *, PyArena *); +#define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar) +PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(struct _mod *, const char *, + PyCompilerFlags *, int, PyArena *); PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *); |