Mercurial > octave-nkf
changeset 10068:ca93f583573d
handle interrupts octave_fgets
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 07 Jan 2010 07:58:23 +0100 |
parents | 6f79338c269b |
children | c670c8be7f93 |
files | liboctave/ChangeLog liboctave/lo-utils.cc |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Wed Jan 06 22:17:01 2010 +0100 +++ b/liboctave/ChangeLog Thu Jan 07 07:58:23 2010 +0100 @@ -1,3 +1,8 @@ +2010-01-07 Jaroslav Hajek <highegg@gmail.com> + + * lo-utils.cc (octave_fgets (FILE *, bool&)): Add OCTAVE_QUIT at the + end. + 2010-01-05 John W. Eaton <jwe@octave.org> * Makefile.am (AM_CPPFLAGS): Include @CPPFLAGS@ and -I../libgnu
--- a/liboctave/lo-utils.cc Wed Jan 06 22:17:01 2010 +0100 +++ b/liboctave/lo-utils.cc Thu Jan 07 07:58:23 2010 +0100 @@ -41,6 +41,8 @@ #include <unistd.h> #endif +#include "quit.h" + #include "lo-error.h" #include "lo-ieee.h" #include "lo-mappers.h" @@ -218,6 +220,8 @@ if (buf) free (buf); + OCTAVE_QUIT; + return retval; }