Mercurial > hg > octave-nkf
changeset 5247:3d5b7114da82
[project @ 2005-03-26 17:56:02 by jwe]
author | jwe |
---|---|
date | Sat, 26 Mar 2005 17:56:02 +0000 |
parents | 8a4cae8ee7b7 |
children | e4a97381d57d |
files | liboctave/ChangeLog liboctave/cmd-edit.cc src/ChangeLog src/input.cc |
diffstat | 4 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2005-03-26 John W. Eaton <jwe@octave.org> + + * cmd-edit.cc (do_readline): Wrap call to ::octave_rl_readline + with {BEGIN,END}_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE. + 2005-03-15 John W. Eaton <jwe@octave.org> * Makefile.in (MATRIX_INC): Remove oct-spparms.h from the list.
--- a/liboctave/cmd-edit.cc +++ b/liboctave/cmd-edit.cc @@ -36,6 +36,8 @@ #include <unistd.h> #endif +#include "quit.h" + #include "cmd-edit.h" #include "cmd-hist.h" #include "lo-error.h" @@ -192,7 +194,13 @@ eof = false; - char *line = ::octave_rl_readline (prompt.c_str ()); + char *line = 0; + + BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE; + + line = ::octave_rl_readline (prompt.c_str ()); + + END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE; if (line) {
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-03-26 John W. Eaton <jwe@octave.org> + + * input.cc (gnu_readline): Don't wrap call to command_editor::readline + with {BEGIN,END}_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE. + 2005-03-25 John W. Eaton <jwe@octave.org> * toplev.cc (main_loop): Don't use octave_set_current_context here.