]> www.ginac.de Git - cln.git/blobdiff - src/real/format-output/cl_fmt_oldroman.cc
* */*: cl_istream -> std::istream, cl_ostream -> std::ostream.
[cln.git] / src / real / format-output / cl_fmt_oldroman.cc
index 36e622e807df7a3e27dd8fe70311d8d7aee43d9a..b69029bc29da1029f4709250c9babf572f34b1f8 100644 (file)
@@ -9,16 +9,18 @@
 
 // Implementation.
 
-#include "cl_integer.h"
-#include "cl_integer_io.h"
-#include "cl_abort.h"
+#include "cln/integer.h"
+#include "cln/integer_io.h"
+#include "cln/abort.h"
 
-void format_old_roman (cl_ostream stream, const cl_I& arg)
+namespace cln {
+
+void format_old_roman (std::ostream& stream, const cl_I& arg)
 {
        if (!(0 < arg && arg < 5000)) {
-               fprint(cl_stderr, "format_old_roman: argument should be in the range 1 - 4999, not ");
-               fprint(cl_stderr, arg);
-               fprint(cl_stderr, ".\n");
+               fprint(std::cerr, "format_old_roman: argument should be in the range 1 - 4999, not ");
+               fprint(std::cerr, arg);
+               fprint(std::cerr, ".\n");
                cl_abort();
        }
        var uintL value = cl_I_to_UL(arg);
@@ -42,3 +44,5 @@ void format_old_roman (cl_ostream stream, const cl_I& arg)
                }
        }
 }
+
+}  // namespace cln