comparison 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
comparison
equal deleted inserted replaced
10067:6f79338c269b 10068:ca93f583573d
38 #ifdef HAVE_SYS_TYPES_H 38 #ifdef HAVE_SYS_TYPES_H
39 #include <sys/types.h> 39 #include <sys/types.h>
40 #endif 40 #endif
41 #include <unistd.h> 41 #include <unistd.h>
42 #endif 42 #endif
43
44 #include "quit.h"
43 45
44 #include "lo-error.h" 46 #include "lo-error.h"
45 #include "lo-ieee.h" 47 #include "lo-ieee.h"
46 #include "lo-mappers.h" 48 #include "lo-mappers.h"
47 #include "lo-utils.h" 49 #include "lo-utils.h"
216 while (retval.empty ()); 218 while (retval.empty ());
217 219
218 if (buf) 220 if (buf)
219 free (buf); 221 free (buf);
220 222
223 OCTAVE_QUIT;
224
221 return retval; 225 return retval;
222 } 226 }
223 227
224 std::string 228 std::string
225 octave_fgetl (FILE *f) 229 octave_fgetl (FILE *f)