Changeset 4fc4d1 in git


Ignore:
Timestamp:
May 5, 1998, 8:07:21 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
fc1e8c8fa09db4d2b18765fbe4d20d724ccf84c7
Parents:
b0721b2a7867e9d2b6e60b19e20942e0eca2842f
Message:
* hannes/obachman: improved scanner performance (larger blocks)


git-svn-id: file:///usr/local/Singular/svn/trunk@1610 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/febase.inc

    rb0721b r4fc4d1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: febase.inc,v 1.8 1998-04-30 17:17:36 Singular Exp $ */
     4/* $Id: febase.inc,v 1.9 1998-05-05 18:07:21 Singular Exp $ */
    55/*
    66* ABSTRACT: handling of 'voices'
     
    432432int feReadLine(char* b, int l)
    433433{
    434   // try to read from the buffer:
    435   // b[1] = '\0';
     434  // try to read from the buffer into b, max l chars
    436435  if ((currentVoice->buffer!=NULL)
    437436  && (currentVoice->buffer[currentVoice->fptr]!='\0'))
     
    446445      b[i]=currentVoice->buffer[currentVoice->fptr];
    447446      i++;
    448       if ((c<' ')
    449       || (c==';')
    450       || (c==')')
    451       || (c=='}')
    452       || (c=='"')
    453       || (c=='$')) break;
     447      if (yy_noeof==noeof_block)
     448      {
     449        if (c<' ')  yylineno++;
     450        else if (c=='}') break;
     451      }
     452      else if (yy_noeof==noeof_string)
     453      {
     454        if (c<' ')  yylineno++;
     455        else if (c=='"') break;
     456      }
     457      else
     458      {
     459        if ((c<' ') ||
     460        (c==';') ||
     461        (c==')')
     462        )
     463          break;
     464      }         
    454465      if (i>=l) break;
    455466      currentVoice->fptr++;
Note: See TracChangeset for help on using the changeset viewer.