Changeset c5bae4 in git


Ignore:
Timestamp:
Mar 9, 2020, 4:42:03 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
e7e39839d32320823bf9689c97c5071650497b8e
Parents:
685700007296bcb12ecd15cd6f76760dc598af41
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-03-09 16:42:03+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-03-09 16:46:18+01:00
Message:
chg: TRACE, traceit: add traceit_stop ('n')
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/febase.cc

    r685700 rc5bae4  
    4141VAR int  myynest = -1;
    4242VAR int  traceit = 0;
     43VAR int  traceit_stop = 0;
    4344VAR char       my_yylinebuf[80];
    4445
  • Singular/fevoices.cc

    r685700 rc5bae4  
    456456    if (traceit&TRACE_SHOW_LINE)
    457457    {
    458       while(fgetc(stdin)!='\n');
     458      char c;
     459      do
     460      {
     461        c=fgetc(stdin);
     462        if (c=='n') traceit_stop=1;
     463      }
     464      while(c!='\n');
    459465    }
    460466  }
  • Singular/iplib.cc

    r685700 rc5bae4  
    294294BOOLEAN iiAllStart(procinfov pi, const char *p, feBufferTypes t, int l)
    295295{
     296  int save_trace=traceit;
     297  int restore_traceit=0;
     298  if (traceit_stop
     299  && (traceit & TRACE_SHOW_LINE))
     300  {
     301    traceit &=(~TRACE_SHOW_LINE);
     302    traceit_stop=0;
     303    restore_traceit=1;
     304  }
    296305  // see below:
    297306  BITSET save1=si_opt_1;
     
    300309               pi, l );
    301310  BOOLEAN err=yyparse();
     311
    302312  if (sLastPrinted.rtyp!=0)
    303313  {
    304314    sLastPrinted.CleanUp();
    305315  }
     316
     317  if (restore_traceit) traceit=save_trace;
     318
    306319  // the access to optionStruct and verboseStruct do not work
    307320  // on x86_64-Linux for pic-code
  • libpolys/reporter/reporter.h

    r685700 rc5bae4  
    2323EXTERN_VAR BOOLEAN feOut;
    2424EXTERN_VAR int  traceit ;
     25EXTERN_VAR int  traceit_stop ;
    2526EXTERN_VAR void (*WarnS_callback)(const char *s);
    2627
Note: See TracChangeset for help on using the changeset viewer.