1 // I/O through <iostream>
7 #include "cln/modules.h"
9 // I/O through <iostream>
14 #define floor cln_floor
22 typedef std::istream& cl_istream;
23 typedef std::ostream& cl_ostream;
24 extern std::ostream* cl_debugout_stream;
25 #define cl_debugout (*cl_debugout_stream)
27 // Elementary operations on std::ostream&
29 inline void fprintchar (std::ostream& stream, char c)
34 inline void fprint (std::ostream& stream, const char * string)
40 extern void fprintdecimal (std::ostream& stream, unsigned long x);
41 extern void fprintdecimal (std::ostream& stream, long x);
43 inline void fprintdecimal (std::ostream& stream, unsigned int x)
45 fprintdecimal(stream,(unsigned long)x);
47 inline void fprintdecimal (std::ostream& stream, int x)
49 fprintdecimal(stream,(long)x);
52 extern void fprinthexadecimal (std::ostream& stream, unsigned long x);
53 extern void fprinthexadecimal (std::ostream& stream, long x);
55 inline void fprinthexadecimal (std::ostream& stream, unsigned int x)
57 fprinthexadecimal(stream,(unsigned long)x);
59 inline void fprinthexadecimal (std::ostream& stream, int x)
61 fprinthexadecimal(stream,(long)x);
65 struct cl_print_flags;
66 struct cl_print_number_flags;
67 struct cl_print_real_flags;
68 struct cl_print_rational_flags;
69 struct cl_print_float_flags;
71 class cl_prin_globals_init_helper
75 cl_prin_globals_init_helper();
76 ~cl_prin_globals_init_helper();
78 static cl_prin_globals_init_helper cl_prin_globals_init_helper_instance;
80 // Define the customary << and >> operators.
82 #define CL_DEFINE_PRINT_OPERATOR(_class_) \
83 inline std::ostream& operator<< (std::ostream& stream, const _class_& x) \