@@ -91,9 +91,6 @@ typedef struct {
9191 // character
9292 Char * ptr ;
9393
94- //
95- UInt symbol ;
96-
9794 // the number of the line where the fragment of code currently being
9895 // interpreted started; used for profiling
9996 Int interpreterStartLine ;
@@ -472,10 +469,6 @@ static UInt OpenDefaultOutput(void)
472469** may also fail if you have too many files open at once. It is system
473470** dependent how many are too many, but 16 files should work everywhere.
474471**
475- ** Directely after the 'OpenInput' call the variable 'Symbol' has the value
476- ** 'S_ILLEGAL' to indicate that no symbol has yet been read from this file.
477- ** The first symbol is read by 'Read' in the first call to 'Match' call.
478- **
479472** You can open '*stdin*' to read from the standard input file, which is
480473** usually the terminal, or '*errin*' to read from the standard error file,
481474** which is the terminal even if '*stdin*' is redirected from a file.
@@ -515,7 +508,6 @@ UInt OpenInput (
515508 if (IO ()-> InputStackPointer > 0 ) {
516509 GAP_ASSERT (IS_CHAR_PUSHBACK_EMPTY ());
517510 IO ()-> Input -> ptr = STATE (In );
518- IO ()-> Input -> symbol = STATE (Scanner ).Symbol ;
519511 IO ()-> Input -> interpreterStartLine = STATE (InterpreterStartLine );
520512 }
521513
@@ -534,10 +526,9 @@ UInt OpenInput (
534526 strlcpy (IO ()-> Input -> name , filename , sizeof (IO ()-> Input -> name ));
535527 IO ()-> Input -> gapnameid = 0 ;
536528
537- /* start with an empty line and no symbol */
529+ // start with an empty line
538530 STATE (In ) = IO ()-> Input -> line ;
539531 STATE (In )[0 ] = STATE (In )[1 ] = '\0' ;
540- STATE (Scanner ).Symbol = S_ILLEGAL ;
541532 STATE (InterpreterStartLine ) = 0 ;
542533 IO ()-> Input -> number = 1 ;
543534
@@ -562,7 +553,6 @@ UInt OpenInputStream(Obj stream, UInt echo)
562553 if (IO ()-> InputStackPointer > 0 ) {
563554 GAP_ASSERT (IS_CHAR_PUSHBACK_EMPTY ());
564555 IO ()-> Input -> ptr = STATE (In );
565- IO ()-> Input -> symbol = STATE (Scanner ).Symbol ;
566556 IO ()-> Input -> interpreterStartLine = STATE (InterpreterStartLine );
567557 }
568558
@@ -584,10 +574,9 @@ UInt OpenInputStream(Obj stream, UInt echo)
584574 strlcpy (IO ()-> Input -> name , "stream" , sizeof (IO ()-> Input -> name ));
585575 IO ()-> Input -> gapnameid = 0 ;
586576
587- /* start with an empty line and no symbol */
577+ // start with an empty line
588578 STATE (In ) = IO ()-> Input -> line ;
589579 STATE (In )[0 ] = STATE (In )[1 ] = '\0' ;
590- STATE (Scanner ).Symbol = S_ILLEGAL ;
591580 STATE (InterpreterStartLine ) = 0 ;
592581 IO ()-> Input -> number = 1 ;
593582
@@ -643,7 +632,6 @@ UInt CloseInput ( void )
643632#endif
644633 IO ()-> Input = IO ()-> InputStack [sp - 1 ];
645634 STATE (In ) = IO ()-> Input -> ptr ;
646- STATE (Scanner ).Symbol = IO ()-> Input -> symbol ;
647635 STATE (InterpreterStartLine ) = IO ()-> Input -> interpreterStartLine ;
648636
649637 /* indicate success */
@@ -658,8 +646,6 @@ UInt CloseInput ( void )
658646void FlushRestOfInputLine ( void )
659647{
660648 STATE (In )[0 ] = STATE (In )[1 ] = '\0' ;
661- /* IO()->Input->number = 1; */
662- STATE (Scanner ).Symbol = S_ILLEGAL ;
663649}
664650
665651/****************************************************************************
0 commit comments