From ca460d9722c9542004c4cf34d9231641ac18e34b Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 6 Sep 2006 06:28:06 +0000 Subject: with and as are now keywords. There are some generated files I can't recreate. --- Python/pythonrun.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e8f4fa2e56..634572e220 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -723,11 +723,18 @@ PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flag } /* 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) -- cgit v1.2.1