comparison 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
comparison
equal deleted inserted replaced
39777:307a11c085b4 39779:b8fbd322760a
723 } 723 }
724 724
725 /* compute parser flags based on compiler flags */ 725 /* compute parser flags based on compiler flags */
726 #define PARSER_FLAGS(flags) \ 726 #define PARSER_FLAGS(flags) \
727 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ 727 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
728 PyPARSE_DONT_IMPLY_DEDENT : 0)) : 0)
729
730 #if 0
731 /* Keep an example of flags with future keyword support. */
732 #define PARSER_FLAGS(flags) \
733 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
728 PyPARSE_DONT_IMPLY_DEDENT : 0) \ 734 PyPARSE_DONT_IMPLY_DEDENT : 0) \
729 | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \ 735 | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \
730 PyPARSE_WITH_IS_KEYWORD : 0)) : 0) 736 PyPARSE_WITH_IS_KEYWORD : 0)) : 0)
737 #endif
731 738
732 int 739 int
733 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) 740 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
734 { 741 {
735 PyObject *m, *d, *v, *w; 742 PyObject *m, *d, *v, *w;