]> www.ginac.de Git - cln.git/blobdiff - src/base/hash/cl_rcpointer2_hashweak_rcpointer.cc
64-bit mingw port: In hash table routines, use 'intptr_t' instead of 'long'.
[cln.git] / src / base / hash / cl_rcpointer2_hashweak_rcpointer.cc
index 660cbd19dc5321208a659cdf9b3d6f4a70e8d532..4d6d0f2b693498bc72b99096a5346b0ac3cd0e0a 100644 (file)
@@ -1,23 +1,21 @@
 // class cl_wht_from_rcpointer2_to_rcpointer.
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_rcpointer2_hashweak_rcpointer.h"
+#include "base/hash/cl_rcpointer2_hashweak_rcpointer.h"
 
 
 // Implementation.
 
-#include "cl_hash2weak.h"
+#include "base/hash/cl_hash2weak.h"
+
+namespace cln {
 
 static void cl_weak_hashtable_from_rcpointer2_to_rcpointer_destructor (cl_heap* pointer)
 {
-#if (defined(__mips__) || defined(__mips64__)) && !defined(__GNUC__) // workaround SGI CC bug
-       (*(cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer).~cl_heap_weak_hashtable_2();
-#else
        (*(cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer).~cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer();
-#endif
 }
 
 cl_class cl_class_weak_hashtable_from_rcpointer2_to_rcpointer = {
@@ -27,7 +25,7 @@ cl_class cl_class_weak_hashtable_from_rcpointer2_to_rcpointer = {
 
 // These are not inline, because they tend to duplicate a lot of template code.
 
-cl_wht_from_rcpointer2_to_rcpointer::cl_wht_from_rcpointer2_to_rcpointer (cl_boolean (*maygc_htentry) (const cl_htentry_from_rcpointer2_to_rcpointer&))
+cl_wht_from_rcpointer2_to_rcpointer::cl_wht_from_rcpointer2_to_rcpointer (bool (*maygc_htentry) (const cl_htentry_from_rcpointer2_to_rcpointer&))
 {
        var cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer* ht = new cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer (maygc_htentry);
        ht->refcount = 1;
@@ -45,3 +43,4 @@ void cl_wht_from_rcpointer2_to_rcpointer::put (const cl_rcpointer& x, const cl_r
        ((cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer)->put(x,y,z);
 }
 
+}  // namespace cln