]> www.ginac.de Git - cln.git/blobdiff - src/complex/input/cl_N_read.cc
* Change all C include headers to ISO style within C++ code.
[cln.git] / src / complex / input / cl_N_read.cc
index b2314cd433432866db8bd442d773cbb4b34dfc5c..bd884b0a1e2e9c91bf80f3d585a9c2a51545e197 100644 (file)
@@ -9,7 +9,7 @@
 
 // Implementation.
 
-#include <string.h>
+#include <cstring>
 #include "cln/input.h"
 #include "cln/real_io.h"
 #include "cln/float_io.h"
@@ -25,6 +25,7 @@
 #include <cmath>
 #define floor cln_floor
 
+
 namespace cln {
 
 // Step forward over all digits, to the end of string or to the next non-digit.
@@ -91,9 +92,9 @@ const cl_N read_complex (const cl_read_flags& flags, const char * string, const
                                                goto not_rational_syntax;
                                        var cl_I base = read_integer(10,0,ptr,0,base_end_ptr-ptr);
                                        if (!((base >= 2) && (base <= 36))) {
-                                               fprint(stderr, "Base must be an integer in the range from 2 to 36, not ");
-                                               fprint(stderr, base);
-                                               fprint(stderr, "\n");
+                                               fprint(std::cerr, "Base must be an integer in the range from 2 to 36, not ");
+                                               fprint(std::cerr, base);
+                                               fprint(std::cerr, "\n");
                                                cl_abort();
                                        }
                                        rational_base = FN_to_UL(base); ptr = base_end_ptr;