]> www.ginac.de Git - cln.git/blobdiff - src/base/string/output/cl_st_print.cc
* Change all C include headers to ISO style within C++ code.
[cln.git] / src / base / string / output / cl_st_print.cc
index 8bbbf66446a60371851acde79c930698778a510f..5d3fa9928c9cef6d31d1105926bfabfab6e02c93 100644 (file)
@@ -4,24 +4,18 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_string.h"
+#include "cln/string.h"
 
 
 // Implementation.
 
-#include "cl_io.h"
+#include "cln/io.h"
 
-void fprint (cl_ostream stream, const cl_string& str)
+namespace cln {
+
+void fprint (std::ostream& stream, const cl_string& str)
 {
-#if defined(CL_IO_STDIO)
-       var const char * ptr = str.asciz();
-       var unsigned long i = str.length();
-       while (i > 0) {
-               fprintchar(stream,*ptr);
-               ptr++; i--;
-       }
-#endif
-#if defined(CL_IO_IOSTREAM)
        stream.write(str.asciz(),str.length());
-#endif
 }
+
+}  // namespace cln