Mercurial > hg > octave-lyh
comparison src/lex.l @ 373:916b341acffd
[project @ 1994-02-20 19:33:06 by jwe]
author | jwe |
---|---|
date | Sun, 20 Feb 1994 19:33:06 +0000 |
parents | 4115f7713851 |
children | 116ab89ce023 |
comparison
equal
deleted
inserted
replaced
372:c91ba20cd123 | 373:916b341acffd |
---|---|
685 while (! token_stack.empty ()) | 685 while (! token_stack.empty ()) |
686 delete token_stack.pop (); | 686 delete token_stack.pop (); |
687 | 687 |
688 // Can be reset by defining a function. | 688 // Can be reset by defining a function. |
689 current_input_column = 1; | 689 current_input_column = 1; |
690 input_line_number = current_command_number - 1; | 690 if (! reading_script_file) |
691 input_line_number = current_command_number - 1; | |
691 | 692 |
692 // Only ask for input from stdin if we are expecting interactive | 693 // Only ask for input from stdin if we are expecting interactive |
693 // input. | 694 // input. |
694 if (interactive && ! (reading_fcn_file || get_input_from_eval_string)) | 695 if (interactive && ! (reading_fcn_file || get_input_from_eval_string)) |
695 yyrestart (stdin); | 696 yyrestart (stdin); |