]> www.ginac.de Git - cln.git/blobdiff - src/float/input/cl_F_read_stream.cc
* */*: cl_istream -> std::istream, cl_ostream -> std::ostream.
[cln.git] / src / float / input / cl_F_read_stream.cc
index 889c6ae6c74f8a3518cca454d49d8e5ff8740834..a3e7461fe72d8b638f51c16691f8bcf6156e18b0 100644 (file)
@@ -6,15 +6,17 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_float_io.h"
+#include "cln/float_io.h"
 
 
 // Implementation.
 
-#include "cl_input.h"
-#include "cl_io.h"
+#include "cln/input.h"
+#include "cln/io.h"
 #include "cl_spushstring.h"
 
+namespace cln {
+
 // We read an entire token (or even more, if it begins with #C) into a
 // buffer and then call read_float() on the buffer.
 
@@ -38,7 +40,7 @@ static cl_boolean number_char_p (char c)
        }
 }
 
-const cl_F read_float (cl_istream stream, const cl_read_flags& flags)
+const cl_F read_float (std::istream& stream, const cl_read_flags& flags)
 {
        // One pre-allocated buffer. This reduces the allocation/free cost.
        static pushstring_hack buffer;
@@ -102,3 +104,5 @@ syntax1:    buffer.push(c);
        // Handle premature EOF.
 eof:   read_number_eof();
 }
+
+}  // namespace cln