]> www.ginac.de Git - cln.git/blobdiff - include/cln/number_io.h
* All Files have been modified for inclusion of namespace cln;
[cln.git] / include / cln / number_io.h
diff --git a/include/cln/number_io.h b/include/cln/number_io.h
new file mode 100644 (file)
index 0000000..bf77a05
--- /dev/null
@@ -0,0 +1,38 @@
+// I/O of numbers.
+
+#ifndef _CL_NUMBER_IO_H
+#define _CL_NUMBER_IO_H
+
+#include "cln/io.h"
+#include "cln/number.h"
+
+namespace cln {
+
+// Input.
+
+// Finish with bad syntax.
+#ifdef _CL_MACROS_H
+nonreturning_function(extern, read_number_bad_syntax, (const char * string, const char * string_limit));
+#else
+extern void read_number_bad_syntax (const char * string, const char * string_limit);
+#endif
+
+// Finish with junk after the number.
+#ifdef _CL_MACROS_H
+nonreturning_function(extern, read_number_junk, (const char * string_rest, const char * string, const char * string_limit));
+#else
+extern void read_number_junk (const char * string_rest, const char * string, const char * string_limit);
+#endif
+
+// Finish with EOF.
+#ifdef _CL_MACROS_H
+nonreturning_function(extern, read_number_eof, (void));
+#else
+extern void read_number_eof (void);
+#endif
+
+struct cl_read_flags;
+
+}  // namespace cln
+
+#endif /* _CL_NUMBER_IO_H */