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.

34 lines
874 B

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