bpo-36763: Make Py_BytesMain() public (GH-15532)
Declare Py_BytesMain() in Include/pylifecycle.h, rather in Include/internal/pycore_pylifecycle.h.
This commit is contained in:
parent
6b2e3256b6
commit
9a943b4ce1
|
@ -15,8 +15,6 @@ extern "C" {
|
||||||
* KeyboardInterrupt exception, suggesting the user pressed ^C. */
|
* KeyboardInterrupt exception, suggesting the user pressed ^C. */
|
||||||
PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt;
|
PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt;
|
||||||
|
|
||||||
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
|
|
||||||
|
|
||||||
extern int _Py_SetFileSystemEncoding(
|
extern int _Py_SetFileSystemEncoding(
|
||||||
const char *encoding,
|
const char *encoding,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
|
@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
|
||||||
/* Bootstrap __main__ (defined in Modules/main.c) */
|
/* Bootstrap __main__ (defined in Modules/main.c) */
|
||||||
PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
|
PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
|
||||||
|
|
||||||
|
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
|
||||||
|
|
||||||
/* In pathconfig.c */
|
/* In pathconfig.c */
|
||||||
PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
|
PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
|
||||||
PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);
|
PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);
|
||||||
|
|
Loading…
Reference in New Issue