diff libinterp/parse-tree/lex.ll @ 16199:810a71122c25

move more global variables to octave_lexical_feedback class * help.cc (raw_help_from_file): Don't protect and set reading_script_file. * octave.cc (likewise): * oct_parse.in.yy (parse_fcn_file): Don't protect reading_script_file. * input.cc (get_debug_input): Don't protect and set reading_fcn_file, reading_classdef_file, or reading_script_file. * lex.h, lex.ll, input.h, input.cc (reading_fcn_file, reading_classdef_file, reading_script_file): Declare as members of the lexical_feedback class. Change all uses. (lexical_feedback::lexical_feedback, lexical_feedback::reset): Initialize and set them.
author John W. Eaton <jwe@octave.org>
date Tue, 05 Mar 2013 17:50:37 -0500
parents b52d2f9294b6
children 127cccb037bf
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Tue Mar 05 17:43:00 2013 -0500
+++ b/libinterp/parse-tree/lex.ll	Tue Mar 05 17:50:37 2013 -0500
@@ -1324,6 +1324,9 @@
   maybe_classdef_get_set_method = false;
   parsing_classdef = false;
   quote_is_transpose = false;
+  reading_fcn_file = false;
+  reading_script_file = false;
+  reading_classdef_file = false;
   input_line_number = 1;
   current_input_column = 1;
   bracketflag = 0;