]> www.ginac.de Git - cln.git/blobdiff - src/base/string/cl_spushstring_push.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / base / string / cl_spushstring_push.cc
index 29cb91f7ab65a4376985cbe41245d8cfb3898370..c45197c2b78bd6c2caf6149ede13a154f81b603c 100644 (file)
 
 #include <string.h> // declares memcpy()
 
+namespace cln {
+
 void cl_spushstring::push (char c)
 {
        if (index >= alloc) {
                var uintL newalloc = 2*alloc;
-               var char* newbuffer = (char *) cl_malloc_hook(newalloc);
+               var char* newbuffer = (char *) malloc_hook(newalloc);
                memcpy(newbuffer,buffer,alloc);
-               cl_free_hook(buffer);
+               free_hook(buffer);
                buffer = newbuffer;
                alloc = newalloc;
        }
        // Now index < alloc.
        buffer[index++] = c;
 }
+
+}  // namespace cln