]> www.ginac.de Git - cln.git/blobdiff - src/base/string/cl_st_make2.cc
* */*: cl_istream -> std::istream, cl_ostream -> std::ostream.
[cln.git] / src / base / string / cl_st_make2.cc
index dfcdea02f1944514d3bc1719d4971d0040b3bc12..1599e2b2a7d4f5c94cecbacfbdda74ee2ddbec30 100644 (file)
@@ -4,17 +4,19 @@
 #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 {
+
 cl_heap_string* cl_make_heap_string (const char * ptr, 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;
@@ -28,3 +30,5 @@ cl_heap_string* cl_make_heap_string (const char * ptr, unsigned long len)
        }
        return str;
 }
+
+}  // namespace cln