Changeset ba19a8 in git


Ignore:
Timestamp:
Nov 28, 2014, 1:56:35 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
e1419f3535e85a849df97ea435b49ca0b2caf946
Parents:
b24fe3d2a86019da1031374ed6dc2e954634c05e
Message:
avoid empty procedures - keep Top-namespace clean (a start)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    rb24fe3 rba19a8  
    22592259      exportto(Schreyer, Syzextra::ComputeResolution);
    22602260
    2261       exportto(Top, Syzextra::NumberStatsInit);
    2262       exportto(Top, Syzextra::NumberStatsPrint);
    2263 
     2261      if (defined(NumberStatsInit))
     2262      {
     2263        exportto(Top, Syzextra::NumberStatsInit);
     2264        exportto(Top, Syzextra::NumberStatsPrint);
     2265      }
    22642266      newstruct("SRES","ring r,resolution rsltn"); // http://www.singular.uni-kl.de/Manual/latest/sing_179.htm#SEC218
    22652267      newstruct("SSYZ","ring r,module szg"); // http://www.singular.uni-kl.de/Manual/latest/sing_179.htm#SEC218
  • Singular/dyn_modules/syzextra/mod_main.cc

    rb24fe3 rba19a8  
    19311931// no args.
    19321932// init num stats
     1933#ifdef HAVE_NUMSTATS
    19331934static BOOLEAN _NumberStatsInit(leftv res, leftv h)
    19341935{
     
    19491950  return FALSE;
    19501951}
     1952#endif
    19511953
    19521954// maybe one arg.
    19531955// print num stats
     1956#ifdef HAVE_NUMSTATS
    19541957static BOOLEAN _NumberStatsPrint(leftv res, leftv h)
    19551958{
     
    19701973  return FALSE;
    19711974}
     1975#endif
    19721976
    19731977END_NAMESPACE
     
    20292033//  ADD("GetAMData", FALSE, GetAMData);
    20302034
     2035#ifdef HAVE_NUMSTATS
    20312036  ADD("NumberStatsInit", FALSE, _NumberStatsInit);
    20322037  ADD("NumberStatsPrint", FALSE, _NumberStatsPrint);
     2038#endif
    20332039 
    20342040  //  ADD("", FALSE, );
  • libpolys/coeffs/numstats.h

    rb24fe3 rba19a8  
    124124#endif
    125125
     126#ifdef HAVE_NUMSTATS
    126127/// set all counters to zero
    127128static inline void number_stats_Init(const unsigned long defaultvalue = 0)
    128129{
    129 #ifndef HAVE_NUMSTATS
    130   WarnS("Please note that number statistic was disabled in compile-time");
    131   (void)(defaultvalue);
    132 #else
    133130  extern struct SNumberStatistic number_stats;
    134131  number_stats.Init(defaultvalue);
     132}
    135133#endif
    136 }
    137134
     135#ifdef HAVE_NUMSTATS
    138136/// print out all counters
    139137static inline void number_stats_Print(const char * const msg = NULL)
    140138{
    141 #ifndef HAVE_NUMSTATS
    142   Warn("Please note that number statistic was disabled in compile-time [message: %s]", msg);
    143 #else
    144139  extern struct SNumberStatistic number_stats;
    145140  number_stats.Print(msg);
     141}
    146142#endif
    147 }
    148143#endif /* NUMSTAT */
    149144
Note: See TracChangeset for help on using the changeset viewer.