]> www.ginac.de Git - cln.git/blobdiff - src/base/string/cl_st_make0.cc
Add index entry for 'cast'.
[cln.git] / src / base / string / cl_st_make0.cc
index e0cd132e6409955b1dc48b3fa9f87e9ccd05333c..1628d42b6fd67e066a780844f11a53f01fd0acca 100644 (file)
@@ -4,20 +4,24 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_string.h"
+#include "cln/string.h"
 
 
 // Implementation.
 
-#include "cl_malloc.h"
+#include "cln/malloc.h"
 #include "cl_offsetof.h"
 
+namespace cln {
+
 MAYBE_INLINE
 cl_heap_string* cl_make_heap_string (unsigned long len)
 {
-       var cl_heap_string* str = (cl_heap_string*) cl_malloc_hook(offsetofa(cl_heap_string,data)+sizeof(char)*(len+1));
+       var cl_heap_string* str = (cl_heap_string*) malloc_hook(offsetofa(cl_heap_string,data)+sizeof(char)*(len+1));
        str->refcount = 1;
        str->type = &cl_class_string;
        str->length = len;
        return str;     /* Have to fill data[0..len] yourself. */
 }
+
+}  // namespace cln