Changeset 5046ce in git


Ignore:
Timestamp:
Jul 15, 2010, 2:40:52 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
aba0dbfad4d9cca535bcef01a1537e91b6e1c218
Parents:
1b38b2391b5a944974b608cc5393af21566eca34
Message:
WerrorS_callback

git-svn-id: file:///usr/local/Singular/svn/trunk@13013 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/febase.cc

    r1b38b23 r5046ce  
    6464
    6565const char feNotImplemented[]="not implemented";
     66
     67void (*WerrorS_callback)(const char *s) = NULL;
    6668
    6769int feProt = FALSE;
     
    937939#endif
    938940    {
    939       fwrite("   ? ",1,5,stderr);
    940       fwrite((char *)s,1,strlen((char *)s),stderr);
    941       fwrite("\n",1,1,stderr);
    942       fflush(stderr);
     941      if (WerrorS_callback == NULL) {
     942        fwrite("   ? ",1,5,stderr);
     943        fwrite((char *)s,1,strlen((char *)s),stderr);
     944        fwrite("\n",1,1,stderr);
     945        fflush(stderr);
     946      } else {
     947        WerrorS_callback(s);
     948      }
    943949      if (feProt&PROT_O)
    944950      {
  • kernel/febase.h

    r1b38b23 r5046ce  
    133133#endif
    134134
     135
     136extern void (*WerrorS_callback)(const char *s);
     137
    135138void    Werror(const char *fmt, ...) __attribute__((format(printf,1,2)));
    136139void    WerrorS(const char *s);
Note: See TracChangeset for help on using the changeset viewer.