Browse Source

* include/cln/*.h: Change signatures of all classes' methods

cln::cl_foo::operator new(size_t, cl_foo*) to
          cln::cl_foo::operator new(size_t, void*) so one can declare
          std::vector<cln::cl_foo>, std::list<cln::cl_foo> etc. for
          certain STL implementations (like libstdc++-v3).
master
Richard Kreckel 24 years ago
parent
commit
0c3376e344
  1. 12
      ChangeLog
  2. 9
      NEWS
  3. 2
      include/cln/GV.h
  4. 2
      include/cln/SV.h
  5. 2
      include/cln/complex_class.h
  6. 2
      include/cln/dfloat_class.h
  7. 2
      include/cln/ffloat_class.h
  8. 2
      include/cln/float_class.h
  9. 2
      include/cln/integer_class.h
  10. 2
      include/cln/lfloat_class.h
  11. 4
      include/cln/modinteger.h
  12. 8
      include/cln/object.h
  13. 2
      include/cln/rational_class.h
  14. 2
      include/cln/real_class.h
  15. 4
      include/cln/ring.h
  16. 2
      include/cln/sfloat_class.h
  17. 6
      include/cln/univpoly.h
  18. 2
      include/cln/univpoly_complex.h
  19. 2
      include/cln/univpoly_integer.h
  20. 2
      include/cln/univpoly_modint.h
  21. 2
      include/cln/univpoly_rational.h
  22. 2
      include/cln/univpoly_real.h

12
ChangeLog

@ -1,3 +1,15 @@
2001-01-22 Richard Kreckel <kreckel@ginac.de>
* configure.in: Make build in separate builddir possible (again).
2001-01-22 Richard Kreckel <kreckel@ginac.de>
* include/cln/*.h: Change signatures of all classes' methods
cln::cl_foo::operator new(size_t, cl_foo*) to
cln::cl_foo::operator new(size_t, void*) so one can declare
std::vector<cln::cl_foo>, std::list<cln::cl_foo> etc. for
certain STL implementations (like libstdc++-v3).
2000-12-14 Richard Kreckel <kreckel@ginac.de> 2000-12-14 Richard Kreckel <kreckel@ginac.de>
* Version 1.1 released. * Version 1.1 released.

9
NEWS

@ -1,3 +1,12 @@
2001-xx-xx, version 1.1.1
=========================
Implementation changes
----------------------
* Minor cleanup for GCC 3.0.
2000-12-14, version 1.1.0 2000-12-14, version 1.1.0
========================= =========================

2
include/cln/GV.h

@ -44,7 +44,7 @@ public:
// Destructor. // Destructor.
~cl_GV_inner (); ~cl_GV_inner ();
// Ability to place an object at a given address. // Ability to place an object at a given address.
void* operator new (size_t size, cl_GV_inner* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
private: private:
// No default constructor, copy constructor, assignment operator, new. // No default constructor, copy constructor, assignment operator, new.
cl_GV_inner (); cl_GV_inner ();

2
include/cln/SV.h

@ -81,7 +81,7 @@ public:
// Destructor. // Destructor.
~cl_SV_inner (); ~cl_SV_inner ();
// Ability to place an object at a given address. // Ability to place an object at a given address.
void* operator new (size_t size, cl_SV_inner* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
private: private:
// No default constructor, copy constructor, assignment operator, new. // No default constructor, copy constructor, assignment operator, new.
cl_SV_inner (); cl_SV_inner ();

2
include/cln/complex_class.h

@ -36,7 +36,7 @@ public:
cl_N (struct cl_heap_complex *); cl_N (struct cl_heap_complex *);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_N* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
private: private:
// Friend declarations. They are for the compiler. Just ignore them. // Friend declarations. They are for the compiler. Just ignore them.

2
include/cln/dfloat_class.h

@ -31,7 +31,7 @@ public:
operator struct cl_heap_dfloat * () const; operator struct cl_heap_dfloat * () const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_DF* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
private: private:
// Friend declarations. They are for the compiler. Just ignore them. // Friend declarations. They are for the compiler. Just ignore them.

2
include/cln/ffloat_class.h

@ -39,7 +39,7 @@ public:
#endif #endif
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_FF* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/float_class.h

@ -28,7 +28,7 @@ public:
cl_F (cl_private_thing); cl_F (cl_private_thing);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_F* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
private: private:
// Friend declarations. They are for the compiler. Just ignore them. // Friend declarations. They are for the compiler. Just ignore them.

2
include/cln/integer_class.h

@ -33,7 +33,7 @@ public:
cl_I (struct cl_heap_bignum *); cl_I (struct cl_heap_bignum *);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_I* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/lfloat_class.h

@ -28,7 +28,7 @@ public:
operator struct cl_heap_lfloat * () const; operator struct cl_heap_lfloat * () const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_LF* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };
// Define this if you want the elementary cl_LF operations (+, -, *, /, // Define this if you want the elementary cl_LF operations (+, -, *, /,

4
include/cln/modinteger.h

@ -103,7 +103,7 @@ public:
CL_DEFINE_CONVERTER(_cl_ring_element) CL_DEFINE_CONVERTER(_cl_ring_element)
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, _cl_MI* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };
@ -125,7 +125,7 @@ public:
void debug_print () const; void debug_print () const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_MI* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

8
include/cln/object.h

@ -335,7 +335,7 @@ public:
// Debugging output. // Debugging output.
void debug_print () const; void debug_print () const;
// Ability to place an object at a given address. // 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); } void* operator new (size_t size) { return ::operator new (size); }
}; };
inline cl_gcobject::cl_gcobject () {} inline cl_gcobject::cl_gcobject () {}
@ -385,7 +385,7 @@ public:
// Debugging output. // Debugging output.
void debug_print () const; void debug_print () const;
// Ability to place an object at a given address. // 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); } void* operator new (size_t size) { return ::operator new (size); }
}; };
inline cl_gcpointer::cl_gcpointer () {} inline cl_gcpointer::cl_gcpointer () {}
@ -435,7 +435,7 @@ public:
// Debugging output. // Debugging output.
void debug_print () const; void debug_print () const;
// Ability to place an object at a given address. // 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); } void* operator new (size_t size) { return ::operator new (size); }
}; };
inline cl_rcobject::cl_rcobject () {} inline cl_rcobject::cl_rcobject () {}
@ -485,7 +485,7 @@ public:
// Debugging output. // Debugging output.
void debug_print () const; void debug_print () const;
// Ability to place an object at a given address. // 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); } void* operator new (size_t size) { return ::operator new (size); }
}; };
inline cl_rcpointer::cl_rcpointer () {} inline cl_rcpointer::cl_rcpointer () {}

2
include/cln/rational_class.h

@ -33,7 +33,7 @@ public:
cl_RA (struct cl_heap_ratio *); cl_RA (struct cl_heap_ratio *);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_RA* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
private: private:
// Friend declarations. They are for the compiler. Just ignore them. // Friend declarations. They are for the compiler. Just ignore them.

2
include/cln/real_class.h

@ -36,7 +36,7 @@ public:
cl_R (cl_private_thing); cl_R (cl_private_thing);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_R* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
private: private:
// Friend declarations. They are for the compiler. Just ignore them. // Friend declarations. They are for the compiler. Just ignore them.

4
include/cln/ring.h

@ -121,7 +121,7 @@ public: /* ugh */
_cl_ring_element (const cl_ring& R, const cl_gcobject& r) : rep (as_cl_private_thing(r)) { (void)R; } _cl_ring_element (const cl_ring& R, const cl_gcobject& r) : rep (as_cl_private_thing(r)) { (void)R; }
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, _cl_ring_element* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };
@ -140,7 +140,7 @@ public: // Debugging output.
void debug_print () const; void debug_print () const;
// Ability to place an object at a given address. // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_ring_element* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/sfloat_class.h

