Changeset 28d883 in git


Ignore:
Timestamp:
Nov 30, 2017, 12:09:04 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c3abfcce79c48aa77ab7c235621197ecdc8c09d8
Parents:
15dc7b449e9b4c3ab9681e7ab8d56bd02393e621
Message:
add error handling of NTL (>=9.3.0)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    r15dc7b r28d883  
    7272  #endif
    7373#endif
     74
     75#ifdef HAVE_NTL
     76#include<NTL/version.h>
     77#include<NTL/tools.h>
     78#ifdef NTL_CLIENT
     79NTL_CLIENT
     80#endif
     81#endif
     82
    7483
    7584static FORCE_INLINE void number2mpz(number n, mpz_t m){ number2mpz(n, coeffs_BIGINT, m); }
     
    13031312  factoryError=WerrorS;
    13041313
     1314// NTL error handling (>= 9.3.0)
     1315#ifdef HAVE_NTL
     1316#if (((NTL_MAJOR_VERSION==9)&&(NTL_MINOR_VERSION>=3))||(NTL_MAJOR_VERSION>=10))
     1317  ErrorMsgCallback=WerrorS;
     1318  ErrorCallback=HALT;
     1319#endif
     1320#endif
     1321
    13051322// memory initialization: -----------------------------------------------
    13061323    om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc;
  • factory/int_cf.h

    r15dc7b r28d883  
    5252    InternalCF( const InternalCF& )
    5353    {
    54         ASSERT( 0, "ups there is something wrong in your code");
     54        ASSERT( 0, "ups there is something wrong in your code");
    5555    };
    5656    virtual ~InternalCF() {};
  • kernel/mod2.h

    r15dc7b r28d883  
    117117#endif
    118118
    119 #define HALT() m2_end(2)
     119#ifdef __cplusplus
     120extern "C" {
     121#endif
     122void  m2_end(int i);
     123#ifdef __cplusplus
     124}
     125#endif
     126
     127static inline void HALT() { m2_end(2);}
    120128
    121129/* define OLD_RES for res/sres/mres(i,j,k) */
  • kernel/structs.h

    r15dc7b r28d883  
    7676
    7777
    78 #ifdef __cplusplus
    79 extern "C" {
    80 #endif
    81 void  m2_end(int i);
    82 #ifdef __cplusplus
    83 }
    84 #endif
    85 
    8678#define loop for(;;)
    8779
Note: See TracChangeset for help on using the changeset viewer.