]> www.ginac.de Git - cln.git/blobdiff - include/cln/object.h
* include/cln/number.h (cl_as_N): Remove bogus comment.
[cln.git] / include / cln / object.h
index 617f7f32b1350c2e2a189edc8e4db86bb9bd4666..02dd64ec52ed96df5a516587ea87f4ed1b5d71c9 100644 (file)
@@ -175,7 +175,7 @@ typedef void (*cl_heap_destructor_function) (cl_heap* pointer);
 #define cl_class_flags_subclass_rational  8  // all instances belong to cl_RA
 #define cl_class_flags_number_ring       16  // all instances are rings whose
                                              // elements belong to cl_number
-// Function to print an object for debugging, to stderr.
+// Function to print an object for debugging, to cerr.
 typedef void (*cl_heap_dprint_function) (cl_heap* pointer);
 
 struct cl_class {
@@ -335,7 +335,7 @@ public:
 // Debugging output.
        void debug_print () const;
 // Ability to place an object at a given address.
-       void* operator new (size_t size, cl_gcobject* ptr) { (void)size; return ptr; }
+       void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
        void* operator new (size_t size) { return ::operator new (size); }
 };
 inline cl_gcobject::cl_gcobject () {}
@@ -385,7 +385,7 @@ public:
 // Debugging output.
        void debug_print () const;
 // Ability to place an object at a given address.
-       void* operator new (size_t size, cl_gcpointer* ptr) { (void)size; return ptr; }
+       void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
        void* operator new (size_t size) { return ::operator new (size); }
 };
 inline cl_gcpointer::cl_gcpointer () {}
@@ -435,7 +435,7 @@ public:
 // Debugging output.
        void debug_print () const;
 // Ability to place an object at a given address.
-       void* operator new (size_t size, cl_rcobject* ptr) { (void)size; return ptr; }
+       void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
        void* operator new (size_t size) { return ::operator new (size); }
 };
 inline cl_rcobject::cl_rcobject () {}
@@ -485,7 +485,7 @@ public:
 // Debugging output.
        void debug_print () const;
 // Ability to place an object at a given address.
-       void* operator new (size_t size, cl_rcpointer* ptr) { (void)size; return ptr; }
+       void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
        void* operator new (size_t size) { return ::operator new (size); }
 };
 inline cl_rcpointer::cl_rcpointer () {}