Changeset 7fe9e13 in git


Ignore:
Timestamp:
Jan 7, 2014, 10:49:14 AM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
458fe5223a24efe5daf71219814103af29a22a4a
Parents:
9dba83b67ef6188c31760d27748664d42a28b6db
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-01-07 10:49:14+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-01-07 11:06:05+01:00
Message:
Renamed NDEBUG -> SING_NDEBUG in order to avoid confusion with GCC macro
Files:
86 edited

Legend:

Unmodified
Added
Removed
  • Singular/RULES

    r9dba83b r7fe9e13  
    4242- trust other parts of Singular:
    4343  - only very fast tests
    44   - have a complete test of the input in debug mode (#ifndef NDEBUG)
     44  - have a complete test of the input in debug mode (#ifndef SING_NDEBUG)
    4545- report internal errors via dReportError
    4646
  • Singular/extra.cc

    r9dba83b r7fe9e13  
    449449            TEST_FOR("om_ndebug")
    450450          #endif
    451           #ifdef NDEBUG
     451          #ifdef SING_NDEBUG
    452452            TEST_FOR("ndebug")
    453453          #endif
     
    30783078  #endif
    30793079  /*==================== facstd_debug ==================================*/
    3080   #if !defined(NDEBUG)
     3080  #if !defined(SING_NDEBUG)
    30813081      if(strcmp(sys_cmd,"facstd")==0)
    30823082      {
  • Singular/feOpt.cc

    r9dba83b r7fe9e13  
    320320  {
    321321    if (feOptSpec[i].help != NULL && feOptSpec[i].type != feOptUntyped
    322 #ifndef NDEBUG
     322#ifndef SING_NDEBUG
    323323        && *(feOptSpec[i].help) != '/'
    324324#endif
     
    362362  {
    363363    if (feOptSpec[i].help != NULL
    364 #ifdef NDEBUG
     364#ifdef SING_NDEBUG
    365365        && *(feOptSpec[i].help) != '/'
    366366#endif
  • Singular/ipassign.cc

    r9dba83b r7fe9e13  
    188188  if( !nCoeff_is_transExt(currRing->cf) && (currRing->idroot == NULL) && n_IsZero((number)a->Data(), currRing->cf) )
    189189  {
    190 #ifndef NDEBUG
     190#ifndef SING_NDEBUG
    191191    WarnS("Set minpoly over non-transcendental ground field to 0?!");
    192192    Warn("in >>%s<<",my_yylinebuf);
     
    199199  {
    200200//    return TRUE;
    201 #ifndef NDEBUG
     201#ifndef SING_NDEBUG
    202202    WarnS("Trying to set minpoly over non-transcendental ground field...");
    203203#endif
     
    207207  {
    208208//    return TRUE;
    209 #ifndef NDEBUG
     209#ifndef SING_NDEBUG
    210210    idhdl p = currRing->idroot;
    211211
     
    231231    if( nCoeff_is_transExt(currRing->cf) )
    232232    {
    233 #ifndef NDEBUG
     233#ifndef SING_NDEBUG
    234234      WarnS("minpoly is already 0...");
    235235#endif
     
    245245  while(currRing->idroot!=NULL)
    246246  {
    247 #ifndef NDEBUG
     247#ifndef SING_NDEBUG
    248248    Warn("killing a local object due to minpoly change: %s", IDID(currRing->idroot));
    249249#endif
  • Singular/ipid.cc

    r9dba83b r7fe9e13  
    320320  }
    321321  *root = (*root)->set(s, lev, t, init);
    322 #ifndef NDEBUG
     322#ifndef SING_NDEBUG
    323323  checkall();
    324324#endif
  • Singular/iplib.cc

    r9dba83b r7fe9e13  
    421421    //Print("kill locals for %s (level %d)\n",IDID(pn),myynest);
    422422    killlocals(myynest);
    423 #ifndef NDEBUG
     423#ifndef SING_NDEBUG
    424424    checkall();
    425425#endif
     
    10581058  idhdl h;
    10591059
    1060   #ifndef NDEBUG
     1060  #ifndef SING_NDEBUG
    10611061  int dummy;
    10621062  if (IsCmd(procname,dummy))
  • Singular/ipshell.cc

    r9dba83b r7fe9e13  
    52405240  {
    52415241    Werror("Wrong or unknown ground field specification");
    5242 #ifndef NDEBUG
     5242#ifndef SING_NDEBUG
    52435243    sleftv* p = pn;
    52445244    while (p != NULL)
  • Singular/ipshell.h

    r9dba83b r7fe9e13  
    210210
    211211void iiCheckPack(package &p);
    212 #ifndef NDEBUG
     212#ifndef SING_NDEBUG
    213213void checkall();
    214214#endif
  • Singular/links/ssiLink.cc

    r9dba83b r7fe9e13  
    13071307                                  SSI_VERSION,MAX_TOK,n98_v,n98_m);
    13081308                }
    1309                 #ifndef NDEBUG
     1309                #ifndef SING_NDEBUG
    13101310                if (TEST_OPT_DEBUG)
    13111311                  Print("// opening ssi-%d, MAX_TOK=%d\n",n98_v,n98_m);
  • Singular/misc_ip.cc

    r9dba83b r7fe9e13  
    10061006#endif
    10071007
    1008 #ifndef NDEBUG
     1008#ifndef SING_NDEBUG
    10091009void checkall()
    10101010{
  • Singular/scanner.cc

    r9dba83b r7fe9e13  
    13261326                           #endif
    13271327                           #ifdef OM_TRACK
    1328                            #ifndef NDEBUG
     1328                           #ifndef SING_NDEBUG
    13291329                             omPrintUsedTrackAddrs(stdout, 10);
    13301330                           #endif
  • Singular/scanner.ll

    r9dba83b r7fe9e13  
    306306                           #endif
    307307                           #ifdef OM_TRACK
    308                            #ifndef NDEBUG
     308                           #ifndef SING_NDEBUG
    309309                             omPrintUsedTrackAddrs(stdout, 10);
    310310                           #endif
  • Singular/walk.cc

    r9dba83b r7fe9e13  
    19721972  if(mpz_cmp(t_nenner, t_null) == 0)
    19731973  {
    1974     #ifndef NDEBUG
     1974    #ifndef SING_NDEBUG
    19751975    Print("\n//MwalkNextWeightCC: t_nenner ist Null!");
    19761976    #endif
  • doc/C-STYLEGUIDE

    r9dba83b r7fe9e13  
    119119  - kernel routines have to document their requirements,
    120120    the checks have to be done in the interpreter.
    121     Repeat the checks only within #ifndef NDEBUG/#endif
     121    Repeat the checks only within #ifndef SING_NDEBUG/#endif
    122122    or via assert.
    123123  - input should be checked to conform with the documentation via assume
  • dyn_modules/bigintm/Makefile.am

    r9dba83b r7fe9e13  
    2727# NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-exceptions -fno-rtti
    2828# ## -fno-implicit-templates?
    29 # NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
     29# NODEBUGDEFS = -DSING_NDEBUG -DOM_NDEBUG
    3030
    3131# -DHAVE_CONFIG_H??
  • dyn_modules/bigintm/SConstruct

    r9dba83b r7fe9e13  
    4949        SHLIBSUFFIX = ".so",
    5050        CPPPATH = SING_INCLUDES,
    51         CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
     51        CPPDEFINES = ["SING_NDEBUG", "OM_NDEBUG"],
    5252        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
    5353        CCFLAGS="-O3 -fomit-frame-pointer ",
  • dyn_modules/callgfanlib/gfan.cc

    r9dba83b r7fe9e13  
    150150        {
    151151                if(f2Act==NULL
    152 #ifndef NDEBUG
     152#ifndef SING_NDEBUG
    153153  #if SIZEOF_LONG==8
    154154                                 || f2Act==(facet*)0xfefefefefefefefe
     
    200200void facet::shallowDelete()
    201201{
    202 #ifndef NDEBUG
     202#ifndef SING_NDEBUG
    203203//         printf("shallowdel@UCN %i\n", this->getUCN());
    204204#endif
     
    218218facet::~facet()
    219219{
    220 #ifndef NDEBUG
     220#ifndef SING_NDEBUG
    221221//         printf("~facet@UCN %i\n",this->getUCN());
    222222#endif
     
    399399inline void facet::printFlipGB()
    400400{
    401 #ifndef NDEBUG
     401#ifndef SING_NDEBUG
    402402        idShow(this->flipGB);
    403403#endif
     
    415415inline int facet::getUCN()
    416416{
    417 #ifndef NDEBUG
     417#ifndef SING_NDEBUG
    418418  #if SIZEOF_LONG==8
    419419        if((this!=NULL && this!=(facet * const)0xfbfbfbfbfbfbfbfb))
     
    422422  #endif
    423423#endif
    424 #ifdef NDEBUG
     424#ifdef SING_NDEBUG
    425425        if(this!=NULL)
    426426#endif
     
    457457volatile void facet::fDebugPrint()
    458458{
    459   #ifndef NDEBUG
     459  #ifndef SING_NDEBUG
    460460        facet *codim2Act;
    461461        codim2Act = this->codim2Ptr;
     
    557557gcone::~gcone()
    558558{
    559 #ifndef NDEBUG
     559#ifndef SING_NDEBUG
    560560  #if SIZEOF_LONG==8
    561561        if( ( this->gcBasis!=(ideal)(0xfbfbfbfbfbfbfbfb) ) && (this->gcBasis!=NULL) )
     
    630630volatile void gcone::showFacets(const short codim)
    631631{
    632   #ifndef NDEBUG
     632  #ifndef SING_NDEBUG
    633633        facet *f=this->facetPtr;
    634634        facet *f2=NULL;
     
    664664static volatile void showSLA(facet &f)
    665665{
    666   #ifndef NDEBUG
     666  #ifndef SING_NDEBUG
    667667        facet *fAct;
    668668        fAct = &f;
     
    702702static void idDebugPrint(const ideal &I)
    703703{
    704   #ifndef NDEBUG
     704  #ifndef SING_NDEBUG
    705705        int numElts=IDELEMS(I);
    706706        printf("Ideal with %i generators\n", numElts);
     
    957957//         delete gamma;
    958958        int offset=0;//needed for correction of redRowsArray[ii]
    959 #ifndef NDEBUG
     959#ifndef SING_NDEBUG
    960960        printf("Removed %i of %i in preprocessing step\n",num_elts,ddineq->rowsize);
    961961#endif
     
    10891089                                fAct->setFacetNormal(load);
    10901090                                fAct->setUCN(this->getUCN());
    1091 #ifndef NDEBUG
     1091#ifndef SING_NDEBUG
    10921092                                printf("Marking facet (");load->show(1,0);printf(") as non flippable\n");
    10931093#endif
     
    16551655        int64vec *fNormal;// = new int64vec(this->numVars);        //facet normal, check for parallelity
    16561656        fNormal = f->getFacetNormal();        //read this->fNormal;
    1657 #ifndef NDEBUG
     1657#ifndef SING_NDEBUG
    16581658//         std::cout << "running gcone::flip" << std::endl;
    16591659        printf("flipping UCN %i over facet",this->getUCN());
     
    16721672        computeInv(gb,initialForm,*fNormal);
    16731673
    1674 #ifndef NDEBUG
     1674#ifndef SING_NDEBUG
    16751675/*        cout << "Initial ideal is: " << endl;
    16761676        idShow(initialForm);
     
    17901790                        for (int kk=1;kk<=this->numVars;kk++)
    17911791                        {
    1792 #ifndef NDEBUG
     1792#ifndef SING_NDEBUG
    17931793//                                 cout << src_ExpV[kk] << "," << dst_ExpV[kk] << endl;
    17941794#endif
     
    18011801                        {
    18021802                                markingsAreCorrect=TRUE; //everything is fine
    1803 #ifndef NDEBUG
     1803#ifndef SING_NDEBUG
    18041804//                                 cout << "correct markings" << endl;
    18051805#endif
     
    19651965        test|=Sy_bit(OPT_REDSB);
    19661966        test|=Sy_bit(OPT_REDTAIL);
    1967 #ifndef NDEBUG
     1967#ifndef SING_NDEBUG
    19681968//         test|=Sy_bit(6);        //OPT_DEBUG
    19691969#endif
     
    19931993//         idDelete(&dstRing_I);
    19941994        f->flipRing=rCopy(dstRing);        //store the ring on the other side
    1995 #ifndef NDEBUG
     1995#ifndef SING_NDEBUG
    19961996         printf("Flipped GB is UCN %i:\n",counter+1);
    19971997         idDebugPrint(dstRing_I);
     
    20302030        const int64vec *fNormal;
    20312031        fNormal = f->getRef2FacetNormal();/*->getFacetNormal();*/        //read this->fNormal;
    2032 #ifndef NDEBUG
     2032#ifndef SING_NDEBUG
    20332033//         printf("flipping UCN %i over facet(",this->getUCN());
    20342034//         fNormal->show(1,0);
     
    22242224                }//while
    22252225//                 omFree(v);
    2226 #ifndef NDEBUG
     2226#ifndef SING_NDEBUG
    22272227//                  cout << "Initial Form=";
    22282228//                  pWrite(initialFormElement[ii]);
     
    23982398        for (int i=0;i<pVariables;i++)
    23992399        {
    2400 // #ifndef NDEBUG
     2400// #ifndef SING_NDEBUG
    24012401//         (const_cast<int64vec*>(&iva))->show(1,0); (const_cast<int64vec*>(&ivb))->show(1,0);
    24022402// #endif
     
    24522452        if (err!=dd_NoError){WerrorS("Error during dd_Matrix2LP in gcone::interiorPoint");}
    24532453        if (lp==NULL){WerrorS("LP is NULL");}
    2454 #ifndef NDEBUG
     2454#ifndef SING_NDEBUG
    24552455//                        dd_WriteLP(stdout,lp);
    24562456#endif
     
    24582458        lpInt=dd_MakeLPforInteriorFinding(lp);
    24592459        if (err!=dd_NoError){WerrorS("Error during dd_MakeLPForInteriorFinding in gcone::interiorPoint");}
    2460 #ifndef NDEBUG
     2460#ifndef SING_NDEBUG
    24612461//                         dd_WriteLP(stdout,lpInt);
    24622462#endif
     
    24712471        lpSol=dd_CopyLPSolution(lpInt);
    24722472//         if (err!=dd_NoError){WerrorS("Error during dd_CopyLPSolution");}
    2473 #ifndef NDEBUG
     2473#ifndef SING_NDEBUG
    24742474        printf("Interior point: ");
    24752475        for (int ii=1; ii<(lpSol->d)-1;ii++)
     
    25032503                mpq_clear(product);
    25042504        }
    2505 #ifndef NDEBUG
     2505#ifndef SING_NDEBUG
    25062506//                         iv.show();
    25072507//                         cout << endl;
     
    25382538// void gcone::interiorPoint2()
    25392539// {//idPrint(this->gcBasis);
    2540 // #ifndef NDEBUG
     2540// #ifndef SING_NDEBUG
    25412541//         if(this->ivIntPt!=NULL)
    25422542//                 WarnS("Interior point already exists - ovrewriting!");
     
    29472947        rAct = currRing;
    29482948        int UCNcounter=gcAct->getUCN();
    2949 #ifndef NDEBUG
     2949#ifndef SING_NDEBUG
    29502950        printf("NoRevs\n");
    29512951        printf("Facets are:\n");
     
    30443044        SearchListAct = SearchListRoot;        //Set to beginning of list
    30453045        /*Make SearchList doubly linked*/
    3046 #ifndef NDEBUG
     3046#ifndef SING_NDEBUG
    30473047  #if SIZEOF_LONG==8
    30483048        while(SearchListAct!=(facet*)0xfefefefefefefefe && SearchListAct!=NULL)
     
    31083108                        //gcTmp->ddFacets should not be needed anymore, so
    31093109                        dd_FreeMatrix(gcTmp->ddFacets);
    3110 #ifndef NDEBUG
     3110#ifndef SING_NDEBUG
    31113111//                         gcTmp->showFacets(1);
    31123112#endif
    31133113                        /*add facets to SLA here*/
    31143114#ifdef SHALLOW
    3115   #ifndef NDEBUG
     3115  #ifndef SING_NDEBUG
    31163116                        printf("fActUCN before enq2: %i\n",fAct->getUCN());
    31173117  #endif
    31183118                        facet *tmp;
    31193119                        tmp=gcTmp->enqueue2(SearchListRoot);
    3120   #ifndef NDEBUG
     3120  #ifndef SING_NDEBUG
    31213121                        printf("\nheadUCN=%i\n",tmp->getUCN());
    31223122                        printf("fActUCN after enq2: %i\n",fAct->getUCN());
     
    31343134                                rDelete(gcTmp->baseRing);
    31353135                         }
    3136 #ifndef NDEBUG
     3136#ifndef SING_NDEBUG
    31373137                        if(SearchListRoot!=NULL)
    31383138                                showSLA(*SearchListRoot);
     
    31593159                }//while( ( (fAct->next!=NULL) && (fAct->getUCN()==fAct->next->getUCN() ) ) );
    31603160                //Search for cone with smallest UCN
    3161 #ifndef NDEBUG
     3161#ifndef SING_NDEBUG
    31623162  #if SIZEOF_LONG==8        //64 bit
    31633163                while(gcNext!=(gcone * const)0xfbfbfbfbfbfbfbfb && SearchListRoot!=NULL)
     
    31663166  #endif
    31673167#endif
    3168 #ifdef NDEBUG
     3168#ifdef SING_NDEBUG
    31693169                while(gcNext!=NULL && SearchListRoot!=NULL)
    31703170#endif
     
    34473447                                removalOccured=FALSE;
    34483448                                slNormal = slAct->getFacetNormal();
    3449 #ifndef NDEBUG
     3449#ifndef SING_NDEBUG
    34503450                                printf("Checking facet (");fNormal->show(1,1);printf(") against (");slNormal->show(1,1);printf(")\n");
    34513451#endif
     
    34783478//                                                 deleteMarker=NULL;
    34793479                                        }
    3480 #ifndef NDEBUG
     3480#ifndef SING_NDEBUG
    34813481                                        printf("Removing (");fNormal->show(1,1);printf(") from list\n");
    34823482#endif
     
    35003500                        if(removalOccured==FALSE)
    35013501                        {
    3502 #ifndef NDEBUG
     3502#ifndef SING_NDEBUG
    35033503//                                 cout << "Adding facet (";fNormal->show(1,0);cout << ") to SLA " << endl;
    35043504#endif
     
    36273627                        {
    36283628                                removalOccured=FALSE;
    3629 #ifndef NDEBUG
     3629#ifndef SING_NDEBUG
    36303630        printf("Checking facet (");fAct->fNormal->show(1,1);printf(") against (");slAct->fNormal->show(1,1);printf(")\n");
    36313631#endif
     
    36633663                                        removalOccured=TRUE;
    36643664                                        gcone::lengthOfSearchList--;
    3665 #ifndef NDEBUG
     3665#ifndef SING_NDEBUG
    36663666printf("Removing (");fAct->fNormal->show(1,1);printf(") from list\n");
    36673667#endif
  • dyn_modules/callgfanlib/gitfan.cc

    r9dba83b r7fe9e13  
    3636    facetNormal(f.facetNormal)
    3737  {
    38 #ifndef NDEBUG
     38#ifndef SING_NDEBUG
    3939    gfan::ZCone c = f.eta;
    4040    gfan::ZVector v = f.interiorPoint;
     
    5252    facetNormal(w)
    5353  {
    54 #ifndef NDEBUG
     54#ifndef SING_NDEBUG
    5555    assume(c.ambientDimension() == (int)v.size());
    5656    assume(c.ambientDimension() == (int)w.size());
     
    6262  facet::~facet()
    6363  {
    64 #ifndef NDEBUG
     64#ifndef SING_NDEBUG
    6565    gfan::ZCone c = this->eta;
    6666    gfan::ZVector v = this->interiorPoint;
  • dyn_modules/callgfanlib/gitfan.h

    r9dba83b r7fe9e13  
    3737      const gfan::ZVector v1 = f.interiorPoint;
    3838      const gfan::ZVector v2 = g.interiorPoint;
    39 #ifndef NDEBUG
     39#ifndef SING_NDEBUG
    4040      assume(v1.size() == v2.size());
    4141#endif
  • dyn_modules/modgen/Makefile.in

    r9dba83b r7fe9e13  
    4646##
    4747CFLAGS  += -fno-rtti -fno-exceptions -O3 -w -fomit-frame-pointer -pipe -fno-implicit-templates \
    48         -g -I${includedir} -I../include -I${topsrcdir}/.. -DNDEBUG -DMODULE_GENERATOR \
     48        -g -I${includedir} -I../include -I${topsrcdir}/.. -DSING_NDEBUG -DMODULE_GENERATOR \
    4949        -D${SING_UNAME}
    5050LIBS    += -L/usr/local/lib
  • dyn_modules/modgen/makefile.cc

    r9dba83b r7fe9e13  
    9191  fprintf(fp, "SINGUNAME\t= %s\n",SINGUNAME);
    9292#warning "PROBLEM: nice place for include file has to be found"
    93   fprintf(fp, "CFLAGS\t= -DNDEBUG -DBUILD_MODULE -I. -I${SINGULARROOT} -I${SINGULARROOT}/${SINGUNAME}/include\n");
     93  fprintf(fp, "CFLAGS\t= -DSING_NDEBUG -DBUILD_MODULE -I. -I${SINGULARROOT} -I${SINGULARROOT}/${SINGUNAME}/include\n");
    9494  fprintf(fp, "DCFLAGS\t= -DBUILD_MODULE -I. -I${SINGULARROOT} -I${SINGULARROOT}/${SINGUNAME}/include\n");
    9595  fprintf(fp, "#LD\t=\n");
  • dyn_modules/python/Makefile

    r9dba83b r7fe9e13  
    1212SINGULAR_BASE=../..
    1313SING_ARCH=ix86
    14 CFLAGS  = -DNDEBUG -DBUILD_MODULE -I. -I${SINGULAR_BASE}/kernel -I${SINGULAR_BASE}/Singular -I/home/michael/sing/${SING_ARCH}-Linux/include  -I/usr/include/python${PYTHON_VERSION}
     14CFLAGS  = -DSING_NDEBUG -DBUILD_MODULE -I. -I${SINGULAR_BASE}/kernel -I${SINGULAR_BASE}/Singular -I/home/michael/sing/${SING_ARCH}-Linux/include  -I/usr/include/python${PYTHON_VERSION}
    1515DCFLAGS = -DBUILD_MODULE -I. -I/home/michael/sing/kernel -I${SINGULAR_BASE}/Singular -I/home/michael/sing/${SING_ARCH}-Linux/include -I/usr/include/python${PYTHON_VERSION}
    1616LDFLAGS= -lboost_python -lpython${PYTHON_VERSION}
  • dyn_modules/python/SConstruct

    r9dba83b r7fe9e13  
    108108#                       SING_ROOT+"/Singular", SING_ROOT+"/"+SING_ARCH +"/include",\
    109109#                       PYTHON_CONFIG.incdir, BOOST_PREFIX+"/include", "/sw/include"],
    110 #              LIBS=["boost_python",PYTHON_CONFIG.libname], CPPDEFINES=["NDEBUG","BUILD_MODULE"], SHLIBPREFIX="")
     110#              LIBS=["boost_python",PYTHON_CONFIG.libname], CPPDEFINES=["SING_NDEBUG","BUILD_MODULE"], SHLIBPREFIX="")
    111111env['LDMODULESUFFIX'] = '.so'
    112112if platform=="cygwin":
     
    138138              LIBPATH=[PYTHON_CONFIG.libdir],\
    139139              CXXFLAGS="-O2",\
    140               LIBS=["boost_python",PYTHON_CONFIG.libname], CPPDEFINES=["NDEBUG","BUILD_MODULE"], SHLIBPREFIX="")
     140              LIBS=["boost_python",PYTHON_CONFIG.libname], CPPDEFINES=["SING_NDEBUG","BUILD_MODULE"], SHLIBPREFIX="")
    141141
    142142
  • dyn_modules/syzextra/SConstruct

    r9dba83b r7fe9e13  
    4949        SHLIBSUFFIX = ".so",
    5050        CPPPATH = SING_INCLUDES,
    51         CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
     51        CPPDEFINES = ["SING_NDEBUG", "OM_NDEBUG"],
    5252        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
    5353        CCFLAGS="-O3 -fomit-frame-pointer ",
  • dyn_modules/syzextra/mod_main.cc

    r9dba83b r7fe9e13  
    219219static inline void view(const intvec* v)
    220220{
    221 #ifndef NDEBUG
     221#ifndef SING_NDEBUG
    222222  v->view();
    223223#else
    224   // This code duplication is only due to Hannes's #ifndef NDEBUG!
     224  // This code duplication is only due to Hannes's #ifndef SING_NDEBUG!
    225225  Print ("intvec: {rows: %d, cols: %d, length: %d, Values: \n", v->rows(), v->cols(), v->length());
    226226
  • dyn_modules/tools/Makefile.in

    r9dba83b r7fe9e13  
    22#
    33#
    4 CFLAGS  += -g -I../include -I../../Singular -DNDEBUG -DMODULE_GENERATOR
     4CFLAGS  += -g -I../include -I../../Singular -DSING_NDEBUG -DMODULE_GENERATOR
    55LIBS    += -L/usr/local/lib -lgmp
    66
  • dyn_modules/tools/misc.cc

    r9dba83b r7fe9e13  
    650650  fprintf(fp, "CC\t= gcc\n");
    651651  fprintf(fp, "CXX\t= gcc\n");
    652   fprintf(fp, "CFLAGS\t= -DNDEBUG -DBUILD_MODULE -I. -I../include\n");
     652  fprintf(fp, "CFLAGS\t= -DSING_NDEBUG -DBUILD_MODULE -I. -I../include\n");
    653653  fprintf(fp, "#LD\t=\n");
    654654  fprintf(fp, "\n");
  • factory/ChangeLog

    r9dba83b r7fe9e13  
    15201520          removed
    15211521
    1522         * debug.h: dependency on #define NDEBUG removed
     1522        * debug.h: dependency on #define SING_NDEBUG removed
    15231523
    15241524        * factoryconf.template: doc fix
     
    16081608        debug.h, cf_assert.h, and timing.h, resp.
    16091609
    1610         * cf_assert.h (NOASSERT, NDEBUG): #define NDEBUG to switch off
     1610        * cf_assert.h (NOASSERT, SING_NDEBUG): #define SING_NDEBUG to switch off
    16111611          assertions replaced by #define NOASSERT.  For sake of backward
    1612           compatibility NDEBUG works, too.
     1612          compatibility SING_NDEBUG works, too.
    16131613
    16141614        * cf_assert.h (DEBINCLEVEL, DEBDECLEVEL, DEBOUTSL, DEBOUT, DEBOUTLN):
     
    16651665          (hprint): calls to hprint() wrapped by calls to #define
    16661666          DEBOUTHPRINT, which definition depends on #define DEBUGOUTPUT
    1667           (instead of NDEBUG, as before).  All callers changed.
     1667          (instead of SING_NDEBUG, as before).  All callers changed.
    16681668
    16691669        * cf_linsys.cc: superfluous #define TIMING removed
     
    16971697
    16981698        * debug.h (DEBUGOUTPUT): #define DEBUGOUTPUT is switched off now
    1699           if #define NDEBUG is switched on
     1699          if #define SING_NDEBUG is switched on
    17001700
    17011701        * fac_univar.cc (ZFactorizeUnivariate): timing stuff changed to
  • factory/cf_assert.h

    r9dba83b r7fe9e13  
    22
    33/* This is for compatibility with standard cf_assert.h */
    4 #if defined (NDEBUG) && ! defined (NOASSERT)
     4#if defined (SING_NDEBUG) && ! defined (NOASSERT)
    55#define NOASSERT
    66#endif
  • factory/libfac/Makefile.am

    r9dba83b r7fe9e13  
    2121AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${builddir} -I${srcdir}/.. -I${builddir}/.. -I${srcdir}/../include  -I${builddir}/../include -I${srcdir}/factor  -I${builddir}/factor -I${srcdir}/charset -I${builddir}/charset ${GMP_CFLAGS} ${NTL_CFLAGS}  -DHAVE_CONFIG_H
    2222
    23 # libfac_la_CPPFLAGS   = ${AM_CPPFLAGS} -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
     23# libfac_la_CPPFLAGS   = ${AM_CPPFLAGS} -DSING_NDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
    2424# libfac_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    2525
  • factory/libfac/charset/charset.cc

    r9dba83b r7fe9e13  
    9090}
    9191
    92 #ifdef MCHARSETNDEBUG
     92#ifdef MCHARSETSING_NDEBUG
    9393#  define DEBUGOUTPUT
    9494#else
     
    110110//     if ( getNumVars(CSet.getFirst()) > 1 ){
    111111//       //CSet = removecontent(CSet, Remembern);
    112 // #ifdef MCHARSETNDEBUG
     112// #ifdef MCHARSETSING_NDEBUG
    113113//       CERR << "MCharSetN: CSet= " << CSet << "\n";
    114114// #endif
  • factory/libfac/configure

    r9dba83b r7fe9e13  
    602602    CXXFLAGS="-O"
    603603    cat >> confdefs.h <<\EOF
    604 #define NDEBUG 1
     604#define SING_NDEBUG 1
    605605EOF
    606606
  • factory/libfac/configure.in

    r9dba83b r7fe9e13  
    7777  else
    7878    CXXFLAGS="-O"
    79     AC_DEFINE(NDEBUG)
     79    AC_DEFINE(SING_NDEBUG)
    8080  fi
    8181fi
  • factory/libfac/factor/Factor.cc

    r9dba83b r7fe9e13  
    430430    //    if ( ! ok ) return 0; // we failed
    431431    //  }
    432       #ifndef NDEBUG
     432      #ifndef SING_NDEBUG
    433433        //printf("libfac: try_specializePoly: extension level >0\n");
    434434      #endif
  • factory/libfac/factor/debug.h

    r9dba83b r7fe9e13  
    1818#include <stdlib.h>
    1919
    20 #ifdef NDEBUG
     20#ifdef SING_NDEBUG
    2121#define ASSERT(ignore1,ignore2)do {} while (0)
    2222#else
  • kernel/fast_maps.cc

    r9dba83b r7fe9e13  
    100100*F  debugging stuff
    101101*/
    102 #ifndef NDEBUG
     102#ifndef SING_NDEBUG
    103103void maMonomial_Out(mapoly monomial, ring src_r, ring dest_r)
    104104{
  • kernel/gr_kstd2.cc

    r9dba83b r7fe9e13  
    13151315ideal gnc_gr_mora(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
    13161316{
    1317 #ifndef NDEBUG
     1317#ifndef SING_NDEBUG
    13181318  // Not yet!
    13191319  WarnS("Sorry, non-commutative mora is not yet implemented!");
  • kernel/ideals.cc

    r9dba83b r7fe9e13  
    1414#include <omalloc/omalloc.h>
    1515
    16 #ifndef NDEBUG
     16#ifndef SING_NDEBUG
    1717# define MYTEST 0
    18 #else /* ifndef NDEBUG */
     18#else /* ifndef SING_NDEBUG */
    1919# define MYTEST 0
    20 #endif /* ifndef NDEBUG */
     20#endif /* ifndef SING_NDEBUG */
    2121
    2222#include <omalloc/omalloc.h>
  • kernel/kmatrix.h

    r9dba83b r7fe9e13  
    123123        a = new K[k];
    124124
    125         #ifndef NDEBUG
     125        #ifndef SING_NDEBUG
    126126        if( a == (K*)NULL )
    127127        {
  • kernel/kstd1.cc

    r9dba83b r7fe9e13  
    1414#define MORA_USE_BUCKETS
    1515
    16 #ifndef NDEBUG
     16#ifndef SING_NDEBUG
    1717# define MYTEST 0
    18 #else /* ifndef NDEBUG */
     18#else /* ifndef SING_NDEBUG */
    1919# define MYTEST 0
    20 #endif /* ifndef NDEBUG */
     20#endif /* ifndef SING_NDEBUG */
    2121
    2222#define ADIDEBUG 0
  • kernel/kstd2.cc

    r9dba83b r7fe9e13  
    1818#include <kernel/mod2.h>
    1919
    20 #ifndef NDEBUG
     20#ifndef SING_NDEBUG
    2121# define MYTEST 0
    22 #else /* ifndef NDEBUG */
     22#else /* ifndef SING_NDEBUG */
    2323# define MYTEST 0
    24 #endif /* ifndef NDEBUG */
     24#endif /* ifndef SING_NDEBUG */
    2525
    2626#if MYTEST
  • kernel/kstdfac.cc

    r9dba83b r7fe9e13  
    2727#include <kernel/kstdfac.h>
    2828
    29 #ifndef NDEBUG
     29#ifndef SING_NDEBUG
    3030int strat_nr=0;
    3131int strat_fac_debug=0;
     
    277277      }
    278278    }
    279 #ifndef NDEBUG
     279#ifndef SING_NDEBUG
    280280    else if (strat_fac_debug)
    281281    {
     
    401401        }
    402402      }
    403 #ifndef NDEBUG
     403#ifndef SING_NDEBUG
    404404      if(strat_fac_debug)
    405405      {
     
    432432            if (r==NULL)
    433433            {
    434 #ifndef NDEBUG
     434#ifndef SING_NDEBUG
    435435              if(strat_fac_debug)
    436436              {
     
    484484          {
    485485            ideal r=kNF(n->Shdl,NULL,Lj->d,0,KSTD_NF_LAZY | KSTD_NF_NONORM);
    486 #ifndef NDEBUG
     486#ifndef SING_NDEBUG
    487487              if(strat_fac_debug)
    488488              {
     
    719719          }
    720720        }
    721 #ifndef NDEBUG
     721#ifndef SING_NDEBUG
    722722        if(strat_fac_debug)
    723723        {
     
    750750              if (r==NULL)
    751751              {
    752 #ifndef NDEBUG
     752#ifndef SING_NDEBUG
    753753                if(strat_fac_debug)
    754754                {
     
    806806              if (idIs0(r))
    807807              {
    808 #ifndef NDEBUG
     808#ifndef SING_NDEBUG
    809809                if(strat_fac_debug)
    810810                {
     
    954954      ideal_list LL=(ideal_list)omAlloc(sizeof(*LL));
    955955      LL->d=r;
    956 #ifndef NDEBUG
     956#ifndef SING_NDEBUG
    957957      LL->nr=strat->nr;
    958958#endif
     
    975975        if (idIs0(r))
    976976        {
    977 #ifndef NDEBUG
     977#ifndef SING_NDEBUG
    978978          if(strat_fac_debug)
    979979          {
  • kernel/kutil.cc

    r9dba83b r7fe9e13  
    1616#include "mod2.h"
    1717
    18 #ifndef NDEBUG
     18#ifndef SING_NDEBUG
    1919# define MYTEST 0
    20 #else /* ifndef NDEBUG */
     20#else /* ifndef SING_NDEBUG */
    2121# define MYTEST 0
    22 #endif /* ifndef NDEBUG */
     22#endif /* ifndef SING_NDEBUG */
    2323
    2424
     
    83328332      if ( nc_rComplete(r, res, false) ) // no qideal!
    83338333      {
    8334 #ifndef NDEBUG
     8334#ifndef SING_NDEBUG
    83358335        WarnS("error in nc_rComplete");
    83368336#endif
     
    83878387      if ( nc_rComplete(r, res, false) ) // no qideal!
    83888388      {
    8389 #ifndef NDEBUG
     8389#ifndef SING_NDEBUG
    83908390        WarnS("error in nc_rComplete");
    83918391#endif
     
    85168516{
    85178517  memset(this, 0, sizeof(skStrategy));
    8518 #ifndef NDEBUG
     8518#ifndef SING_NDEBUG
    85198519  strat_nr++;
    85208520  nr=strat_nr;
     
    88258825    }
    88268826
    8827 #ifndef NDEBUG
     8827#ifndef SING_NDEBUG
    88288828    rDebugPrint(currRing);
    88298829#endif
  • kernel/kutil.h

    r9dba83b r7fe9e13  
    170170};
    171171
    172 #ifndef NDEBUG
     172#ifndef SING_NDEBUG
    173173extern int strat_nr;
    174174extern int strat_fac_debug;
     
    341341  omBin lmBin;
    342342  omBin tailBin;
    343 #ifndef NDEBUG
     343#ifndef SING_NDEBUG
    344344  int nr;
    345345#endif
  • kernel/mod2.h

    r9dba83b r7fe9e13  
    157157/*******************************************************************
    158158 * DEBUG OPTIONS
    159  * -- only significant for for compiling without -DNDEBUG
     159 * -- only significant for for compiling without -DSING_NDEBUG
    160160 * -- you better know what your are doing, if you touch this
    161161 ******************************************************************/
    162 #ifndef NDEBUG
     162#ifndef SING_NDEBUG
    163163
    164164/* undefine to enable inline */
    165165#define NO_INLINE
    166166
    167 /* undefine to disable assume -- should normally be defined for NDEBUG */
     167/* undefine to disable assume -- should normally be defined for SING_NDEBUG */
    168168#define HAVE_ASSUME
    169169
     
    366366
    367367
    368 #else /* not NDEBUG **************************************************** */
     368#else /* not SING_NDEBUG **************************************************** */
    369369
    370370#define NO_PDEBUG
     
    373373#define YYDEBUG 0
    374374
    375 #endif /* not NDEBUG */
     375#endif /* not SING_NDEBUG */
    376376
    377377/*******************************************************************
  • kernel/mod2.h.cmake.in

    r9dba83b r7fe9e13  
    323323/*******************************************************************
    324324 * DEBUG OPTIONS
    325  * -- only significant for for compiling without -DNDEBUG
     325 * -- only significant for for compiling without -DSING_NDEBUG
    326326 * -- you better know what your are doing, if you touch this
    327327 ******************************************************************/
    328 #ifndef NDEBUG
     328#ifndef SING_NDEBUG
    329329
    330330/* undefine to enable inline */
    331331#define NO_INLINE
    332332
    333 /* undefine to disable assume -- should normally be defined for NDEBUG */
     333/* undefine to disable assume -- should normally be defined for SING_NDEBUG */
    334334#define HAVE_ASSUME
    335335
     
    544544
    545545
    546 #else /* not NDEBUG **************************************************** */
     546#else /* not SING_NDEBUG **************************************************** */
    547547
    548548#define NO_PDEBUG
     
    551551#define YYDEBUG 0
    552552
    553 #endif /* not NDEBUG */
     553#endif /* not SING_NDEBUG */
    554554
    555555/*******************************************************************
     
    964964/*******************************************************************
    965965 * DEBUG OPTIONS
    966  * -- only significant for for compiling without -DNDEBUG
     966 * -- only significant for for compiling without -DSING_NDEBUG
    967967 * -- you better know what your are doing, if you touch this
    968968 ******************************************************************/
    969 #ifndef NDEBUG
     969#ifndef SING_NDEBUG
    970970
    971971/* undefine to enable inline */
    972972#define NO_INLINE
    973973
    974 /* undefine to disable assume -- should normally be defined for NDEBUG */
     974/* undefine to disable assume -- should normally be defined for SING_NDEBUG */
    975975#define HAVE_ASSUME
    976976
     
    11851185
    11861186
    1187 #else /* not NDEBUG **************************************************** */
     1187#else /* not SING_NDEBUG **************************************************** */
    11881188
    11891189#define NO_PDEBUG
     
    11921192#define YYDEBUG 0
    11931193
    1194 #endif /* not NDEBUG */
     1194#endif /* not SING_NDEBUG */
    11951195
    11961196/*******************************************************************
  • kernel/multicnt.cc

    r9dba83b r7fe9e13  
    3636        cnt = new int[n];
    3737
    38         #ifndef NDEBUG
     38        #ifndef SING_NDEBUG
    3939        if( cnt == (int*)NULL )
    4040        {
  • kernel/npolygon.cc

    r9dba83b r7fe9e13  
    301301    l = new linearForm[k];
    302302
    303     #ifndef NDEBUG
     303    #ifndef SING_NDEBUG
    304304      if( l == (linearForm*)NULL )
    305305      {
  • kernel/sca.cc

    r9dba83b r7fe9e13  
    112112  assume(rIsSCA(currRing));
    113113
    114 #ifndef NDEBUG
     114#ifndef SING_NDEBUG
    115115  idTest(F);
    116116  idTest(Q);
     
    385385  assume(rIsSCA(currRing));
    386386
    387 #ifndef NDEBUG
     387#ifndef SING_NDEBUG
    388388  idTest(F);
    389389  idTest(Q);
  • kernel/semic.cc

    r9dba83b r7fe9e13  
    6363        w = new int[k];
    6464
    65         #ifndef NDEBUG
     65        #ifndef SING_NDEBUG
    6666        if( s == (Rational*)NULL || w == (int*)NULL )
    6767        {
  • kernel/syz3.cc

    r9dba83b r7fe9e13  
    238238* only for tests
    239239*/
    240 #ifdef NDEBUG
     240#ifdef SING_NDEBUG
    241241static void syTestPairs(SSet resPairs,int length,ideal /*old_generators*/)
    242242#else
  • kernel/tgb.cc

    r9dba83b r7fe9e13  
    25182518    pIter (p);
    25192519    pNext (t) = NULL;
    2520 #ifndef NDEBUG
     2520#ifndef SING_NDEBUG
    25212521    number coef_debug = p_GetCoeff (t, currRing);
    25222522#endif
     
    44874487}
    44884488
    4489 #ifdef NDEBUG
     4489#ifdef SING_NDEBUG
    44904490static void
    44914491multi_reduction_find (red_object * los, int /*losl*/, slimgb_alg * c, int startf,
  • kernel/tgb_internal.h

    r9dba83b r7fe9e13  
    919919return res;
    920920}
    921 #ifdef NDEBUG
     921#ifdef SING_NDEBUG
    922922template <class number_type> void add_coef_times_sparse(number_type* const temp_array,
    923923int /*temp_size*/,SparseRow<number_type>* row, number coef)
     
    965965  }
    966966}
    967 #ifdef NDEBUG
     967#ifdef SING_NDEBUG
    968968template <class number_type> void add_coef_times_dense(number_type* const temp_array,
    969969int /*temp_size*/,const number_type* row, int len,number coef)
     
    10111011  }
    10121012}
    1013 #ifdef NDEBUG
     1013#ifdef SING_NDEBUG
    10141014template <class number_type> void add_dense(number_type* const temp_array,
    10151015int /*temp_size*/,const number_type* row, int len)
     
    10351035
    10361036}
    1037 #ifdef NDEBUG
     1037#ifdef SING_NDEBUG
    10381038template <class number_type> void sub_dense(number_type* const temp_array,
    10391039int /*temp_size*/,const number_type* row, int len)
     
    10611061}
    10621062
    1063 #ifdef NDEBUG
     1063#ifdef SING_NDEBUG
    10641064template <class number_type> void add_sparse(number_type* const temp_array,int /*temp_size*/,SparseRow<number_type>* row)
    10651065#else
     
    10791079        }
    10801080}
    1081 #ifdef NDEBUG
     1081#ifdef SING_NDEBUG
    10821082template <class number_type> void sub_sparse(number_type* const temp_array,int /*temp_size*/,SparseRow<number_type>* row)
    10831083#else
  • kernel/tgbgauss.cc

    r9dba83b r7fe9e13  
    228228        assume(mat->min_col_not_zero_in_row(i)>=col);
    229229        assume(row_cache[i]==mat->min_col_not_zero_in_row(i));
    230 #ifndef NDEBUG
     230#ifndef SING_NDEBUG
    231231        int first=row_cache[i];
    232232        assume(first!=matcol);
     
    264264      assume(mat->min_col_not_zero_in_row(i)>=col);
    265265      assume(row_cache[i]==mat->min_col_not_zero_in_row(i));
    266 #ifndef NDEBUG
     266#ifndef SING_NDEBUG
    267267      int first=row_cache[i];
    268268      assume(first!=matcol);
     
    839839    while (m!=NULL)
    840840    {
    841       #ifndef NDEBUG
     841      #ifndef SING_NDEBUG
    842842      if (currRing==r) {nTest(m->coef);}
    843843      #endif
  • libpolys/coeffs/bigintmat.cc

    r9dba83b r7fe9e13  
    207207  if (ca != rb)
    208208  {
    209 #ifndef NDEBUG
     209#ifndef SING_NDEBUG
    210210    Werror("wrong bigintmat sizes at multiplication a * b: acols: %d != brows: %d\n", ca, rb);
    211211#endif
     
    310310  assume (basecoeffs() == op->basecoeffs() );
    311311
    312 #ifndef NDEBUG
     312#ifndef SING_NDEBUG
    313313  if (basecoeffs() != op->basecoeffs() )
    314314    WerrorS("wrong bigintmat comparison: different basecoeffs!\n");
  • libpolys/coeffs/bigintmat.h

    r9dba83b r7fe9e13  
    7171    inline number& operator[](int i)
    7272    {
    73 #ifndef NDEBUG
     73#ifndef SING_NDEBUG
    7474      if((i<0)||(i>=row*col))
    7575      {
     
    8383    inline const number& operator[](int i) const
    8484    {
    85 #ifndef NDEBUG
     85#ifndef SING_NDEBUG
    8686      if((i<0)||(i>=row*col))
    8787      {
     
    157157        n_Delete(&(v[i]), basecoeffs()); v[i] = n;
    158158      }
    159 #ifndef NDEBUG
     159#ifndef SING_NDEBUG
    160160      else
    161161      {
  • libpolys/coeffs/ffields.cc

    r9dba83b r7fe9e13  
    637637  if (fftable[i]==0)
    638638  {
    639 #ifndef NDEBUG
     639#ifndef SING_NDEBUG
    640640    Warn("illegal GF-table size: %d", c);
    641641#endif
     
    922922  if(p->GFChar > (2<<15))
    923923  {
    924 #ifndef NDEBUG
     924#ifndef SING_NDEBUG
    925925    Warn("illegal characteristic");
    926926#endif
     
    932932  if( (p->GFDegree * check) > sixteenlog2 )
    933933  {
    934 #ifndef NDEBUG
     934#ifndef SING_NDEBUG
    935935    Warn("Sorry: illegal size: %u ^ %u", p->GFChar, p->GFDegree );
    936936#endif
     
    944944  if( r->m_nfPlus1Table == NULL )
    945945  {
    946 #ifndef NDEBUG
     946#ifndef SING_NDEBUG
    947947    Warn("Sorry: cannot init lookup table!");
    948948#endif
  • libpolys/coeffs/mpr_global.h

    r9dba83b r7fe9e13  
    1818
    1919// --------------------------- debugging stuff ----------------------------
    20 #if !defined(NDEBUG)
     20#if !defined(SING_NDEBUG)
    2121//#define mprDEBUG_ALL
    2222#endif
    2323
    24 #if !defined(NDEBUG) || defined(mprDEBUG_ALL)
     24#if !defined(SING_NDEBUG) || defined(mprDEBUG_ALL)
    2525//#define mprDEBUG_PROT
    2626#endif
  • libpolys/coeffs/numbers.cc

    r9dba83b r7fe9e13  
    454454    assume(n->type==t);
    455455     
    456 #ifndef NDEBUG
     456#ifndef SING_NDEBUG
    457457    if(n->cfKillChar==NULL) Warn("cfKillChar is NULL for coeff %d",t);
    458458    if(n->cfWriteLong==NULL) Warn("cfWrite is NULL for coeff %d",t);
  • libpolys/libpolys-config.in

    r9dba83b r7fe9e13  
    9090
    9191    --cflags)
    92         ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG"
     92        ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DSING_NDEBUG -DOM_NDEBUG"
    9393        ;;
    9494
  • libpolys/misc/Makefile.am

    r9dba83b r7fe9e13  
    2222# # -fdiagnostics-show-option
    2323 
    24 # libmisc_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
     24# libmisc_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DSING_NDEBUG -DOM_NDEBUG
    2525# libmisc_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    2626# libmisc_la_CPPFLAGS = ${AM_CPPFLAGS}
     
    5555# libintvec_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} -fwrapv -fno-implicit-templates
    5656
    57 # libintvec_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
     57# libintvec_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DSING_NDEBUG -DOM_NDEBUG
    5858# libintvec_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    5959# libintvec_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
  • libpolys/misc/auxiliary.h.in

    r9dba83b r7fe9e13  
    195195/*******************************************************************
    196196 * DEBUG OPTIONS
    197  * -- only significant for for compiling without -DNDEBUG
     197 * -- only significant for for compiling without -DSING_NDEBUG
    198198 * -- you better know what your are doing, if you touch this
    199199 ******************************************************************/
    200 #ifndef NDEBUG
     200#ifndef SING_NDEBUG
    201201
    202202/* undefine to enable inline */
    203203#define NO_INLINE
    204204
    205 /* undefine to disable assume -- should normally be defined for NDEBUG */
     205/* undefine to disable assume -- should normally be defined for SING_NDEBUG */
    206206#define HAVE_ASSUME
    207207
     
    370370
    371371#endif
    372 /* end of debugging option (ifndef NDEBUG) */
     372/* end of debugging option (ifndef SING_NDEBUG) */
    373373
    374374
     
    377377#      define FORCE_INLINE inline
    378378#else
    379 #ifdef NDEBUG
     379#ifdef SING_NDEBUG
    380380#if   defined(_MSC_VER)
    381381#      define FORCE_INLINE __forceinline
     
    388388#      define FORCE_INLINE inline
    389389#endif
    390 /* NDEBUG */
     390/* SING_NDEBUG */
    391391#endif
    392392/* _DEBUG */
  • libpolys/misc/int64vec.h

    r9dba83b r7fe9e13  
    3131  int64& operator[](int i)
    3232    {
    33 #ifndef NDEBUG
     33#ifndef SING_NDEBUG
    3434      if((i<0)||(i>=row*col))
    3535      {
     
    4141  inline const int64& operator[](int i) const
    4242    {
    43 #ifndef NDEBUG
     43#ifndef SING_NDEBUG
    4444      if((i<0)||(i>=row*col))
    4545      {
  • libpolys/misc/intvec.cc

    r9dba83b r7fe9e13  
    135135}
    136136
    137 #ifndef NDEBUG
     137#ifndef SING_NDEBUG
    138138// debug only
    139139void intvec::view () const
  • libpolys/misc/intvec.h

    r9dba83b r7fe9e13  
    5656  inline int& operator[](int i)
    5757    {
    58 #ifndef NDEBUG
     58#ifndef SING_NDEBUG
    5959      if((i<0)||(i>=row*col))
    6060      {
     
    6666  inline const int& operator[](int i) const
    6767    {
    68 #ifndef NDEBUG
     68#ifndef SING_NDEBUG
    6969      if((i<0)||(i>=row*col))
    7070      {
     
    8888  inline void length(int l) { row = l; col = 1; }
    8989  void show(int mat=0,int spaces=0) const;
    90   #ifndef NDEBUG
     90  #ifndef SING_NDEBUG
    9191  void view() const;
    9292  #endif
  • libpolys/polys/Makefile.am

    r9dba83b r7fe9e13  
    77# NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer
    88# NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer
    9 # NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
     9# NODEBUGDEFS = -DSING_NDEBUG -DOM_NDEBUG
    1010DEBUGCXXFLAGS   =
    1111NODEBUGCFLAGS   =
  • libpolys/polys/clapsing.cc

    r9dba83b r7fe9e13  
    525525    return TRUE;
    526526  }
    527 #ifndef NDEBUG
     527#ifndef SING_NDEBUG
    528528  // checking the result of extgcd:
    529529  poly dummy;
     
    959959      else if (r->cf->extRing!=NULL)     /* Q(a), Fp(a) */
    960960      {
    961 #ifndef NDEBUG
     961#ifndef SING_NDEBUG
    962962        intvec *w=NULL;
    963963        if (v!=NULL) w=*v;
     
    965965        if (r->cf->extRing->qideal==NULL)
    966966        {
    967 #ifdef NDEBUG
     967#ifdef SING_NDEBUG
    968968          res->m[j]= convFactoryPSingTrP( J.getItem().factor(),r );
    969969#else
     
    978978        else
    979979        {
    980 #ifdef NDEBUG
     980#ifdef SING_NDEBUG
    981981          res->m[j]= convFactoryAPSingAP( J.getItem().factor(),r );
    982982#else
     
    991991      }
    992992    }
    993 #ifndef NDEBUG
     993#ifndef SING_NDEBUG
    994994    if ((r->cf->extRing!=NULL) && (!p_IsConstantPoly(ff,r)))
    995995    {
  • libpolys/polys/mod_raw.cc

    r9dba83b r7fe9e13  
    5050static BOOLEAN warn_proc = FALSE;
    5151#ifndef DL_TAIL
    52 #ifdef NDEBUG
     52#ifdef SING_NDEBUG
    5353#define DL_TAIL ".so"
    5454#else
  • libpolys/polys/monomials/p_polys.cc

    r9dba83b r7fe9e13  
    4747// #include <???/int64vec.h>
    4848
    49 #ifndef NDEBUG
     49#ifndef SING_NDEBUG
    5050// #include <???/febase.h>
    5151#endif
     
    160160BOOLEAN pSetm_error=0;
    161161
    162 #ifndef NDEBUG
     162#ifndef SING_NDEBUG
    163163# define MYTEST 0
    164 #else /* ifndef NDEBUG */
     164#else /* ifndef SING_NDEBUG */
    165165# define MYTEST 0
    166 #endif /* ifndef NDEBUG */
     166#endif /* ifndef SING_NDEBUG */
    167167
    168168void p_Setm_General(poly p, const ring r)
     
    354354          assume(p != NULL);
    355355
    356 #ifndef NDEBUG
     356#ifndef SING_NDEBUG
    357357#if MYTEST
    358358          Print("p_Setm_General: ro_isTemp ord: pos: %d, p: ", pos);  p_DebugPrint(p, r, r, 1);
     
    381381            }
    382382          }
    383 #ifndef NDEBUG
     383#ifndef SING_NDEBUG
    384384          for( int i = 1; i <= r->N; i++ ) // No v[0] here!!!
    385385          {
     
    402402        case ro_is:
    403403        {
    404 #ifndef NDEBUG
     404#ifndef SING_NDEBUG
    405405#if MYTEST
    406406          Print("p_Setm_General: ro_is ord: pos: %d, p: ", pos);  p_DebugPrint(p, r, r, 1);
     
    420420          if( F != NULL && c > limit )
    421421          {
    422 #ifndef NDEBUG
     422#ifndef SING_NDEBUG
    423423#if MYTEST
    424424            Print("p_Setm_General: ro_is : in rSetm: pos: %d, c: %d >  limit: %d\n", c, pos, limit); // p_DebugPrint(p, r, r, 1);
     
    449449            assume(pp != NULL);
    450450
    451 #ifndef NDEBUG
     451#ifndef SING_NDEBUG
    452452#if MYTEST
    453453            Print("Respective F[c - %d: %d] pp: ", limit, c);
     
    462462//          const int st = o->data.isTemp.start;
    463463
    464 #ifndef NDEBUG
     464#ifndef SING_NDEBUG
    465465            Print("p_Setm_General: is(-Temp-) :: c: %d, limit: %d, [st:%d] ===>>> %ld\n", c, limit, start, p->exp[start]);
    466466#endif
     
    483483
    484484
    485 #ifndef NDEBUG
     485#ifndef SING_NDEBUG
    486486            const int* const pVarOffset = o->data.is.pVarOffset;
    487487
     
    513513              p->exp[vo] = c; // initial component v[0]!
    514514
    515 #ifndef NDEBUG
     515#ifndef SING_NDEBUG
    516516#if MYTEST
    517517            Print("ELSE p_Setm_General: ro_is :: c: %d <= limit: %d, vo: %d, exp: %d\n", c, limit, vo, p->exp[vo]);
     
    682682        return j;
    683683
    684 #ifndef NDEBUG
     684#ifndef SING_NDEBUG
    685685      default:
    686686        Print("missing order %d in p_WTotaldegree\n",r->order[i]);
  • libpolys/polys/monomials/ring.cc

    r9dba83b r7fe9e13  
    326326    {
    327327      assume( l == 0 );
    328 #ifndef NDEBUG
     328#ifndef SING_NDEBUG
    329329      Print("  syzcomp at %d",r->typ[l].data.syz.limit);
    330330#endif
     
    14051405    if (copy_qideal)
    14061406    {
    1407       #ifndef NDEBUG
     1407      #ifndef SING_NDEBUG
    14081408      if (!copy_ordering)
    14091409        WerrorS("internal error: rCopy0(Q,TRUE,FALSE)");
     
    14111411      #endif
    14121412      {
    1413       #ifndef NDEBUG
     1413      #ifndef SING_NDEBUG
    14141414        WarnS("internal bad stuff: rCopy0(Q,TRUE,TRUE)");
    14151415      #endif
     
    15611561    if (copy_qideal)
    15621562    {
    1563       #ifndef NDEBUG
     1563      #ifndef SING_NDEBUG
    15641564      if (!copy_ordering)
    15651565        WerrorS("internal error: rCopy0(Q,TRUE,FALSE)");
     
    15671567      #endif
    15681568      {
    1569       #ifndef NDEBUG
     1569      #ifndef SING_NDEBUG
    15701570        WarnS("internal bad stuff: rCopy0(Q,TRUE,TRUE)");
    15711571      #endif
     
    23152315}
    23162316
    2317 #ifndef NDEBUG
     2317#ifndef SING_NDEBUG
    23182318# define MYTEST 0
    2319 #else /* ifndef NDEBUG */
     2319#else /* ifndef SING_NDEBUG */
    23202320# define MYTEST 0
    2321 #endif /* ifndef NDEBUG */
     2321#endif /* ifndef SING_NDEBUG */
    23222322
    23232323static void rO_ISPrefix(int &place, int &bitplace, int &prev_ord,
     
    26102610      case ringorder_S:
    26112611      {
    2612 #ifndef NDEBUG
     2612#ifndef SING_NDEBUG
    26132613        Warn("Error: unhandled ordering in rModifyRing: ringorder_S = [%d]", r_ord);
    26142614#endif
     
    26662666        if (omit_comp)
    26672667        {
    2668 #ifndef NDEBUG
     2668#ifndef SING_NDEBUG
    26692669          Warn("Error: WRONG USAGE of rModifyRing: cannot omit component due to the ordering block [%d]: %d (ringorder_IS)", i, r_ord);
    26702670#endif
     
    26802680        if (omit_comp)
    26812681        {
    2682 #ifndef NDEBUG
     2682#ifndef SING_NDEBUG
    26832683          Warn("WRONG USAGE? of rModifyRing: omitting component due to the ordering block [%d]: %d (ringorder_s)", i, r_ord);
    26842684#endif
     
    27862786    if ( nc_rComplete(r, res, false) ) // no qideal!
    27872787    {
    2788 #ifndef NDEBUG
     2788#ifndef SING_NDEBUG
    27892789      WarnS("error in nc_rComplete");
    27902790#endif
     
    28432843    if ( nc_rComplete(r, res, false) ) // no qideal!
    28442844    {
    2845 #ifndef NDEBUG
     2845#ifndef SING_NDEBUG
    28462846      WarnS("error in nc_rComplete");
    28472847#endif
     
    29042904      if ( nc_rComplete(r, res, false) ) // no qideal!
    29052905      {
    2906 #ifndef NDEBUG
     2906#ifndef SING_NDEBUG
    29072907        WarnS("error in nc_rComplete");
    29082908#endif
     
    32573257  if( rGetISPos(0, r) != -1 ) // Are there Schreyer induced blocks?
    32583258  {
    3259 #ifndef NDEBUG
     3259#ifndef SING_NDEBUG
    32603260      assume( r->pFDeg == p_Deg || r->pFDeg == p_WTotaldegree || r->pFDeg == p_Totaldegree);
    32613261#endif
     
    38083808          assume( r->typ[i].data.syzcomp.Components        == NULL );
    38093809//          WarnS( "rUnComplete : ord_typ == ro_syzcomp was unhandled!!! Possibly memory leak!!!"  );
    3810 #ifndef NDEBUG
     3810#ifndef SING_NDEBUG
    38113811//          assume(0);
    38123812#endif
     
    40104010
    40114011      Print("  limit %d",r->typ[j].data.is.limit);
    4012 #ifndef NDEBUG
     4012#ifndef SING_NDEBUG
    40134013      //PrintS("  F: ");idShow(r->typ[j].data.is.F, r, r, 1);
    40144014#endif
     
    41764176
    41774177
    4178 #ifndef NDEBUG
     4178#ifndef SING_NDEBUG
    41794179/// debug-print at most nTerms (2 by default) terms from poly/vector p,
    41804180/// assuming that lt(p) lives in lmRing and tail(p) lives in tailRing.
     
    43284328  if ( r->order[0] == ringorder_IS )
    43294329  {
    4330 #ifndef NDEBUG
     4330#ifndef SING_NDEBUG
    43314331    WarnS("rAssure_SyzComp: input ring has an IS-ordering!");
    43324332#endif
     
    43644364      if ( nc_rComplete(r, res, false) ) // no qideal!
    43654365      {
    4366 #ifndef NDEBUG
     4366#ifndef SING_NDEBUG
    43674367        WarnS("error in nc_rComplete");      // cleanup?//      rDelete(res);//      return r;      // just go on..
    43684368#endif
     
    44684468    if ( nc_rComplete(r, res, false) ) // no qideal!
    44694469    {
    4470 #ifndef NDEBUG
     4470#ifndef SING_NDEBUG
    44714471      WarnS("error in nc_rComplete");
    44724472#endif
     
    45414541    if ( nc_rComplete(r, new_r, false) ) // no qideal!
    45424542    {
    4543 #ifndef NDEBUG
     4543#ifndef SING_NDEBUG
    45444544      WarnS("error in nc_rComplete");      // cleanup?//      rDelete(res);//      return r;      // just go on..
    45454545#endif
     
    45924592          if ( nc_rComplete(r, new_r, false) ) // no qideal!
    45934593          {
    4594 #ifndef NDEBUG
     4594#ifndef SING_NDEBUG
    45954595            WarnS("error in nc_rComplete");   // cleanup?//      rDelete(res);//      return r;      // just go on..
    45964596#endif
     
    46264626       if ( nc_rComplete(old_r, new_r, false) ) // no qideal!
    46274627       {
    4628 # ifndef NDEBUG
     4628# ifndef SING_NDEBUG
    46294629          WarnS("error in nc_rComplete"); // cleanup?      rDelete(res);       return r;  // just go on...?
    46304630# endif
     
    46444644     if( nc_SetupQuotient(new_r, old_r, true) )
    46454645       {
    4646 #ifndef NDEBUG
     4646#ifndef SING_NDEBUG
    46474647          WarnS("error in nc_SetupQuotient"); // cleanup?      rDelete(res);       return r;  // just go on...?
    46484648#endif
     
    47004700    if ( nc_rComplete(r, res, false) ) // no qideal!
    47014701    {
    4702 #ifndef NDEBUG
     4702#ifndef SING_NDEBUG
    47034703      WarnS("error in nc_rComplete");
    47044704#endif
     
    47804780      if ( nc_rComplete(r, res, false) ) // no qideal!
    47814781      {
    4782 #ifndef NDEBUG
     4782#ifndef SING_NDEBUG
    47834783        WarnS("error in nc_rComplete");      // cleanup?//      rDelete(res);//      return r;      // just go on..
    47844784#endif
     
    49634963    if(k < r->typ[0].data.syz.limit) // ?
    49644964    {
    4965 #ifndef NDEBUG
     4965#ifndef SING_NDEBUG
    49664966      Warn("rSetSyzComp called with smaller limit (%d) as before (%d)", k, r->typ[0].data.syz.limit);
    49674967#endif
     
    49794979  {
    49804980//      (r->typ[currRing->typ[0].data.isTemp.suffixpos].data.is.limit == k)
    4981 #ifndef NDEBUG
     4981#ifndef SING_NDEBUG
    49824982    Warn("rSetSyzComp(%d) in an IS ring! Be careful!", k);
    49834983#endif
  • libpolys/polys/monomials/ring.h

    r9dba83b r7fe9e13  
    794794#endif
    795795
    796 #ifndef NDEBUG
     796#ifndef SING_NDEBUG
    797797/// debug-print at most nTerms (2 by default) terms from poly/vector p,
    798798/// assuming that lt(p) lives in lmRing and tail(p) lives in tailRing.
  • libpolys/polys/nc/ncSACache.cc

    r9dba83b r7fe9e13  
    2323#include <misc/auxiliary.h>
    2424
    25 #ifndef NDEBUG
     25#ifndef SING_NDEBUG
    2626#define OUTPUT MYTEST
    2727#else
  • libpolys/polys/nc/ncSAFormula.cc

    r9dba83b r7fe9e13  
    2727#define PLURAL_INTERNAL_DECLARATIONS
    2828
    29 #ifndef NDEBUG
     29#ifndef SING_NDEBUG
    3030#define OUTPUT MYTEST
    3131#else
  • libpolys/polys/nc/ncSAMult.cc

    r9dba83b r7fe9e13  
    2626
    2727
    28 #ifndef NDEBUG
     28#ifndef SING_NDEBUG
    2929#define OUTPUT MYTEST
    3030#else
  • libpolys/polys/nc/old.gring.cc

    r9dba83b r7fe9e13  
    27962796
    27972797
    2798 #ifndef NDEBUG
     2798#ifndef SING_NDEBUG
    27992799  id_Test((ideal)CCC, curr);
    28002800  id_Test((ideal)DDD, curr);
     
    28962896        MATELEM(C,i,j) = prCopyR_NoSort(CN, curr, r); // nc_p_CopyPut(CN, r); // copy CN from curr into r
    28972897
    2898 #ifndef NDEBUG
     2898#ifndef SING_NDEBUG
    28992899    id_Test((ideal)C, r);
    29002900#endif
     
    29372937    {
    29382938      C = mp_Copy(CC, curr, r); // Copy C into r!!!???
    2939 #ifndef NDEBUG
     2939#ifndef SING_NDEBUG
    29402940      id_Test((ideal)C, r);
    29412941#endif
     
    29692969        for(j=i+1; j<=r->N; j++)
    29702970          MATELEM(D,i,j) = prCopyR_NoSort(DN, curr, r); // project DN into r->GetNC()->basering!
    2971 #ifndef NDEBUG
     2971#ifndef SING_NDEBUG
    29722972  id_Test((ideal)D, r);
    29732973#endif
     
    29962996    {
    29972997      D = mp_Copy(DD, curr, r); // Copy DD into r!!!
    2998 #ifndef NDEBUG
     2998#ifndef SING_NDEBUG
    29992999      id_Test((ideal)D, r);
    30003000#endif
     
    30473047  if (r->GetNC() != NULL)
    30483048  {
    3049 #ifndef NDEBUG
     3049#ifndef SING_NDEBUG
    30503050    WarnS("Changing the NC-structure of an existing NC-ring!!!");
    30513051#endif   
  • libpolys/polys/simpleideals.h

    r9dba83b r7fe9e13  
    3939  ideal_list next;
    4040  ideal      d;
    41 #ifndef NDEBUG
     41#ifndef SING_NDEBUG
    4242  int nr;
    4343#endif
  • libpolys/polys/templates/p_Procs_Dynamic.cc

    r9dba83b r7fe9e13  
    206206  {
    207207    char* name = omStrDup(proc_name);
    208 #if (!defined(NDEBUG)) && (!defined(OM_NDEBUG)) && defined(HAVE_CONFIG_H)
     208#if (!defined(SING_NDEBUG)) && (!defined(OM_NDEBUG)) && defined(HAVE_CONFIG_H)
    209209    omMarkAsStaticAddr(name);
    210210#endif
  • libpolys/polys/templates/p_Procs_Set.h

    r9dba83b r7fe9e13  
    182182*/
    183183#ifdef HAVE_PLURAL
    184 #ifndef NDEBUG
     184#ifndef SING_NDEBUG
    185185  if (rIsPluralRing(r))
    186186  {
  • libpolys/reporter/Makefile.am

    r9dba83b r7fe9e13  
    2323# # -fdiagnostics-show-option
    2424
    25 # libreporter_la_CPPFLAGS   = ${AM_CPPFLAGS} -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
     25# libreporter_la_CPPFLAGS   = ${AM_CPPFLAGS} -DSING_NDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
    2626# libreporter_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    2727# libreporter_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
  • libpolys/reporter/reporter.cc

    r9dba83b r7fe9e13  
    7272    feBuffer=(char *)omReallocSize((void *)feBuffer,feBufferLength,
    7373                                                     more);
    74 #if (!defined(NDEBUG)) && (!defined(OM_NDEBUG)) && defined(HAVE_CONFIG_H)
     74#if (!defined(SING_NDEBUG)) && (!defined(OM_NDEBUG)) && defined(HAVE_CONFIG_H)
    7575    omMarkAsStaticAddr(feBuffer);
    7676#endif
  • libsingular-config.in

    r9dba83b r7fe9e13  
    8888
    8989    --cflags)
    90         ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG"
     90        ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DSING_NDEBUG -DOM_NDEBUG"
    9191        ;;
    9292
  • m4/flags.m4

    r9dba83b r7fe9e13  
    7575# else
    7676#  AC_DEFINE([OM_NDEBUG],1,"Disable OM Debug")
    77 #  AC_DEFINE([NDEBUG],1,"Disable Debug")
     77#  AC_DEFINE([SING_NDEBUG],1,"Disable Debug")
    7878 fi
    7979
     
    109109
    110110 if test "x${ENABLE_OPTIMIZATION}" != xno; then
    111   OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space -funroll-loops"
     111  OPTFLAGS="-DOM_NDEBUG -DSING_NDEBUG -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space -funroll-loops"
    112112  #  -O3 - crashes gcc???!!! 
    113113  # -fpermissive 
  • numeric/Makefile.am

    r9dba83b r7fe9e13  
    2222AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys ${GMP_CFLAGS} -I${top_srcdir}/factory/include -I${top_builddir}/factory/include ${FACTORY_CFLAGS} ${NTL_CFLAGS}  -DHAVE_CONFIG_H
    2323
    24 # libnumeric_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
     24# libnumeric_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DSING_NDEBUG -DOM_NDEBUG
    2525# libnumeric_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    2626# libnumeric_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
  • resources/Makefile.am

    r9dba83b r7fe9e13  
    2525# libresources_la_CPPFLAGS   += ${AM_CPPFLAGS}
    2626
    27 #libresources_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
     27#libresources_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DSING_NDEBUG -DOM_NDEBUG
    2828#libresources_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
    2929
  • tests/Singular/test_ipid.hpp

    r9dba83b r7fe9e13  
    22#define _test_ipid_hpp_
    33
    4 #define NDEBUG
     4#define SING_NDEBUG
    55
    66
  • xalloc/Makefile.am

    r9dba83b r7fe9e13  
    1818### libomalloc_la_LDFLAGS  = -release ${PACKAGE_VERSION}
    1919
    20 # libomalloc_la_CPPFLAGS  += ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
     20# libomalloc_la_CPPFLAGS  += ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DSING_NDEBUG -DOM_NDEBUG
    2121# libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS}
    2222
Note: See TracChangeset for help on using the changeset viewer.