summaryrefslogtreecommitdiff
path: root/Include/compile.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2019-01-31 03:40:27 -0800
committerƁukasz Langa <lukasz@langa.pl>2019-01-31 12:40:27 +0100
commitdcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c (patch)
tree07829c4f286194d0e3d08151a26ef1f3494a849b /Include/compile.h
parentd97daebfa69b4df95231bcae4123eacad6a48d14 (diff)
downloadcpython-git-dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c.tar.gz
bpo-35766: Merge typed_ast back into CPython (GH-11645)
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 2dacfff37f..d0bbed8f55 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -22,6 +22,7 @@ PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
#define PyCF_DONT_IMPLY_DEDENT 0x0200
#define PyCF_ONLY_AST 0x0400
#define PyCF_IGNORE_COOKIE 0x0800
+#define PyCF_TYPE_COMMENTS 0x1000
#ifndef Py_LIMITED_API
typedef struct {
@@ -85,10 +86,10 @@ PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena, int optimize);
#endif /* !Py_LIMITED_API */
-/* These definitions must match corresponding definitions in graminit.h.
- There's code in compile.c that checks that they are the same. */
+/* These definitions must match corresponding definitions in graminit.h. */
#define Py_single_input 256
#define Py_file_input 257
#define Py_eval_input 258
+#define Py_func_type_input 345
#endif /* !Py_COMPILE_H */