]> granicus.if.org Git - python/commitdiff
Removed support for very old CodeWarrior runtimes.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 4 Jun 2000 22:10:25 +0000 (22:10 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 4 Jun 2000 22:10:25 +0000 (22:10 +0000)
Mac/mwerks/macuseshlstart.c

index 32b808a50a7cb3c84bbecb14da13ccb7abce741c..edbb24628a734e2a21ec5b51f5f336d2becaef3c 100644 (file)
@@ -7,13 +7,6 @@
 
 #include <setjmp.h>
 
-#ifdef PRE_CW8
-extern jmp_buf __program_exit;                 /*      exit() does a longjmp() to here         */
-extern void (*__atexit_hook)(void);            /*      atexit()  sets this up if it is ever called     */
-extern void (*___atexit_hook)(void);   /*      _atexit() sets this up if it is ever called     */
-extern int __aborting;                                 /*      abort() sets this and longjmps to __program_exit        */
-#endif
-
 /*
  *     clear_stackframe_backlink       -       set 0(SP) to 0
  *
@@ -30,20 +23,7 @@ void __start(void)
 {
        char *argv = 0;
        
-#ifdef PRE_CW8
-       if (setjmp(__program_exit) == 0) {      //      set up jmp_buf for exit()
-               main(0, &argv);                         //      call main(argc, argv)
-               if (__atexit_hook)
-                       __atexit_hook();                        //      call atexit() procs
-       }
-       if (!__aborting) {
-               if (___atexit_hook)
-                       ___atexit_hook();                       //      call _atexit() procs
-       }
-//     ExitToShell();
-#else
        clear_stackframe_backlink();
        main(0, &argv);
        exit(0);
-#endif
 }