Changeset 502cf8 in git


Ignore:
Timestamp:
Jul 25, 2018, 11:03:32 AM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
16137d44693fa5a91cf5f5da79366085c9a15e6f
Parents:
3d752aca5c16f70ac59b285a98ac3cb8664d8656
Message:
move error handler for factory,NTL to the non-libSingular part

(see forum: "NTL error handling", for SAGE)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r3d752a r502cf8  
    2020#include "Singular/links/silink.h"
    2121#include "Singular/links/ssiLink.h"
     22
     23#ifdef HAVE_NTL
     24#include <NTL/version.h>
     25#include <NTL/tools.h>
     26#ifdef NTL_CLIENT
     27NTL_CLIENT
     28#endif
     29#endif
    2230
    2331/* undef, if you don't want GDB to come up on error */
     
    550558#  endif /* !__OPTIMIZE__ */
    551559
    552 /*2
    553 * init signal handlers
    554 */
     560/// init signal handlers and error handling for libraries: NTL, factory
    555561void init_signals()
    556562{
     563// NTL error handling (>= 9.3.0) ----------------------------------------
     564#ifdef HAVE_NTL
     565#if (((NTL_MAJOR_VERSION==9)&&(NTL_MINOR_VERSION>=3))||(NTL_MAJOR_VERSION>=10))
     566  ErrorMsgCallback=WerrorS;
     567  ErrorCallback=HALT;
     568#endif
     569#endif
     570// factory error handling: -----------------------------------------------
     571  factoryError=WerrorS;
     572
     573// signal handler -------------------------------------------------------
    557574  #ifdef SIGSEGV
    558575  si_set_signal(SIGSEGV,(si_hdl_typ)sigsegv_handler);
  • Singular/misc_ip.cc

    r3d752a r502cf8  
    13191319void siInit(char *name)
    13201320{
    1321 // factory default settings: -----------------------------------------------
    1322   //Off(SW_USE_NTL_SORT); // may be changed by an command line option
    1323   factoryError=WerrorS;
    1324 
    1325 // NTL error handling (>= 9.3.0)
    1326 #ifdef HAVE_NTL
    1327 #if (((NTL_MAJOR_VERSION==9)&&(NTL_MINOR_VERSION>=3))||(NTL_MAJOR_VERSION>=10))
    1328   ErrorMsgCallback=WerrorS;
    1329   ErrorCallback=HALT;
    1330 #endif
    1331 #endif
    1332 
    13331321// memory initialization: -----------------------------------------------
    13341322    om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc;
Note: See TracChangeset for help on using the changeset viewer.