[Gridflow-cvs] [svn] commit: r4071 - /trunk/gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Sep 16 16:16:57 EDT 2008


Author: matju
Date: Tue Sep 16 16:16:56 2008
New Revision: 4071

Log:
remove custom global allocator

Modified:
    trunk/gridflow.h

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Tue Sep 16 16:16:56 2008
@@ -185,24 +185,6 @@
   void error(BFObject *bself);
   ~Barf() {}
 };
-
-#include <stdio.h>
-extern "C" void *gfmalloc(size_t n);
-extern "C" void gffree(void *p);
-#if __GNUC__<4
-#define ALLOCPREFIX static inline
-#else
-#define ALLOCPREFIX inline
-#endif
-#include "base/new.h"
-ALLOCPREFIX void *operator new   (size_t n)          throw (std::bad_alloc) {return gfmalloc(n);}
-ALLOCPREFIX void *operator new[] (size_t n)          throw (std::bad_alloc) {return gfmalloc(n);}
-ALLOCPREFIX void *operator new   (size_t n, const std::nothrow_t&) throw () {return gfmalloc(n);}
-ALLOCPREFIX void *operator new[] (size_t n, const std::nothrow_t&) throw () {return gfmalloc(n);}
-ALLOCPREFIX void operator delete  (void*p) throw() {gffree(p);}
-ALLOCPREFIX void operator delete[](void*p) throw() {gffree(p);}
-ALLOCPREFIX void operator delete  (void*p, const std::nothrow_t&) throw() {gffree(p);}
-ALLOCPREFIX void operator delete[](void*p, const std::nothrow_t&) throw() {gffree(p);}
 
 #define NEWBUF(T,N) (new T[N])
 #define DELBUF(A) (delete[] A)



More information about the Gridflow-cvs mailing list