Category : OS/2 Files
Archive   : GPPDEV8F.ZIP
Filename : NEW.H

 
Output of file : NEW.H contained in archive : GPPDEV8F.ZIP
#ifndef _new_h
#ifdef __GNUG__
#pragma interface
#endif
#define _new_h 1

#include
#include

#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

typedef void (*new_handler_t)();
extern new_handler_t __new_handler;
extern "C" void default_new_handler();
extern "C" new_handler_t set_new_handler(new_handler_t);

#ifdef __GNUG__
#define NEW(where) new { where }
#endif

// default placement version of operator new
static inline void *operator new(size_t, void *place) { return place; }

// provide a C++ interface to vector-resize via realloc
inline void *operator new(size_t size, void *ptr, size_t new_len)
{
return realloc(ptr, new_len * size);
}

#endif


  3 Responses to “Category : OS/2 Files
Archive   : GPPDEV8F.ZIP
Filename : NEW.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/