#include "cl_sysdep.h"
// Specification.
-#include "cl_integer_io.h"
+#include "cln/integer_io.h"
// Implementation.
#include "cl_I.h"
-const cl_I read_integer (unsigned int base, cl_signean sign, const char * string, uintL index1, uintL index2)
+namespace cln {
+
+#if intCsize > intLsize
+const cl_I read_integer (unsigned int base, cl_signean sign, const char* string, uintL index1, uintL index2)
+{
+ // XXX: This signature is for binary compatibility with CLN-1.2.0 only.
+ return read_integer(base, sign, string, uintC(index1), uintC(index2));
+}
+#endif
+
+const cl_I read_integer (unsigned int base, cl_signean sign, const char * string, uintC index1, uintC index2)
{
var cl_I x = digits_to_I(&string[index1],index2-index1,(uintD)base);
if (sign == 0)
else
return -x; // negatives Vorzeichen -> Vorzeichenwechsel
}
+
+} // namespace cln