mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Py_GetProgramName turns out not to be obsolete (used by _tkinter).
This commit is contained in:
parent
ffb170ee37
commit
daed771fbb
1 changed files with 0 additions and 8 deletions
|
@ -60,13 +60,9 @@ extern char *Py_GetVersion Py_PROTO((void));
|
||||||
extern char *Py_GetCopyright Py_PROTO((void));
|
extern char *Py_GetCopyright Py_PROTO((void));
|
||||||
|
|
||||||
|
|
||||||
/* #define OBSOLETE_ARGCARGV 1 /* I think this is not needed anymore... */
|
|
||||||
|
|
||||||
#ifdef OBSOLETE_ARGCARGV
|
|
||||||
/* For Py_GetArgcArgv(); set by main() */
|
/* For Py_GetArgcArgv(); set by main() */
|
||||||
static char **orig_argv;
|
static char **orig_argv;
|
||||||
static int orig_argc;
|
static int orig_argc;
|
||||||
#endif
|
|
||||||
|
|
||||||
PyMac_PrefRecord options;
|
PyMac_PrefRecord options;
|
||||||
|
|
||||||
|
@ -364,10 +360,8 @@ Py_Main(argc, argv)
|
||||||
char *filename = NULL;
|
char *filename = NULL;
|
||||||
FILE *fp = stdin;
|
FILE *fp = stdin;
|
||||||
|
|
||||||
#ifdef OBSOLETE_ARGCARGV
|
|
||||||
orig_argc = argc; /* For Py_GetArgcArgv() */
|
orig_argc = argc; /* For Py_GetArgcArgv() */
|
||||||
orig_argv = argv;
|
orig_argv = argv;
|
||||||
#endif
|
|
||||||
filename = argv[1];
|
filename = argv[1];
|
||||||
|
|
||||||
if (Py_VerboseFlag ||
|
if (Py_VerboseFlag ||
|
||||||
|
@ -447,7 +441,6 @@ PyMac_Exit(status)
|
||||||
exit(status);
|
exit(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OBSOLETE_ARGCARGV
|
|
||||||
/* Return the program name -- some code out there needs this. */
|
/* Return the program name -- some code out there needs this. */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
@ -468,7 +461,6 @@ Py_GetArgcArgv(argc,argv)
|
||||||
*argc = orig_argc;
|
*argc = orig_argc;
|
||||||
*argv = orig_argv;
|
*argv = orig_argv;
|
||||||
}
|
}
|
||||||
#endif /* OBSOLETE_ARGCARGV */
|
|
||||||
|
|
||||||
/* More cruft that shouldn't really be here, used in sysmodule.c */
|
/* More cruft that shouldn't really be here, used in sysmodule.c */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue