You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
914 B

25 years ago
25 years ago
25 years ago
  1. // I/O of numbers.
  2. #ifndef _CL_NUMBER_IO_H
  3. #define _CL_NUMBER_IO_H
  4. #include "cln/io.h"
  5. #include "cln/number.h"
  6. namespace cln {
  7. // Input.
  8. // Finish with bad syntax.
  9. #ifdef _CL_MACROS_H
  10. nonreturning_function(extern, read_number_bad_syntax, (const char * string, const char * string_limit));
  11. #else
  12. extern void read_number_bad_syntax (const char * string, const char * string_limit);
  13. #endif
  14. // Finish with junk after the number.
  15. #ifdef _CL_MACROS_H
  16. nonreturning_function(extern, read_number_junk, (const char * string_rest, const char * string, const char * string_limit));
  17. #else
  18. extern void read_number_junk (const char * string_rest, const char * string, const char * string_limit);
  19. #endif
  20. // Finish with EOF.
  21. #ifdef _CL_MACROS_H
  22. nonreturning_function(extern, read_number_eof, (void));
  23. #else
  24. extern void read_number_eof (void);
  25. #endif
  26. struct cl_read_flags;
  27. } // namespace cln
  28. #endif /* _CL_NUMBER_IO_H */