]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243)
authorVictor Stinner <vstinner@python.org>
Wed, 7 Apr 2021 11:01:09 +0000 (13:01 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 11:01:09 +0000 (13:01 +0200)
commitd36d6a9c1808e87628ebaa855d4bec80130189f4
tree2b4633ff2e80878f75abad58d8a768a14160b1fc
parent67969f5eb80844b68005181fd887bcf94c01fb40
bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243)

* pycore_ast.h no longer defines the Yield macro.
* Fix a compiler warning on Windows: "warning C4005: 'Yield': macro
  redefinition".
* Python-ast.c now defines directly functions with their real
  _Py_xxx() name, rather than xxx().
* Remove "#undef Yield" in C files including pycore_ast.h.
Include/internal/pycore_ast.h
Parser/asdl_c.py
Python/Python-ast.c
Python/ast_opt.c
Python/bltinmodule.c
Python/import.c
Python/pythonrun.c
Python/symtable.c