# HG changeset patch # User Jaroslav Hajek # Date 1262847503 -3600 # Node ID ca93f583573dbacf72c09071cd40fc3b5bef9380 # Parent 6f79338c269b8cbb983701cb4805af2219551748 handle interrupts octave_fgets diff -r 6f79338c269b -r ca93f583573d liboctave/ChangeLog --- 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 + + * lo-utils.cc (octave_fgets (FILE *, bool&)): Add OCTAVE_QUIT at the + end. + 2010-01-05 John W. Eaton * Makefile.am (AM_CPPFLAGS): Include @CPPFLAGS@ and -I../libgnu diff -r 6f79338c269b -r ca93f583573d liboctave/lo-utils.cc --- 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 #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; }