Do not define _setjmp/_longjmp macros in mach_dep.c (code refactoring)
authorIvan Maidanski <ivmai@mail.ru>
Sat, 29 Sep 2012 08:23:40 +0000 (12:23 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 29 Sep 2012 08:23:40 +0000 (12:23 +0400)
* mach_dep.c (_setjmp, _longjmp): Remove unused macro definition (if
OS2, or CX_UX or __CC_ARM).
* mach_dep.c (GC_with_callee_saves_pushed): Use setjmp instead of
_setjmp also for OS2, CX_UX and __CC_ARM.

mach_dep.c

index 0760d36..434bfeb 100644 (file)
 #include <stdio.h>
 #include <setjmp.h>
 
-#if defined(OS2) || defined(CX_UX) || defined(__CC_ARM)
-# define _setjmp(b) setjmp(b)
-# define _longjmp(b,v) longjmp(b,v)
-#endif
-
 #ifdef AMIGA
 # ifndef __GNUC__
 #   include <dos.h>
@@ -287,6 +282,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
             *i = 0;
         }
 #       if defined(MSWIN32) || defined(MSWINCE) || defined(UTS4) \
+           || defined(OS2) || defined(CX_UX) || defined(__CC_ARM) \
            || defined(LINUX) || defined(EWS4800) || defined(RTEMS)
           (void) setjmp(regs);
 #       else