]> granicus.if.org Git - python/commitdiff
bpo-36763: Make Py_BytesMain() public (GH-15532)
authorVictor Stinner <vstinner@redhat.com>
Mon, 26 Aug 2019 22:45:45 +0000 (00:45 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2019 22:45:45 +0000 (00:45 +0200)
Declare Py_BytesMain() in Include/pylifecycle.h, rather in
Include/internal/pycore_pylifecycle.h.

Include/internal/pycore_pylifecycle.h
Include/pylifecycle.h

index 49574295943314ef102b8a5b45f2fe58db4b697d..7ea4488a9364be4ab15277ba452e85b22e271da6 100644 (file)
@@ -15,8 +15,6 @@ extern "C" {
  * KeyboardInterrupt exception, suggesting the user pressed ^C. */
 PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt;
 
-PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
-
 extern int _Py_SetFileSystemEncoding(
     const char *encoding,
     const char *errors);
index 1df114a73de3b4466ed5a25d406d72b3e7588004..c5368b3c5edaa08c7db2ca2f30d291127e1839d8 100644 (file)
@@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
 /* Bootstrap __main__ (defined in Modules/main.c) */
 PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
 
+PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
+
 /* In pathconfig.c */
 PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
 PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);