Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
[3.12] gh-130740: Move somestdbool.h includes afterPython.h (#130738)#130757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[3.12] gh-130740: Move somestdbool.h includes afterPython.h (#130738)#130757
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…hon#130738)Move some `#include <stdbool.h>` after `#include "Python.h"` when `pyconfig.h` is notincluded first and when we are in a platform-agnostic context. This is to avoid havingfeatures defined by `stdbool.h` before those decided by `Python.h`.
For this one, I'd like approval from@markshannon as I modified the generator cases. |
| self.out.write_raw(f"// Do not edit!\n") | ||
| self.out.write_raw("\n") | ||
| self.out.write_raw("#include <stdbool.h>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Why do you add <stdbool.h> include?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Because there are somebool inside thegenerate_metadata.h file which, without this include, doesn't compile. Previously, it was because we included stdbool.h before including this file so it was impliticitly available (seehttps://github.com/python/cpython/actions/runs/13614386994/job/38055588576?pr=130757)
The change to |
Don't the generated files need to be regenerated? |
I should have regenerated them?efd75da#diff-f862bc60824529a25ba378be850ecc6762f03c6c944266d30ac7172d10132498. Or are there more rules that I needed to run? |
I downloaded the PR and ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
picnixz commentedMar 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
EDIT: regen-all was sufficient, my bad! |
7ce5f15 intopython:3.12Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
stdbool.his included afterPython.h#130740