Changeset e1b9e59 in git


Ignore:
Timestamp:
Jul 28, 2009, 11:56:59 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
186673a0acbc5c03f2823324915e1b75a6601186
Parents:
11b6490b056dd2fc128f1ca13075d8022d3631d5
Message:
*hannes: format


git-svn-id: file:///usr/local/Singular/svn/trunk@12019 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r11b649 re1b9e59  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.125 2009-07-28 08:49:15 Singular Exp $ */
     4/* $Id: ring.cc,v 1.126 2009-07-28 09:56:59 Singular Exp $ */
    55
    66/*
     
    384384#endif
    385385      continue;
    386     } else
    387     if (
     386    }
     387    else if (
    388388    (  (r->order[l] >= ringorder_lp)
    389389    ||(r->order[l] == ringorder_M)
     
    411411          if (r->order[l] == ringorder_a64)
    412412          {
    413             int64 *w=(int64 *)r->wvhdl[l];
    414             #if SIZEOF_LONG == 4
     413            int64 *w=(int64 *)r->wvhdl[l];
     414            #if SIZEOF_LONG == 4
    415415                  Print("%*lld " ,nlen,w[i+j],i+j);
    416             #else
     416            #else
    417417            Print(" %*ld"  ,nlen,w[i+j],i+j);
    418             #endif
     418            #endif
    419419          }
    420420          else
     
    469469        }
    470470        else PrintS(" ...");
    471       } else
     471      }
     472      else
    472473        PrintS(" (NULL)");
    473474    }
     
    16451646  if (r->qideal!=NULL)
    16461647  {
    1647     if (copy_qideal) 
     1648    if (copy_qideal)
    16481649    {
    16491650      #ifndef NDEBUG
    16501651      if (!copy_ordering)
    1651         WerrorS("internal error: rCopy0(Q,TRUE,FALSE)");
     1652        WerrorS("internal error: rCopy0(Q,TRUE,FALSE)");
    16521653      else
    16531654      #endif
    16541655      {
    16551656      #ifndef NDEBUG
    1656         WarnS("internal bad stuff: rCopy0(Q,TRUE,TRUE)");
     1657        WarnS("internal bad stuff: rCopy0(Q,TRUE,TRUE)");
    16571658      #endif
    1658         rComplete(res);
     1659        rComplete(res);
    16591660        res->qideal= idrCopyR_NoSort(r->qideal, r, res);
    1660         rUnComplete(res);
     1661        rUnComplete(res);
    16611662      }
    16621663    }
     
    20982099            continue; // To make for check OrdSize bound...
    20992100          }
    2100         } else
    2101         if (r->typ[j].ord_typ == ro_is)
     2101        }
     2102        else if (r->typ[j].ord_typ == ro_is)
    21022103        {
    21032104          // Skip all intermediate blocks for undone variables:
     
    21072108          }
    21082109
    2109         } else
     2110        }
     2111        else
    21102112        {
    21112113          if (r->typ[j].ord_typ==ro_cp)
     
    24082410
    24092411  // We will act as rO_Syz on our own!!!
    2410   // Here we allocate an exponent as a level placeholder 
     2412  // Here we allocate an exponent as a level placeholder
    24112413  o[place]= -1;
    24122414  prev_ord=-1;
     
    24802482      Print("v[%d]: %010x", i, pVarOffset[i]);
    24812483#endif
    2482     } else
     2484    }
     2485    else
    24832486      pVarOffset[i] = -1; // No change here...
    24842487  }
     
    25072510//     }
    25082511
    2509  
     2512
    25102513  // Moreover: we need to allocate the module component (v[0]) here!
    25112514  if( v[0] == -1) // It's possible that there was module component v0 at the begining (before prefix)!
     
    38023805            r->typ[i].data.is.componentWeights = NULL; // ?
    38033806          }
    3804          
    38053807
    38063808          if( r->typ[i].data.is.pVarOffset != NULL )
     
    38133815        {
    38143816          if(r->typ[i].data.syz.limit > 0)
    3815             omFreeSize(r->typ[i].data.syz.syz_index, ((r->typ[i].data.syz.limit) +1)*sizeof(int)); 
     3817            omFreeSize(r->typ[i].data.syz.syz_index, ((r->typ[i].data.syz.limit) +1)*sizeof(int));
    38163818          r->typ[i].data.syz.syz_index = NULL;
    3817         } else if (r->typ[i].ord_typ == ro_syzcomp)
     3819        }
     3820        else if (r->typ[i].ord_typ == ro_syzcomp)
    38183821        {
    38193822#ifndef NDEBUG
     
    38343837
    38353838    omFreeSize((ADDRESS)r->VarOffset, (r->N +1)*sizeof(int));
    3836    
     3839
    38373840    if (r->ordsgn != NULL && r->CmpL_Size != 0)
    38383841      omFreeSize((ADDRESS)r->ordsgn,r->ExpL_Size*sizeof(long));
     
    39823985      Print("  start (level) %d, suffixpos: %d, VO: ",r->typ[j].data.isTemp.start, r->typ[j].data.isTemp.suffixpos);
    39833986
    3984 #if MYTEST     
     3987#if MYTEST
    39853988      for( int k = 0; k <= r->N; k++)
    39863989        if (r->typ[j].data.isTemp.pVarOffset[k] != -1)
     
    39984001
    39994002      PrintS("weights: ");
    4000      
     4003
    40014004      if( r->typ[j].data.is.componentWeights == NULL )
    40024005        PrintS("NULL == [0,...0]\n");
     
    40054008        (r->typ[j].data.is.componentWeights)->show(); PrintLn();
    40064009      }
    4007      
    4008     } else
     4010    }
     4011    else
    40094012    {
    40104013      Print("  place %d",r->typ[j].data.dp.place);
     
    41284131  {
    41294132    assume( p != NULL );
    4130    
     4133
    41314134    p_Write(p, lmRing, tailRing);
    41324135
     
    41464149
    41474150      if (q != NULL)
    4148         PrintS("...\n");   
     4151        PrintS("...\n");
    41494152    }
    41504153  }
    41514154  else
    4152     PrintS("0\n");         
     4155    PrintS("0\n");
    41534156}
    41544157
     
    44794482#ifndef NDEBUG
    44804483      WarnS("error in nc_rComplete");      // cleanup?//      rDelete(res);//      return r;      // just go on..
    4481 #endif     
     4484#endif
    44824485    }
    44834486  }
     
    48754878        assume(r->typ[pos].data.is.F == NULL);
    48764879
    4877        
    48784880        r->typ[pos].data.is.F = FF; // F is owened by ring now! TODO: delete at the end!
    48794881
     
    49364938    currRing->typ[0].data.syz.limit = k;
    49374939    currRing->typ[0].data.syz.curr_index++;
    4938      
    4939   } else if(
    4940             (currRing->typ!=NULL) && 
     4940  }
     4941  else if(
     4942            (currRing->typ!=NULL) &&
    49414943            (currRing->typ[0].ord_typ==ro_isTemp)
    49424944           )
     
    49464948    Warn("rSetSyzComp(%d) in an IS ring! Be careful!", k);
    49474949#endif
    4948   } else
     4950  }
     4951  else
    49494952  if ((currRing->order[0]!=ringorder_c) && (k!=0)) // ???
    49504953  {
Note: See TracChangeset for help on using the changeset viewer.