Functions
mmalloc.cc File Reference
#include <kernel/mod2.h>
#include <omalloc/omalloc.h>
#include <new>
#include <stdlib.h>

Go to the source code of this file.

Functions

void * operator new (size_t size) throw (std::bad_alloc)
 
void operator delete (void *block) throw ()
 
void * operator new[] (size_t size) throw (std::bad_alloc)
 
void operator delete[] (void *block) throw ()
 
void * operator new (size_t size, const std::nothrow_t &) throw ()
 
void * operator new[] (size_t size, const std::nothrow_t &) throw ()
 

Function Documentation

void operator delete ( void *  block)
throw (
)

Definition at line 27 of file mmalloc.cc.

31 {
32  omfree( block );
33 }
#define block
Definition: scanner.cc:662
#define omfree(addr)
Definition: omAllocDecl.h:237
void operator delete[] ( void *  block)
throw (
)

Definition at line 46 of file mmalloc.cc.

50 {
51  omfree( block );
52 }
#define block
Definition: scanner.cc:662
#define omfree(addr)
Definition: omAllocDecl.h:237
void* operator new ( size_t  size)
throw (std::bad_alloc
)

Definition at line 16 of file mmalloc.cc.

20 {
21  void* addr;
22  if (size==(size_t)0) size = 1;
23  omTypeAlloc(void*, addr, size);
24  return addr;
25 }
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
#define omTypeAlloc(type, addr, size)
Definition: omAllocDecl.h:208
void* operator new ( size_t  size,
const std::nothrow_t &   
)
throw (
)

Definition at line 73 of file mmalloc.cc.

74 {
75  void* addr;
76  if (size==(size_t)0) size = (size_t)1;
77  omTypeAlloc(void*, addr, size);
78  return addr;
79 }
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
#define omTypeAlloc(type, addr, size)
Definition: omAllocDecl.h:208
void* operator new[] ( size_t  size)
throw (std::bad_alloc
)

Definition at line 35 of file mmalloc.cc.

39 {
40  void* addr;
41  if (size==(size_t)0) size = (size_t)1;
42  omTypeAlloc(void*, addr, size);
43  return addr;
44 }
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
#define omTypeAlloc(type, addr, size)
Definition: omAllocDecl.h:208
void* operator new[] ( size_t  size,
const std::nothrow_t &   
)
throw (
)

Definition at line 81 of file mmalloc.cc.

82 {
83  void* addr;
84  if (size==(size_t)0) size = (size_t)1;
85  omTypeAlloc(void*, addr, size);
86  return addr;
87 }
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
#define omTypeAlloc(type, addr, size)
Definition: omAllocDecl.h:208