Changeset 8520b7 in git for Singular/febase.inc
- Timestamp:
- Mar 2, 1998, 4:22:48 PM (26 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 268d7b4f3a721679865848670aa0a64930584db9
- Parents:
- a18fae54e4f760ce0cd7832679f5171a88c3fde7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/febase.inc
ra18fae r8520b7 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: febase.inc,v 1. 3 1998-02-27 16:27:57Singular Exp $ */4 /* $Id: febase.inc,v 1.4 1998-03-02 15:22:48 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of 'voices' … … 151 151 yylineno = lineno+1; 152 152 break; 153 case BT_file:154 yylineno = 1;155 break;156 153 case BT_if: 157 154 case BT_else: … … 160 157 case BT_break: 161 158 yylineno = blocklineno-1; 159 break; 160 //case BT_file: 161 default: 162 yylineno = 1; 162 163 break; 163 164 } … … 378 379 static int fePrintEcho(char *anf) 379 380 { 380 prompt_char = '.';381 381 char *ss=strchr(anf,'\n'); 382 382 int len_s; … … 396 396 // handle echo: 397 397 if (((si_echo>myynest) 398 && (((currentVoice->typ==BT_proc) 399 && (strncmp(anf,";return();",10)!=0)) 398 && ((currentVoice->typ==BT_proc) 400 399 || (currentVoice->typ==BT_example) 401 400 || (currentVoice->typ==BT_file) 402 401 || (currentVoice->typ==BT_none) 403 ) 404 ) 402 ) 403 && (strncmp(anf,";return();",10)!=0) 404 ) 405 405 || (traceit&TRACE_SHOW_LINE) 406 406 || (traceit&TRACE_SHOW_LINE1)) 407 407 { 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 } 412 415 fwrite(anf,1,len_s,stdout); 413 416 mflush(); … … 422 425 mflush(); 423 426 } 427 prompt_char = '.'; 424 428 return len_s; 425 429 }
Note: See TracChangeset
for help on using the changeset viewer.