574 |
is_error = 0; |
is_error = 0; |
575 |
relptr = enginedata->rellist; |
relptr = enginedata->rellist; |
576 |
|
|
577 |
Asc_SignalHandlerPush(SIGFPE,SIG_IGN); |
if(enginedata->safeeval){ |
578 |
|
Asc_SignalHandlerPush(SIGFPE,SIG_IGN); |
579 |
|
}else{ |
580 |
|
ERROR_REPORTER_HERE(ASC_PROG_ERR,"SETTING TO CATCH SIGFPE..."); |
581 |
|
Asc_SignalHandlerPushDefault(SIGFPE); |
582 |
|
} |
583 |
|
|
584 |
if (setjmp(g_fpe_env)==0) { |
if (setjmp(g_fpe_env)==0) { |
585 |
for(i=0, relptr = enginedata->rellist; |
for(i=0, relptr = enginedata->rellist; |
586 |
i< enginedata->nrels && relptr != NULL; |
i< enginedata->nrels && relptr != NULL; |
595 |
ASC_FREE(relname); |
ASC_FREE(relname); |
596 |
/* presumable some output already made? */ |
/* presumable some output already made? */ |
597 |
is_error = 1; |
is_error = 1; |
598 |
|
}else{ |
599 |
|
CONSOLE_DEBUG("Calc OK"); |
600 |
} |
} |
601 |
} |
} |
602 |
}else{ |
}else{ |
605 |
ASC_FREE(relname); |
ASC_FREE(relname); |
606 |
is_error = 1; |
is_error = 1; |
607 |
} |
} |
608 |
Asc_SignalHandlerPop(SIGFPE,SIG_IGN); |
|
609 |
|
if(enginedata->safeeval){ |
610 |
|
Asc_SignalHandlerPop(SIGFPE,SIG_IGN); |
611 |
|
}else{ |
612 |
|
Asc_SignalHandlerPopDefault(SIGFPE); |
613 |
|
} |
614 |
|
|
615 |
#ifdef FEX_DEBUG |
#ifdef FEX_DEBUG |
616 |
/* output residuals to console */ |
/* output residuals to console */ |
839 |
filter.matchbits = VAR_SVAR; |
filter.matchbits = VAR_SVAR; |
840 |
filter.matchvalue = VAR_SVAR; |
filter.matchvalue = VAR_SVAR; |
841 |
|
|
842 |
Asc_SignalHandlerPush(SIGFPE,SIG_IGN); |
Asc_SignalHandlerPushDefault(SIGFPE); |
843 |
if (setjmp(g_fpe_env)==0) { |
if (setjmp(g_fpe_env)==0) { |
844 |
for(i=0, relptr = enginedata->rellist; |
for(i=0, relptr = enginedata->rellist; |
845 |
i< enginedata->nrels && relptr != NULL; |
i< enginedata->nrels && relptr != NULL; |
915 |
ASC_FREE(relname); |
ASC_FREE(relname); |
916 |
is_error = 1; |
is_error = 1; |
917 |
} |
} |
918 |
Asc_SignalHandlerPop(SIGFPE,SIG_IGN); |
Asc_SignalHandlerPopDefault(SIGFPE); |
919 |
|
|
920 |
if(is_error){ |
if(is_error){ |
921 |
CONSOLE_DEBUG("SOME ERRORS FOUND IN EVALUATION"); |
CONSOLE_DEBUG("SOME ERRORS FOUND IN EVALUATION"); |