summaryrefslogtreecommitdiff
path: root/Include/sysmodule.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-13 17:31:16 +0100
committerGitHub <noreply@github.com>2017-12-13 17:31:16 +0100
commitd5dda98fa80405db82e2eb36ac48671b4c8c0983 (patch)
treeddece44d8035bccea47121caf6c55932ba44301e /Include/sysmodule.h
parent981469794af8c693174544265b0c19cbe6d2b457 (diff)
downloadcpython-git-d5dda98fa80405db82e2eb36ac48671b4c8c0983.tar.gz
pymain_set_sys_argv() now copies argv (#4838)
bpo-29240, bpo-32030: * Rename pymain_set_argv() to pymain_set_sys_argv() * pymain_set_sys_argv() now creates of copy of argv and modify the copy, rather than modifying pymain->argv * Call pymain_set_sys_argv() earlier: before pymain_run_python(), but after pymain_get_importer(). * Add _PySys_SetArgvWithError() to handle errors
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r--Include/sysmodule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 719ecfcf61..b709629ec6 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -16,6 +16,12 @@ PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
+#ifdef Py_BUILD_CORE
+PyAPI_FUNC(_PyInitError) _PySys_SetArgvWithError(
+ int argc,
+ wchar_t **argv,
+ int updatepath);
+#endif
PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)