// Implementation.
-#include <string.h>
+#include <cstring>
#include "cln/input.h"
#include "cln/real_io.h"
#include "cln/float_io.h"
#include <cmath>
#define floor cln_floor
+
namespace cln {
// Step forward over all digits, to the end of string or to the next non-digit.
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;