diff libinterp/parse-tree/lex.ll @ 19413:c1ce43276b86 gui-release

avoid printing debug location in cmd window when using GUI to step * pt-eval.cc, pt-eval.h (tree_evaluator::quiet_breakpoint_flag): New member variable. * debug.cc (Fdb_next_breakpoint_quiet): New function. * main-window.cc (main_window::execute_debug_callback): Call Fdb_next_breakpoint_quiet prior to Fdbstep and Fdbcont. * input.cc, input.h (get_debug_input): Don't print debug location if tree_evaluator::quiet_breakpoint_flag is true. Reset it after checking. * lex.ll (octave_lexer::fill_flex_buffer, octave_push_lexer::fill_flex_buffer): Don't abort if input_buf is empty.
author John W. Eaton <jwe@octave.org>
date Thu, 04 Dec 2014 16:06:31 -0500
parents a3eead909bf9
children 5db5619fe54e fe689210525c
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Thu Dec 04 15:56:49 2014 -0500
+++ b/libinterp/parse-tree/lex.ll	Thu Dec 04 16:06:31 2014 -0500
@@ -3398,12 +3398,7 @@
   if (! input_buf.empty ())
     status = input_buf.copy_chunk (buf, max_size);
   else
-    {
-      status = YY_NULL;
-
-      if (! input_buf.at_eof ())
-        fatal_error ("octave_base_lexer::fill_flex_buffer failed");
-    }
+    status = YY_NULL;
 
   return status;
 }
@@ -3419,12 +3414,7 @@
   if (! input_buf.empty ())
     status = input_buf.copy_chunk (buf, max_size);
   else
-    {
-      status = YY_NULL;
-
-      if (! input_buf.at_eof ())
-        fatal_error ("octave_base_lexer::fill_flex_buffer failed");
-    }
+    status = YY_NULL;
 
   return status;
 }