]> granicus.if.org Git - python/commit
bpo-32030: Cleanup "path config" code (#4663)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Dec 2017 17:27:09 +0000 (18:27 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2017 17:27:09 +0000 (18:27 +0100)
commitb64de46aae148cfab0980e0ad478da7aafc44900
tree08df481be4201aeb0c8875c115168d4c4e055140
parent8f5c28b19374df47ebe3d665e54c1dda5c2d7dca
bpo-32030: Cleanup "path config" code (#4663)

* Rename PyPathConfig structure to _PyPathConfig and move it to
  Include/internal/pystate.h
* Rename path_config to _Py_path_config
* _PyPathConfig: Rename program_name field to program_full_path
* Add assert(str != NULL); to _PyMem_RawWcsdup(), _PyMem_RawStrdup()
  and _PyMem_Strdup().
* Rename calculate_path() to pathconfig_global_init(). The function
  now does nothing if it's already initiallized.
Include/internal/pystate.h
Modules/getpath.c
Objects/obmalloc.c
PC/getpathp.c