summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macmain.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-09 14:48:05 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-09 14:48:05 (GMT)
commitdaed771fbb305636bc3f719dbe391054d6dc29e5 (patch)
treeebc08b2c51e7800e5b2baa5db1bff65a5ad68df9 /Mac/Python/macmain.c
parentffb170ee37dc3d703a8043ae154708b9a167eb08 (diff)
downloadcpython-daed771fbb305636bc3f719dbe391054d6dc29e5.zip
cpython-daed771fbb305636bc3f719dbe391054d6dc29e5.tar.gz
cpython-daed771fbb305636bc3f719dbe391054d6dc29e5.tar.bz2
Py_GetProgramName turns out not to be obsolete (used by _tkinter).
Diffstat (limited to 'Mac/Python/macmain.c')
-rw-r--r--Mac/Python/macmain.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index b464872..dc14e7c 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -60,13 +60,9 @@ extern char *Py_GetVersion 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() */
static char **orig_argv;
static int orig_argc;
-#endif
PyMac_PrefRecord options;
@@ -364,10 +360,8 @@ Py_Main(argc, argv)
char *filename = NULL;
FILE *fp = stdin;
-#ifdef OBSOLETE_ARGCARGV
orig_argc = argc; /* For Py_GetArgcArgv() */
orig_argv = argv;
-#endif
filename = argv[1];
if (Py_VerboseFlag ||
@@ -447,7 +441,6 @@ PyMac_Exit(status)
exit(status);
}
-#ifdef OBSOLETE_ARGCARGV
/* Return the program name -- some code out there needs this. */
char *
@@ -468,7 +461,6 @@ Py_GetArgcArgv(argc,argv)
*argc = orig_argc;
*argv = orig_argv;
}
-#endif /* OBSOLETE_ARGCARGV */
/* More cruft that shouldn't really be here, used in sysmodule.c */