Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Conversation

@picnixz
Copy link
Member

@picnixzpicnixz commentedMar 2, 2025
edited by bedevere-appbot
Loading

chouquetteand others added2 commitsMarch 2, 2025 11:05
…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`.
@picnixz
Copy link
MemberAuthor

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>")
Copy link
Member

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?

Copy link
MemberAuthor

@picnixzpicnixzMar 3, 2025
edited
Loading

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)

@markshannon
Copy link
Member

The change toTools/cases_generator/generate_cases.py seems fine. Harmless at worst.

@markshannon
Copy link
Member

Don't the generated files need to be regenerated?

@picnixz
Copy link
MemberAuthor

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?

@vstinner
Copy link
Member

I downloaded the PR and ranmake regen-all: there is no change.

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@picnixz
Copy link
MemberAuthor

picnixz commentedMar 3, 2025
edited
Loading

make regen-all

I think some of the targets need to be regenerated separately (this may include the regen-cases but I don't remember well) The other files that could have been regenerated aregenerated_cases.c.h but I'm not changing their output as they don't have a "bool" (or at least my compiler didn't complain about it). What really mattered wasopcode_metadata.h.

EDIT: regen-all was sufficient, my bad!

@picnixzpicnixz self-assigned thisMar 3, 2025
@picnixzpicnixz merged commit7ce5f15 intopython:3.12Mar 4, 2025
31 checks passed
@picnixzpicnixz deleted the bp/312/214562ed4ddc248b007f718ed92ebcc0c3669611-130740 branchMarch 4, 2025 09:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner approved these changes

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

Assignees

@picnixzpicnixz

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@picnixz@markshannon@vstinner@chouquette

[8]ページ先頭

©2009-2025 Movatter.jp