comparison 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
comparison
equal deleted inserted replaced
19412:f7ccd02bc060 19413:c1ce43276b86
3396 } 3396 }
3397 3397
3398 if (! input_buf.empty ()) 3398 if (! input_buf.empty ())
3399 status = input_buf.copy_chunk (buf, max_size); 3399 status = input_buf.copy_chunk (buf, max_size);
3400 else 3400 else
3401 { 3401 status = YY_NULL;
3402 status = YY_NULL;
3403
3404 if (! input_buf.at_eof ())
3405 fatal_error ("octave_base_lexer::fill_flex_buffer failed");
3406 }
3407 3402
3408 return status; 3403 return status;
3409 } 3404 }
3410 3405
3411 int 3406 int
3417 input_buf.fill (std::string (1, static_cast<char> (1)), false); 3412 input_buf.fill (std::string (1, static_cast<char> (1)), false);
3418 3413
3419 if (! input_buf.empty ()) 3414 if (! input_buf.empty ())
3420 status = input_buf.copy_chunk (buf, max_size); 3415 status = input_buf.copy_chunk (buf, max_size);
3421 else 3416 else
3422 { 3417 status = YY_NULL;
3423 status = YY_NULL;
3424
3425 if (! input_buf.at_eof ())
3426 fatal_error ("octave_base_lexer::fill_flex_buffer failed");
3427 }
3428 3418
3429 return status; 3419 return status;
3430 } 3420 }
3431 3421