ManaPlus
Data Fields
new_ptr_list_t Struct Reference

Data Fields

new_ptr_list_tnext
 Pointer to the next memory block. More...
 
new_ptr_list_tprev
 Pointer to the previous memory block. More...
 
size_t size
 Size of the memory block. More...
 
union {
   char   file [44]
 File name of the caller. More...
 
   void *   addr
 Address of the caller to new. More...
 
}; 
 
unsigned line:31
 Line number of the caller; or 0. More...
 
unsigned is_array:1
 Non-zero iff new[] is used. More...
 
unsigned magic
 Magic number for error detection. More...
 

Detailed Description

Structure to store the position information where new occurs.

Definition at line 260 of file debug_new.cpp.

Field Documentation

◆ 

union { ... }

◆ addr

void* new_ptr_list_t::addr

Address of the caller to new.

Definition at line 272 of file debug_new.cpp.

Referenced by alloc_mem(), check_leaks(), check_mem_corruption(), free_pointer(), and is_leak_whitelisted().

◆ file

char new_ptr_list_t::file[44]

File name of the caller.

Definition at line 270 of file debug_new.cpp.

Referenced by debug_new_recorder::_M_process(), alloc_mem(), check_leaks(), check_mem_corruption(), free_pointer(), and is_leak_whitelisted().

◆ is_array

unsigned new_ptr_list_t::is_array

Non-zero iff new[] is used.

Definition at line 275 of file debug_new.cpp.

Referenced by alloc_mem(), and free_pointer().

◆ line

unsigned new_ptr_list_t::line

Line number of the caller; or 0.

Definition at line 274 of file debug_new.cpp.

Referenced by debug_new_recorder::_M_process(), alloc_mem(), check_leaks(), check_mem_corruption(), free_pointer(), and is_leak_whitelisted().

◆ magic

unsigned new_ptr_list_t::magic

Magic number for error detection.

Definition at line 279 of file debug_new.cpp.

Referenced by debug_new_recorder::_M_process(), alloc_mem(), check_leaks(), check_mem_corruption(), and free_pointer().

◆ next

new_ptr_list_t* new_ptr_list_t::next

Pointer to the next memory block.

Definition at line 262 of file debug_new.cpp.

Referenced by alloc_mem(), check_leaks(), check_mem_corruption(), and free_pointer().

◆ prev

new_ptr_list_t* new_ptr_list_t::prev

Pointer to the previous memory block.

Definition at line 263 of file debug_new.cpp.

Referenced by alloc_mem(), and free_pointer().

◆ size

size_t new_ptr_list_t::size

Size of the memory block.

Definition at line 264 of file debug_new.cpp.

Referenced by alloc_mem(), check_leaks(), check_mem_corruption(), and free_pointer().


The documentation for this struct was generated from the following file: