Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_cpu.c 


Log Message:


oooh siglongjmp!!!!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_cpu.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- evas_cpu.c  5 Apr 2004 03:38:34 -0000       1.18
+++ evas_cpu.c  19 Apr 2004 01:27:37 -0000      1.19
@@ -4,7 +4,9 @@
 #include "evas_mmx.h"
 #endif
 
-static jmp_buf detect_buf;
+#include <setjmp.h>
+
+static sigjmp_buf detect_buf;
 static int cpu_feature_mask = 0;
 
 static void evas_common_cpu_catch_ill(int sig);
@@ -12,7 +14,7 @@
 static void
 evas_common_cpu_catch_ill(int sig)
 {
-   longjmp(detect_buf, 1);
+   siglongjmp(detect_buf, 1);
 }
 
 #if ( \
@@ -81,7 +83,7 @@
    act.sa_flags = SA_RESTART;
    sigemptyset(&act.sa_mask);
    sigaction(SIGILL, &act, &oact);
-   if (setjmp(detect_buf))
+   if (sigsetjmp(detect_buf, 1))
      {
        sigaction(SIGILL, &oact, NULL);
        return 0;




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to