Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35081: Add pycore_ prefix to internal header files #10263

Merged
merged 1 commit into from
Oct 31, 2018
Merged

bpo-35081: Add pycore_ prefix to internal header files #10263

merged 1 commit into from
Oct 31, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 31, 2018

  • Rename Include/internal/ header files:

    • pyatomic.h -> pycore_atomic.h
    • ceval.h -> pycore_ceval.h
    • condvar.h -> pycore_condvar.h
    • context.h -> pycore_context.h
    • pygetopt.h -> pycore_getopt.h
    • gil.h -> pycore_gil.h
    • hamt.h -> pycore_hamt.h
    • hash.h -> pycore_hash.h
    • mem.h -> pycore_mem.h
    • pystate.h -> pycore_state.h
    • warnings.h -> pycore_warnings.h
  • PCbuild project, Makefile.pre.in, Modules/Setup: add the
    Include/internal/ directory to the search paths of header files.

  • Update include. For example, replace #include "internal/mem.h"
    with #include "pycore_mem.h".

https://bugs.python.org/issue35081

@vstinner
Copy link
Member Author

I'm not sure between "internal_" and "pycore_", see:
https://mail.python.org/pipermail/python-dev/2018-October/155631.html

* Rename Include/internal/ header files:

  * pyatomic.h -> pycore_atomic.h
  * ceval.h -> pycore_ceval.h
  * condvar.h -> pycore_condvar.h
  * context.h -> pycore_context.h
  * pygetopt.h -> pycore_getopt.h
  * gil.h -> pycore_gil.h
  * hamt.h -> pycore_hamt.h
  * hash.h -> pycore_hash.h
  * mem.h -> pycore_mem.h
  * pystate.h -> pycore_state.h
  * warnings.h -> pycore_warnings.h

* PCbuild project, Makefile.pre.in, Modules/Setup: add the
  Include/internal/ directory to the search paths of header files.
* Update include. For example, replace #include "internal/mem.h"
  with #include "pycore_mem.h".
@vstinner
Copy link
Member Author

vstinner commented Oct 31, 2018

I'm not sure between "internal_" and "pycore_", see:
https://mail.python.org/pipermail/python-dev/2018-October/155631.html

Eric voted for "Include/internal/pycore_xxx.h".

I decided to remove the redundant "py", so I renamed "pystate.h" to "pycore_state.h" (instead of "pycore_pystate.h")

@vstinner vstinner changed the title bpo-35081: Add internal_ prefix to internal header files bpo-35081: Add pycore_ prefix to internal header files Oct 31, 2018
@vstinner vstinner merged commit 27e2d1f into python:master Oct 31, 2018
@vstinner vstinner deleted the internal2 branch October 31, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants