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
34 lines
874 B
// I/O of numbers.
|
|
|
|
#ifndef _CL_NUMBER_IO_H
|
|
#define _CL_NUMBER_IO_H
|
|
|
|
#include "cl_io.h"
|
|
#include "cl_number.h"
|
|
|
|
// 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;
|
|
|
|
#endif /* _CL_NUMBER_IO_H */
|