mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Old names changed to Py_GetCopyright, etc.
This commit is contained in:
parent
84d0bfcbe0
commit
a547dcaff0
4 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getcompiler()
|
Py_GetCompiler()
|
||||||
{
|
{
|
||||||
return COMPILER;
|
return COMPILER;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getpythonpath()
|
Py_GetPath()
|
||||||
{
|
{
|
||||||
/* Modified by Jack to do something a bit more sensible:
|
/* Modified by Jack to do something a bit more sensible:
|
||||||
** - Prepend the python home-directory (which is obtained from a Preferences
|
** - Prepend the python home-directory (which is obtained from a Preferences
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getplatform()
|
Py_GetPlatform()
|
||||||
{
|
{
|
||||||
return "mac";
|
return "mac";
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,8 +54,8 @@ extern int Py_SuppressPrintingFlag; /* For ceval.c, declared in pythonrun.c */
|
||||||
|
|
||||||
|
|
||||||
/* Subroutines that live in their own file */
|
/* Subroutines that live in their own file */
|
||||||
extern char *getversion Py_PROTO((void));
|
extern char *Py_GetVersion Py_PROTO((void));
|
||||||
extern char *getcopyright Py_PROTO((void));
|
extern char *Py_GetCopyright Py_PROTO((void));
|
||||||
|
|
||||||
|
|
||||||
/* For getprogramname(); set by main() */
|
/* For getprogramname(); set by main() */
|
||||||
|
@ -336,7 +336,7 @@ Py_Main(argc, argv)
|
||||||
if (Py_VerboseFlag ||
|
if (Py_VerboseFlag ||
|
||||||
command == NULL && filename == NULL && isatty((int)fileno(fp)))
|
command == NULL && filename == NULL && isatty((int)fileno(fp)))
|
||||||
fprintf(stderr, "Python %s\n%s\n",
|
fprintf(stderr, "Python %s\n%s\n",
|
||||||
getversion(), getcopyright());
|
Py_GetVersion(), Py_GetCopyright());
|
||||||
|
|
||||||
if (filename != NULL) {
|
if (filename != NULL) {
|
||||||
if ((fp = fopen(filename, "r")) == NULL) {
|
if ((fp = fopen(filename, "r")) == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue