Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions
new.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <rw_driver.h>
#include <rw_printf.h>
#include <rw_new.h>
#include <rw_exception.h>
Include dependency graph for new.cpp:

Go to the source code of this file.

Data Structures

struct  Header
 

Macros

#define _RWSTD_TEST_SRC
 
#define _RWSTD_BAD_ALLOC   _STD::bad_alloc
 
#define EXTENT(array)   (sizeof (array) / sizeof(*array))
 
#define COMPARE(member)
 

Functions

_TEST_EXPORT void * operator_new (size_t nbytes, bool array)
 
_TEST_EXPORT void operator_delete (void *ptr, bool array)
 
_TEST_EXPORT rwt_free_store * rwt_get_free_store (rwt_free_store *st)
 
_TEST_EXPORT rwt_free_store * rwt_checkpoint (const rwt_free_store *st0, const rwt_free_store *st1)
 
_TEST_EXPORT _RWSTD_SIZE_T rwt_check_leaks (_RWSTD_SIZE_T *bytes, const rwt_free_store *st)
 

Macro Definition Documentation

◆ _RWSTD_BAD_ALLOC

#define _RWSTD_BAD_ALLOC   _STD::bad_alloc

Definition at line 48 of file new.cpp.

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

new.cpp - definitions of replacement operator new and delete

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2003-2006 Rogue Wave Software.

Definition at line 30 of file new.cpp.

◆ COMPARE

#define COMPARE (   member)
Value:
rwt_checkpoint_compare (diff.member, EXTENT(diff.member), \
st0->member, st1->member, diff_0)
#define EXTENT(array)

◆ EXTENT

#define EXTENT (   array)    (sizeof (array) / sizeof(*array))

Function Documentation

◆ operator_delete()

_TEST_EXPORT void operator_delete ( void *  ptr,
bool  array 
)

Definition at line 492 of file new.cpp.

◆ operator_new()

_TEST_EXPORT void * operator_new ( size_t  nbytes,
bool  array 
)

Definition at line 277 of file new.cpp.

◆ rwt_check_leaks()

_TEST_EXPORT _RWSTD_SIZE_T rwt_check_leaks ( _RWSTD_SIZE_T *  bytes,
const rwt_free_store *  st 
)

Definition at line 684 of file new.cpp.

◆ rwt_checkpoint()

_TEST_EXPORT rwt_free_store * rwt_checkpoint ( const rwt_free_store *  st0,
const rwt_free_store *  st1 
)

Definition at line 620 of file new.cpp.

◆ rwt_get_free_store()

_TEST_EXPORT rwt_free_store * rwt_get_free_store ( rwt_free_store *  st)

Definition at line 597 of file new.cpp.