Changeset a7575a1 in git


Ignore:
Timestamp:
Nov 30, 2014, 6:06:19 PM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
78337a8ca92062c661a4ecbf7723e1ef6ed46494
Parents:
73ba505b3214e1ee60c9a3ad8af9475b7e753666
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-11-30 18:06:19+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-11-30 18:22:50+01:00
Message:
Revert "avoid empty procedures - keep Top-namespace clean (a start)" in order to keep stable interface

This reverts commit ba19a8a94da4931a7c4fb8ea6bc91256251c15ec.
+ minor changes : no export to Top
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    r73ba50 ra7575a1  
    22592259      exportto(Schreyer, Syzextra::ComputeResolution);
    22602260
    2261       if (defined(NumberStatsInit))
    2262       {
    2263         exportto(Top, Syzextra::NumberStatsInit);
    2264         exportto(Top, Syzextra::NumberStatsPrint);
    2265       }
     2261      exportto(Schreyer, Syzextra::NumberStatsInit);
     2262      exportto(Schreyer, Syzextra::NumberStatsPrint);
     2263
    22662264      newstruct("SRES","ring r,resolution rsltn"); // http://www.singular.uni-kl.de/Manual/latest/sing_179.htm#SEC218
    22672265      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

    r73ba50 ra7575a1  
    19311931// no args.
    19321932// init num stats
    1933 #ifdef HAVE_NUMSTATS
    19341933static BOOLEAN _NumberStatsInit(leftv res, leftv h)
    19351934{
     
    19501949  return FALSE;
    19511950}
    1952 #endif
    19531951
    19541952// maybe one arg.
    19551953// print num stats
    1956 #ifdef HAVE_NUMSTATS
    19571954static BOOLEAN _NumberStatsPrint(leftv res, leftv h)
    19581955{
     
    19731970  return FALSE;
    19741971}
    1975 #endif
    19761972
    19771973END_NAMESPACE
     
    20332029//  ADD("GetAMData", FALSE, GetAMData);
    20342030
    2035 #ifdef HAVE_NUMSTATS
    20362031  ADD("NumberStatsInit", FALSE, _NumberStatsInit);
    20372032  ADD("NumberStatsPrint", FALSE, _NumberStatsPrint);
    2038 #endif
    20392033 
    20402034  //  ADD("", FALSE, );
  • libpolys/coeffs/numstats.h

    r73ba50 ra7575a1  
    124124#endif
    125125
    126 #ifdef HAVE_NUMSTATS
    127126/// set all counters to zero
    128127static inline void number_stats_Init(const unsigned long defaultvalue = 0)
    129128{
     129#ifndef HAVE_NUMSTATS
     130  WarnS("Please note that number statistic was disabled in compile-time");
     131  (void)(defaultvalue);
     132#else
    130133  extern struct SNumberStatistic number_stats;
    131134  number_stats.Init(defaultvalue);
     135#endif
    132136}
    133 #endif
    134137
    135 #ifdef HAVE_NUMSTATS
    136138/// print out all counters
    137139static inline void number_stats_Print(const char * const msg = NULL)
    138140{
     141#ifndef HAVE_NUMSTATS
     142  Warn("Please note that number statistic was disabled in compile-time [message: %s]", msg);
     143#else
    139144  extern struct SNumberStatistic number_stats;
    140145  number_stats.Print(msg);
     146#endif
    141147}
    142 #endif
    143148#endif /* NUMSTAT */
    144149
Note: See TracChangeset for help on using the changeset viewer.