Changeset ffa0d1 in git


Ignore:
Timestamp:
Apr 21, 2016, 3:23:49 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
332757e0f7df60328df1635e63f5d71b807f61e5
Parents:
3e4cb17e27106684e223468e0b966964367a2833
Message:
WarnS_callback substitute stdout, but also protocoll
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/reporter/reporter.cc

    r3e4cb1 rffa0d1  
    166166}
    167167
    168 #ifdef HAVE_TCL
    169 extern "C" {
    170 void PrintTCLS(const char c, const char *s)
    171 {
    172   int l=strlen(s);
    173   if (l>0) PrintTCL(c,l,s);
    174 }
    175 }
    176 #endif
    177 
    178168void WerrorS_batch(const char *s)
    179169{
     
    221211      fwrite("\n",1,1,stdout);
    222212      fflush(stdout);
     213      if (feProt&SI_PROT_O)
     214      {
     215        fwrite(warn_str,1,6,feProtFile);
     216        fwrite(s,1,strlen(s),feProtFile);
     217        fwrite("\n",1,1,feProtFile);
     218      }
    223219    }
    224220    else
    225221    {
    226222      WarnS_callback(s);
    227     }
    228     if (feProt&SI_PROT_O)
    229     {
    230       fwrite(warn_str,1,6,feProtFile);
    231       fwrite(s,1,strlen(s),feProtFile);
    232       fwrite("\n",1,1,feProtFile);
    233223    }
    234224  }
     
    307297    }
    308298    else
    309 #ifdef HAVE_TCL
    310     if (tclmode)
    311     {
    312       PrintTCLS('N',s);
    313     }
    314     else
    315 #endif
    316299    {
    317300      fwrite(s,1,strlen(s),stdout);
Note: See TracChangeset for help on using the changeset viewer.