From ae7839bbe817329dd015f9195da308a0f3fbd3e2 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 27 Sep 2021 10:00:32 -0600 Subject: bpo-45211: Move helpers from getpath.c to internal API. (gh-28550) This accomplishes 2 things: * consolidates some common code between getpath.c and getpathp.c * makes the helpers available to code in other files FWIW, the signature of the join_relfile() function (in fileutils.c) intentionally mirrors that of Windows' PathCchCombineEx(). Note that this change is mostly moving code around. No behavior is meant to change. https://bugs.python.org/issue45211 --- Python/initconfig.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Python/initconfig.c') diff --git a/Python/initconfig.c b/Python/initconfig.c index 8740cc1cf7..40a5846f43 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -587,11 +587,6 @@ Py_GetArgcArgv(int *argc, wchar_t ***argv) /* --- PyConfig ---------------------------------------------- */ -#define DECODE_LOCALE_ERR(NAME, LEN) \ - (((LEN) == -2) \ - ? _PyStatus_ERR("cannot decode " NAME) \ - : _PyStatus_NO_MEMORY()) - #define MAX_HASH_SEED 4294967295UL -- cgit v1.2.1