Changeset f630e4 in git for libpolys


Ignore:
Timestamp:
Mar 21, 2012, 7:02:30 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
dd668fd21e0141dd6716d45d63f34e6ca84d230f
Parents:
1cbc287030d12dc1184a3649787c929f7edcf35f
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-21 19:02:30+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-23 16:06:34+01:00
Message:
set coeffs::nNULL if needed...
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r1cbc28 rf630e4  
    209209#endif
    210210
    211    number nNULL; /* the 0 as constant */
     211   /// the 0 as constant, NULL by default
     212   number nNULL;
    212213   int     char_flag;
    213214   int     ref;
  • libpolys/coeffs/numbers.cc

    r1cbc28 rf630e4  
    4747//static int characteristic = 0;
    4848extern int IsPrime(int p);
    49 
    50 /*0 implementation*/
    51 number nNULL; /* the 0 as constant */
    5249
    5350n_Procs_s *cf_root=NULL;
     
    301298    if(n->cfWriteShort==NULL)
    302299      n->cfWriteShort = n->cfWriteLong;
    303    
    304 #ifndef NDEBUG
     300
    305301    assume(n->nCoeffIsEqual!=NULL);
    306     if(n->cfKillChar==NULL) Warn("cfKillChar is NULL for coeff %d",t);
    307                 assume(n->cfSetChar!=NULL);
     302    assume(n->cfSetChar!=NULL);
    308303    assume(n->cfMult!=NULL);
    309304    assume(n->cfSub!=NULL);
     
    337332    assume(n->cfParameter!=NULL);
    338333    assume(n->cfParDeg!=NULL);
    339 
    340     if(n->cfWriteLong==NULL) Warn("cfWrite is NULL for coeff %d",t);
    341     if(n->cfWriteShort==NULL) Warn("cfWriteShort is NULL for coeff %d",t);
    342    
     334     
    343335    assume(n->cfRead!=NULL);
    344336    assume(n->cfNormalize!=NULL);
     
    365357#endif
    366358    assume(n->type==t);
    367 #endif
     359     
     360#ifndef NDEBUG
     361    if(n->cfKillChar==NULL) Warn("cfKillChar is NULL for coeff %d",t);
     362    if(n->cfWriteLong==NULL) Warn("cfWrite is NULL for coeff %d",t);
     363    if(n->cfWriteShort==NULL) Warn("cfWriteShort is NULL for coeff %d",t);
     364#endif
     365     
     366   if( n->nNULL == NULL )
     367     n->nNULL = n_Init(0, n); // may still remain NULL
    368368  }
    369369  else
Note: See TracChangeset for help on using the changeset viewer.