]> www.ginac.de Git - cln.git/blobdiff - src/integer/hash/cl_I_hash_rcpointer.h
Replace CL_REQUIRE/CL_PROVIDE(cl_C_ring) with portable code.
[cln.git] / src / integer / hash / cl_I_hash_rcpointer.h
index 6f595eac959af52a89aac5cdd6466d7bb6516b5b..9d9ee3d137fbbaa67acfaf15dca15c9005720b60 100644 (file)
@@ -3,17 +3,11 @@
 #ifndef _CL_I_HASH_RCPOINTER_H
 #define _CL_I_HASH_RCPOINTER_H
 
-#include "cl_number.h"
-#include "cl_integer.h"
-
-// For the sake of gcc-2.7.x, this declaration must come before cl_hash1.h.
-extern unsigned long hashcode (const cl_I& x);
-
+#include "cln/number.h"
+#include "cln/integer.h"
 #include "cl_hash1.h"
 
-// Equality.
-static inline bool equal (const cl_I& x, const cl_I& y)
-{ return (bool)cl_equal(x,y); }
+namespace cln {
 
 typedef cl_htentry1<cl_I,cl_rcpointer> cl_htentry_from_integer_to_rcpointer;
 
@@ -36,4 +30,6 @@ struct cl_ht_from_integer_to_rcpointer : public cl_gcpointer {
        void put (const cl_I& x, const cl_rcpointer& y) const;
 };
 
+}  // namespace cln
+
 #endif /* _CL_I_HASH_RCPOINTER_H */