mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00

* And pycore_lifecycle.h and pycore_pathconfig.h headers to Include/internal/ * Move Py_BUILD_CORE specific code from coreconfig.h and pylifecycle.h to pycore_pathconfig.h and pycore_lifecycle.h * Move _Py_wstrlist_XXX() definitions and _PyPathConfig code from pycore_state.h to pycore_pathconfig.h * Move "Init" and "Fini" function definitions from pylifecycle.c to pycore_lifecycle.h.
18 lines
296 B
C
18 lines
296 B
C
/* Minimal main program -- everything is loaded from the library */
|
|
|
|
#include "Python.h"
|
|
#include "pycore_lifecycle.h"
|
|
|
|
#ifdef MS_WINDOWS
|
|
int
|
|
wmain(int argc, wchar_t **argv)
|
|
{
|
|
return Py_Main(argc, argv);
|
|
}
|
|
#else
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
return _Py_UnixMain(argc, argv);
|
|
}
|
|
#endif
|