]> www.ginac.de Git - cln.git/blobdiff - include/cln/SV_rational.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / SV_rational.h
index 860a414846a8f4ecca387320b570a81ec96e84aa..b7003f88bc34723eb75577dcad59997c31de336b 100644 (file)
@@ -19,7 +19,7 @@ public:
        // Constructors.
        cl_SV_RA () : cl_SV<cl_RA,cl_SV_R> ((cl_heap_SV_RA*) (cl_heap_SV_number*) cl_null_SV_number) {};
        cl_SV_RA (const cl_SV_RA&);
-       explicit cl_SV_RA (uintL len) : cl_SV<cl_RA,cl_SV_R> ((cl_heap_SV_RA*) cl_make_heap_SV_number(len)) {};
+       explicit cl_SV_RA (uintC len) : cl_SV<cl_RA,cl_SV_R> ((cl_heap_SV_RA*) cl_make_heap_SV_number(len)) {};
        // Assignment operators.
        cl_SV_RA& operator= (const cl_SV_RA&);
        // Private pointer manipulations.
@@ -36,14 +36,14 @@ inline const cl_SV_RA copy (const cl_SV_RA& vector)
 }
 
 // Output.
-inline void fprint (cl_ostream stream, const cl_SV_RA& x)
+inline void fprint (std::ostream& stream, const cl_SV_RA& x)
 {
        extern cl_print_flags default_print_flags;
-       extern void print_vector (cl_ostream stream, const cl_print_flags& flags, void (* fun) (cl_ostream, const cl_print_flags&, const cl_number&), const cl_SV_number& vector);
-       extern void print_rational (cl_ostream stream, const cl_print_flags& flags, const cl_RA& z);
+       extern void print_vector (std::ostream& stream, const cl_print_flags& flags, void (* fun) (std::ostream&, const cl_print_flags&, const cl_number&), const cl_SV_number& vector);
+       extern void print_rational (std::ostream& stream, const cl_print_flags& flags, const cl_RA& z);
        print_vector(stream, default_print_flags,
-                    (void (*) (cl_ostream, const cl_print_flags&, const cl_number&))
-                    (void (*) (cl_ostream, const cl_print_flags&, const cl_RA&))
+                    (void (*) (std::ostream&, const cl_print_flags&, const cl_number&))
+                    (void (*) (std::ostream&, const cl_print_flags&, const cl_RA&))
                     &print_rational,
                     x);
 }