Changeset 8520b7 in git


Ignore:
Timestamp:
Mar 2, 1998, 4:22:48 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
268d7b4f3a721679865848670aa0a64930584db9
Parents:
a18fae54e4f760ce0cd7832679f5171a88c3fde7
Message:
* hannes: changed handling of "echo" in examples: do not report file + lineno
   (febase.inc,lib0lib.res, inoutlib.res, mem.res, homlib.res)


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    ra18fae r8520b7  
     1Mon Mar  2 16:18:25 MET 1998 hannes
     2   * changed handling of "echo" in examples: do not report file + lineno
     3     (febase.inc,lib0lib.res, inoutlib.res, mem.res, homlib.res)
     4
    15Fri Feb 27 15:02:10 MET 1998 hannes
    26   * new input scheme: many modifications to febase.h, febase.inc,
  • Singular/febase.inc

    ra18fae r8520b7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: febase.inc,v 1.3 1998-02-27 16:27:57 Singular Exp $ */
     4/* $Id: febase.inc,v 1.4 1998-03-02 15:22:48 Singular Exp $ */
    55/*
    66* ABSTRACT: handling of 'voices'
     
    151151                     yylineno = lineno+1;
    152152                     break;
    153     case BT_file:
    154                      yylineno = 1;
    155                      break;
    156153    case BT_if:
    157154    case BT_else:
     
    160157    case BT_break:
    161158                     yylineno = blocklineno-1;
     159                     break;
     160    //case BT_file:
     161    default:
     162                     yylineno = 1;
    162163                     break;
    163164  }
     
    378379static int fePrintEcho(char *anf)
    379380{
    380   prompt_char = '.';
    381381  char *ss=strchr(anf,'\n');
    382382  int len_s;
     
    396396  // handle echo:
    397397  if (((si_echo>myynest)
    398     && (((currentVoice->typ==BT_proc)
    399          && (strncmp(anf,";return();",10)!=0))
     398    && ((currentVoice->typ==BT_proc)
    400399      || (currentVoice->typ==BT_example)
    401400      || (currentVoice->typ==BT_file)
    402401      || (currentVoice->typ==BT_none)
    403       )
    404   )
     402    )
     403    && (strncmp(anf,";return();",10)!=0)
     404   )
    405405  || (traceit&TRACE_SHOW_LINE)
    406406  || (traceit&TRACE_SHOW_LINE1))
    407407  {
    408     if (currentVoice->filename==NULL)
    409       Print("(none) %3d%c ",yylineno,prompt_char);
    410     else
    411       Print("%s %3d%c ",currentVoice->filename,yylineno,prompt_char);
     408    if (currentVoice->typ!=BT_example)
     409    {
     410      if (currentVoice->filename==NULL)
     411        Print("(none) %3d%c ",yylineno,prompt_char);
     412      else
     413        Print("%s %3d%c ",currentVoice->filename,yylineno,prompt_char);
     414    }
    412415    fwrite(anf,1,len_s,stdout);
    413416    mflush();
     
    422425    mflush();
    423426  }
     427  prompt_char = '.';
    424428  return len_s;
    425429}
Note: See TracChangeset for help on using the changeset viewer.