]> www.ginac.de Git - cln.git/blobdiff - src/float/ffloat/misc/cl_FF_as.cc
Finalize CLN 1.3.7 release.
[cln.git] / src / float / ffloat / misc / cl_FF_as.cc
index e22057fdf141af6f2d08cf4b9dfe95dec29b864d..abbc4b25c3cf197f49158b3b20d84f4c788f4871 100644 (file)
@@ -1,7 +1,7 @@
 // cl_FF_As().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
 #include "cln/ffloat.h"
@@ -9,22 +9,22 @@
 
 // Implementation.
 
-#include "cl_N.h"
+#include "base/cl_N.h"
 
 namespace cln {
 
-inline cl_boolean cl_FF_p (const cl_number& x)
+inline bool cl_FF_p (const cl_number& x)
 {
 #if defined(CL_WIDE_POINTERS)
        if (!x.pointer_p())
                if (cl_tag((x).word) == cl_FF_tag)
-                       return cl_true;
+                       return true;
 #else
        if (x.pointer_p())
                if (x.heappointer->type == &cl_class_ffloat)
-                       return cl_true;
+                       return true;
 #endif
-       return cl_false;
+       return false;
 }
 
 const cl_FF& cl_FF_As (const cl_number& x, const char * filename, int line)
@@ -33,7 +33,7 @@ const cl_FF& cl_FF_As (const cl_number& x, const char * filename, int line)
                DeclareType(cl_FF,x);
                return x;
        } else
-               cl_as_error(x,"a single-float number",filename,line);
+               throw as_exception(x,"a single-float number",filename,line);
 }
 
 }  // namespace cln