diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-12 10:31:54 (GMT) |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-12 10:31:54 (GMT) |
| commit | 6c7e326eaaa2d814e0d299054f78e5bd187489ab (patch) | |
| tree | 5343213d9e164e76a47517111dd41b46f7fd4877 /Mac/Python/macgetargv.c | |
| parent | 6bf45c67523a8e81963ce645979ac85f4f75ef33 (diff) | |
| download | cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.zip cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.gz cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.bz2 | |
Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
Diffstat (limited to 'Mac/Python/macgetargv.c')
| -rw-r--r-- | Mac/Python/macgetargv.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c index 8fdbad5..180de33 100644 --- a/Mac/Python/macgetargv.c +++ b/Mac/Python/macgetargv.c @@ -54,11 +54,7 @@ typedef unsigned long refcontype; #include "Python.h" #include "macglue.h" -#ifdef TARGET_API_MAC_OSX -#define PATHNAMELEN 1024 -#else #define PATHNAMELEN 256 -#endif static int arg_count; static char *arg_vector[256]; @@ -79,8 +75,6 @@ strdup(const char *src) } #endif - -#if !TARGET_API_MAC_OSX /* Initialize FSSpec and full name of current application */ OSErr @@ -104,7 +98,6 @@ PyMac_init_process_location(void) applocation_inited = 1; return 0; } -#endif /* !TARGET_API_MAC_OSX */ /* Check that there aren't any args remaining in the event */ @@ -229,9 +222,6 @@ event_loop(void) got_one = 0; for (n = 0; n < 100 && !got_one; n++) { -#if !TARGET_API_MAC_CARBON - SystemTask(); -#endif ok = GetNextEvent(everyEvent, &event); if (ok && event.what == kHighLevelEvent) { AEProcessAppleEvent(&event); @@ -245,13 +235,8 @@ int PyMac_GetArgv(char ***pargv, int noevents) { arg_count = 0; -#if TARGET_API_MAC_OSX - /* In an OSX bundle argv[0] is okay */ - arg_count++; -#else (void)PyMac_init_process_location(); arg_vector[arg_count++] = strdup(PyMac_ApplicationPath); -#endif /* TARGET_API_MAC_OSX */ if( !noevents ) { set_ae_handlers(); |
