Skip to content

Commit 1d4285a

Browse files
bpo-36763: Make Py_BytesMain() public (GH-15532)
Declare Py_BytesMain() in Include/pylifecycle.h, rather in Include/internal/pycore_pylifecycle.h. (cherry picked from commit 9a943b4) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent c75f0e5 commit 1d4285a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_pylifecycle.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ extern "C" {
1515
* KeyboardInterrupt exception, suggesting the user pressed ^C. */
1616
PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt;
1717

18-
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
19-
2018
extern int _Py_SetFileSystemEncoding(
2119
const char *encoding,
2220
const char *errors);

Include/pylifecycle.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
3232
/* Bootstrap __main__ (defined in Modules/main.c) */
3333
PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
3434

35+
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
36+
3537
/* In pathconfig.c */
3638
PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
3739
PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy