summaryrefslogtreecommitdiff
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-01 05:35:33 +0200
committerGitHub <noreply@github.com>2019-05-01 05:35:33 +0200
commitdb7197543112954b0912e3d46e39fefcb1c3b950 (patch)
tree0c82232775c6b1a03671054f9e70f2bb99e6adc9 /Modules/getpath.c
parentc4e671eec20dfcb29b18596a89ef075f826c9f96 (diff)
downloadcpython-git-db7197543112954b0912e3d46e39fefcb1c3b950.tar.gz
bpo-36763: Rework _PyInitError API (GH-13031)
* Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro: use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls abort() on error: exit with exit code 1 instead. * Add _PyInitError._type private field. * exitcode field type is now unsigned int on Windows. * Rename prefix field to _func. * Rename msg field to err_msg.
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index dd188c6128..3991ad719c 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -114,10 +114,10 @@ extern "C" {
#define DECODE_LOCALE_ERR(NAME, LEN) \
((LEN) == (size_t)-2) \
- ? _Py_INIT_USER_ERR("cannot decode " NAME) \
+ ? _Py_INIT_ERR("cannot decode " NAME) \
: _Py_INIT_NO_MEMORY()
-#define PATHLEN_ERR() _Py_INIT_USER_ERR("path configuration: path too long")
+#define PATHLEN_ERR() _Py_INIT_ERR("path configuration: path too long")
typedef struct {
wchar_t *path_env; /* PATH environment variable */