Skip to content

Commit

Permalink
bpo-36763: Make Py_BytesMain() public (pythonGH-15532)
Browse files Browse the repository at this point in the history
Declare Py_BytesMain() in Include/pylifecycle.h, rather in
Include/internal/pycore_pylifecycle.h.
  • Loading branch information
vstinner authored Aug 26, 2019
1 parent 6b2e325 commit 9a943b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Include/internal/pycore_pylifecycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions Include/pylifecycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a943b4

Please sign in to comment.