mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add platform to welcome message.
This commit is contained in:
parent
650b3aad55
commit
fe4dfc7ce3
1 changed files with 3 additions and 2 deletions
|
@ -49,6 +49,7 @@ extern int getopt(); /* PROTO((int, char **, char *)); -- not standardized */
|
||||||
|
|
||||||
/* Subroutines that live in their own file */
|
/* Subroutines that live in their own file */
|
||||||
extern char *Py_GetVersion();
|
extern char *Py_GetVersion();
|
||||||
|
extern char *Py_GetPlatform();
|
||||||
extern char *Py_GetCopyright();
|
extern char *Py_GetCopyright();
|
||||||
|
|
||||||
|
|
||||||
|
@ -219,8 +220,8 @@ main(argc, argv)
|
||||||
|
|
||||||
if (Py_VerboseFlag ||
|
if (Py_VerboseFlag ||
|
||||||
(command == NULL && filename == NULL && stdin_is_interactive))
|
(command == NULL && filename == NULL && stdin_is_interactive))
|
||||||
fprintf(stderr, "Python %s\n%s\n",
|
fprintf(stderr, "Python %s on %s\n%s\n",
|
||||||
Py_GetVersion(), Py_GetCopyright());
|
Py_GetVersion(), Py_GetPlatform(), Py_GetCopyright());
|
||||||
|
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue