freebsd-skq/gnu/lib/libg++/include/new.h
phk c8beafaf61 I belive this should be makeable under 2.0. There may be outstanding
issues in these areas:
    .h's installed
    .hP's installed
    -lcurses interaction
    files needed in ~/legal for copyleft reasons.
1994-08-08 05:52:55 +00:00

28 lines
631 B
C

#ifndef _new_h
#ifdef __GNUG__
#pragma interface
#endif
#define _new_h 1
#include <defines.h>
#ifndef NO_LIBGXX_MALLOC
#define MALLOC_ALIGN_MASK 7 /* ptrs aligned at 8 byte boundaries */
#define MALLOC_MIN_OVERHEAD 8 /* 8 bytes of overhead per pointer */
#endif
extern "C" fvoid_t *set_new_handler(fvoid_t *);
#ifdef __GNUG__
extern fvoid_t *__new_handler;
extern "C" void __default_new_handler();
#define NEW(where) new ( where )
#endif
// default placement version of operator new
inline void *operator new(size_t, void *place) { return place; }
inline void *operator new[](size_t, void *place) { return place; }
#endif