X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;ds=sidebyside;f=src%2Ffloat%2Finput%2Fcl_F_read_stream.cc;h=a3e7461fe72d8b638f51c16691f8bcf6156e18b0;hb=f3b29e52ea5a7b013f8294065920365e5d17d18f;hp=889c6ae6c74f8a3518cca454d49d8e5ff8740834;hpb=53cf241b087f70998460b1dcb3e678dd19cfaf32;p=cln.git diff --git a/src/float/input/cl_F_read_stream.cc b/src/float/input/cl_F_read_stream.cc index 889c6ae..a3e7461 100644 --- a/src/float/input/cl_F_read_stream.cc +++ b/src/float/input/cl_F_read_stream.cc @@ -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