summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 01:49:31 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 01:49:31 (GMT)
commit00676d143626dbbb7e1ad456ed013afba4420978 (patch)
treeb6b69033c0a0dce310dfc27d77aed2738864f4cc /Include/compile.h
parentdc2081f72bfef321f60548da4353e7fe91e35e4d (diff)
downloadcpython-00676d143626dbbb7e1ad456ed013afba4420978.zip
cpython-00676d143626dbbb7e1ad456ed013afba4420978.tar.gz
cpython-00676d143626dbbb7e1ad456ed013afba4420978.tar.bz2
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 456a494..5ce5b77 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -30,8 +30,12 @@ typedef struct {
struct _mod; /* Declare the existence of this type */
#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(PyCodeObject *) PyAST_CompileEx(
+ mod_ty mod,
+ const char *filename, /* decoded from the filesystem encoding */
+ PyCompilerFlags *flags,
+ int optimize,
+ PyArena *arena);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);