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

gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE#110725

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

Merged
vstinner merged 2 commits intopython:mainfromvstinner:limited_api_build_core
Oct 11, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedOct 11, 2023
edited by github-actionsbot
Loading

If the Py_LIMITED_API macro is defined, Py_BUILD_CORE, Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are now undefined by Python.h.

Only undefine these 3 macros after including "exports.h" which uses them to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.


📚 Documentation preview 📚:https://cpython-previews--110725.org.readthedocs.build/

If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are nowundefined by Python.h.Only undefine these 3 macros after including "exports.h" which usesthem to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.
@vstinnervstinner merged commit6f4a499 intopython:mainOct 11, 2023
@vstinnervstinner deleted the limited_api_build_core branchOctober 11, 2023 20:47
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…ython#110725)If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are nowundefined by Python.h.Only undefine these 3 macros after including "exports.h" which usesthem to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.Remove hacks (undefine manually the 3 Py_BUILD_CORE macros) inModules/_testcapi/parts.h and Modules/_testclinic_limited.c.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp