X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=include%2Fcln%2Fnumber_io.h;fp=include%2Fcln%2Fnumber_io.h;h=bf77a05f4ce18719ff6c287d4d2690f636a3f5ec;hb=850abfde7f0d985ba01526c346bcd0d733562943;hp=0000000000000000000000000000000000000000;hpb=e0b64ba4f92bb0323e5b241b465d17389ceff2d9;p=cln.git diff --git a/include/cln/number_io.h b/include/cln/number_io.h new file mode 100644 index 0000000..bf77a05 --- /dev/null +++ b/include/cln/number_io.h @@ -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 */