23 #if !defined (octave_lo_utils_h)
24 #define octave_lo_utils_h 1
38 template <
class F,
class T,
bool zero>
44 for (i = 0; i < len - 3; i += 4)
48 if (fcn (m[i]) != zero
49 || fcn (m[i+1]) != zero
50 || fcn (m[i+2]) != zero
51 || fcn (m[i+3]) != zero)
58 if (fcn (m[i]) != zero)
66 extern OCTAVE_API
bool xis_zero (
double x);
73 extern OCTAVE_API
bool xis_zero (
float x);
76 extern OCTAVE_API
char *
strsave (
const char *);
78 extern OCTAVE_API
void
81 extern OCTAVE_API std::string
octave_fgets (std::FILE *);
82 extern OCTAVE_API std::string
octave_fgetl (std::FILE *);
84 extern OCTAVE_API std::string
octave_fgets (std::FILE *,
bool& eof);
85 extern OCTAVE_API std::string
octave_fgetl (std::FILE *,
bool& eof);
105 return octave_read_value<double> (is);
111 return octave_read_value<Complex> (is);
117 return octave_read_value<float> (is);
123 return octave_read_value<FloatComplex> (is);
126 extern OCTAVE_API
void
129 extern OCTAVE_API
void
132 extern OCTAVE_API
void
135 extern OCTAVE_API
void
145 static bool ifexited (
int status)
150 static int exitstatus (
int status)
155 static bool ifsignaled (
int status)
160 static int termsig (
int status)
165 static bool coredump (
int status)
170 static bool ifstopped (
int status)
175 static int stopsig (
int status)
180 static bool ifcontinued (
int status)