Mercurial > octave
diff liboctave/lo-utils.cc @ 10068:ca93f583573d
handle interrupts octave_fgets
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 07 Jan 2010 07:58:23 +0100 |
parents | c6edba80dfae |
children | 829e69ec3110 |
line wrap: on
line diff
--- 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; }