1. 01 Nov, 2018 3 commits
    • Victor Stinner's avatar
      bpo-35081: And pycore_lifecycle.h and pycore_pathconfig.h (GH-10273) · a1c249c4
      Victor Stinner authored
      * And pycore_lifecycle.h and pycore_pathconfig.h headers to
        Include/internal/
      * Move Py_BUILD_CORE specific code from coreconfig.h and
        pylifecycle.h to pycore_pathconfig.h and pycore_lifecycle.h
      * Move _Py_wstrlist_XXX() definitions and _PyPathConfig code
        from pycore_state.h to pycore_pathconfig.h
      * Move "Init" and "Fini" function definitions from pylifecycle.c to
        pycore_lifecycle.h.
      a1c249c4
    • Victor Stinner's avatar
      bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) · e281f7d8
      Victor Stinner authored
      The accu.h header is no longer part of the Python C API: it has been
      moved to the "internal" headers which are restricted to Python
      itself.
      
      Replace #include "accu.h" with #include "pycore_accu.h".
      e281f7d8
    • Victor Stinner's avatar
      bpo-35081: Add _PyThreadState_GET() internal macro (GH-10266) · 50b48572
      Victor Stinner authored
      If Py_BUILD_CORE is defined, the PyThreadState_GET() macro access
      _PyRuntime which comes from the internal pycore_state.h header.
      Public headers must not require internal headers.
      
      Move PyThreadState_GET() and _PyInterpreterState_GET_UNSAFE() from
      Include/pystate.h to Include/internal/pycore_state.h, and rename
      PyThreadState_GET() to _PyThreadState_GET() there.
      
      The PyThreadState_GET() macro of pystate.h is now redefined when
      pycore_state.h is included, to use the fast _PyThreadState_GET().
      
      Changes:
      
      * Add _PyThreadState_GET() macro
      * Replace "PyThreadState_GET()->interp" with
        _PyInterpreterState_GET_UNSAFE()
      * Replace PyThreadState_GET() with _PyThreadState_GET() in internal C
        files (compiled with Py_BUILD_CORE defined), but keep
        PyThreadState_GET() in the public header files.
      * _testcapimodule.c: replace PyThreadState_GET() with
        PyThreadState_Get(); the module is not compiled with Py_BUILD_CORE
        defined.
      * pycore_state.h now requires Py_BUILD_CORE to be defined.
      50b48572
  2. 31 Oct, 2018 8 commits
  3. 30 Oct, 2018 10 commits
  4. 29 Oct, 2018 13 commits
  5. 28 Oct, 2018 6 commits