Ignore:
Timestamp:
Jan 7, 2014, 10:49:14 AM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.