@ -26,7 +26,7 @@ public:
cl_SF (struct cl_sfloat * /* NULL! */, cl_uint); cl_SF (struct cl_sfloat * /* NULL! */, cl_uint);
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_SF* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

6
include/cln/univpoly.h

@ -72,7 +72,7 @@ public:
CL_DEFINE_CONVERTER(_cl_ring_element) CL_DEFINE_CONVERTER(_cl_ring_element)
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, _cl_UP* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };
@ -102,7 +102,7 @@ public:
void debug_print () const; void debug_print () const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };
@ -523,7 +523,7 @@ public:
const T operator() (const T& y) const; const T operator() (const T& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_specialized<T>* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/univpoly_complex.h

@ -53,7 +53,7 @@ public:
const cl_N operator() (const cl_N& y) const; const cl_N operator() (const cl_N& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_N* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/univpoly_integer.h

@ -52,7 +52,7 @@ public:
const cl_I operator() (const cl_I& y) const; const cl_I operator() (const cl_I& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_I* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/univpoly_modint.h

@ -43,7 +43,7 @@ public:
const cl_MI operator() (const cl_MI& y) const; const cl_MI operator() (const cl_MI& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_MI* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/univpoly_rational.h

@ -53,7 +53,7 @@ public:
const cl_RA operator() (const cl_RA& y) const; const cl_RA operator() (const cl_RA& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_RA* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

2
include/cln/univpoly_real.h

@ -53,7 +53,7 @@ public:
const cl_R operator() (const cl_R& y) const; const cl_R operator() (const cl_R& y) const;
public: // Ability to place an object at a given address. public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); } void* operator new (size_t size) { return malloc_hook(size); }
void* operator new (size_t size, cl_UP_R* ptr) { (void)size; return ptr; }
void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); } void operator delete (void* ptr) { free_hook(ptr); }
}; };

Loading…
Cancel
Save