Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 39779:b8fbd322760a legacy-trunk
with and as are now keywords. There are some generated files I can't recreate.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Wed, 06 Sep 2006 06:28:06 +0000 |
| parents | 9dee81dcb9b4 |
| children | 86ab2f20a333 |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Sep 06 06:09:31 2006 +0000 +++ b/Python/pythonrun.c Wed Sep 06 06:28:06 2006 +0000 @@ -725,9 +725,16 @@ /* compute parser flags based on compiler flags */ #define PARSER_FLAGS(flags) \ ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ + PyPARSE_DONT_IMPLY_DEDENT : 0)) : 0) + +#if 0 +/* Keep an example of flags with future keyword support. */ +#define PARSER_FLAGS(flags) \ + ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ PyPARSE_DONT_IMPLY_DEDENT : 0) \ | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \ PyPARSE_WITH_IS_KEYWORD : 0)) : 0) +#endif int PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
