Changeset a0da83 in git for Singular/fevoices.cc


Ignore:
Timestamp:
Mar 31, 2015, 3:36:56 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
06cff955d56f17b8a3199fd8db5e3f4a6be98f35
Parents:
56225c216f0df9632a02f7b745efacd6da070754
Message:
test for a code coverage tool: via smon.out
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fevoices.cc

    r56225c ra0da83  
    3535
    3636char fe_promptstr[] ="  ";
     37FILE *File_Profiling=NULL;
    3738
    3839// output/print buffer:
     
    458459    Print("{%d}",yylineno);
    459460    mflush();
     461  }
     462  else if (traceit&TRACE_PROFILING)
     463  {
     464    if (File_Profiling==NULL)
     465      File_Profiling=fopen("smon.out","a");
     466    if (File_Profiling==NULL)
     467      traceit &= (~TRACE_PROFILING);
     468    else
     469    {
     470      if (currentVoice->filename==NULL)
     471        fprintf(File_Profiling,"(none) %d\n",yylineno);
     472      else
     473        fprintf(File_Profiling,"%s %d\n",currentVoice->filename,yylineno);
     474    }
    460475  }
    461476#ifdef HAVE_SDB
Note: See TracChangeset for help on using the changeset viewer.