]> www.ginac.de Git - cln.git/blobdiff - src/base/symbol/cl_sy_hashcode.cc
Remove exception hooks in favor of real C++ exceptions:
[cln.git] / src / base / symbol / cl_sy_hashcode.cc
index 82579ec01906d2af430c623b2fe4d4f8f3ed83fb..a318221149b78fdf464ac7268b9d440e0c2a9eb1 100644 (file)
@@ -1,16 +1,18 @@
-// cl_symbol hashcode().
+// cln/symbol.hashcode().
 
 // General includes.
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_symbol.h"
+#include "cln/symbol.h"
 
 
 // Implementation.
 
 #include "cl_offsetof.h"
 
+namespace cln {
+
 #define declare_alignof(where,type)  \
   struct CONCAT(aligndummy,__LINE__) { char slot1; type slot2; }; \
   const unsigned long where = offsetof(CONCAT(aligndummy,__LINE__), slot2);
@@ -22,3 +24,5 @@ unsigned long hashcode (const cl_symbol& s)
        return (unsigned long)(s.pointer)
               / (string_alignment & -string_alignment); // divide by power of 2
 }
+
+}  // namespace cln