Ignore:
Timestamp:
2000-01-18T16:53:24+13:00 (24 years ago)
Author:
rjmcnab
Message:

Fixed a couple of bugs and made building silent if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/mg_weights_build.cpp

    r856 r860  
    4848/*
    4949   $Log$
     50   Revision 1.2  2000/01/18 03:53:24  rjmcnab
     51   Fixed a couple of bugs and made building silent if needed.
     52
    5053   Revision 1.1  2000/01/14 02:26:21  sjboddie
    5154   Rodgers new C++ mg
     
    158161  wordEl.SetNumLevels (idh.num_levels);
    159162  for (wordNum=0; wordNum<idh.word_dict_size; wordNum++) {
     163#ifndef SILENT
    160164    // give a little feedback every 4096 words
    161165    if ((wordNum & 0xfff) == 0) fprintf (stderr, ".");
     166#endif
    162167   
    163168    wordEl.Read (dictFile, idh.num_levels);
     
    263268  double B = pow (U / L, pow (2.0, -(double) bits));
    264269
     270#ifndef SILENT
    265271  fprintf (stderr, "L = %f\n", L);
    266272  fprintf (stderr, "U = %f\n", U);
    267273  fprintf (stderr, "B = %f\n", B);
    268 
     274#endif
     275 
    269276  WriteUC (approxWeightsFile, bits);
    270277  WriteD (approxWeightsFile, L);
     
    281288    if (wgt == 0) {
    282289      wgt = L;
    283 #ifndef QUIET
     290#ifndef SILENT
    284291      Message ("Warning: Document %d had a weight of 0.", i);
    285292#endif
Note: See TracChangeset for help on using the changeset viewer.