102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
heap.c File Reference
#include "pcdogs/image/globals.h"
#include "pcdogs/platform/enums.h"
#include "pcdogs/runtime/constants.h"
#include "pcdogs/runtime/functions.h"
#include "pcdogs/runtime/globals.h"
#include "pcdogs/runtime/types.h"
#include <intrin.h>
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Macros

#define nullptr   0

Functions

void * CRT_malloc (uint32_t size)
void * __nh_malloc (uint32_t size, int32_t new_mode)
void * _heap_alloc (uint32_t size)
void * CRT_realloc (void *ptr, uint32_t size)
void CRT_free (void *ptr)
uint32_t CRT_msize (void *ptr)
int32_t CRT_callnewh (uint32_t size)
int32_t _heap_init (int32_t mt_flag)
int32_t __sbh_heap_init ()
struct CRT_HeapSegment * __sbh_find_block (void *ptr)
void __sbh_free_block (struct CRT_HeapSegment *segment, void *user_ptr)
void * __sbh_alloc_block (uint32_t size)
struct CRT_HeapSegment * __sbh_alloc_new_region ()
int32_t __sbh_alloc_new_group (struct CRT_HeapSegment *segment)
int32_t __sbh_resize_block (struct CRT_HeapSegment *segment, void *user_ptr, uint32_t new_size)
void * CRT_calloc (uint32_t count, uint32_t element_size)

Macro Definition Documentation

◆ nullptr

#define nullptr   0

Definition at line 12 of file heap.c.

Function Documentation

◆ __nh_malloc()

void * __nh_malloc ( uint32_t size,
int32_t new_mode )

Definition at line 23 of file heap.c.

◆ __sbh_alloc_block()

void * __sbh_alloc_block ( uint32_t size)

Definition at line 488 of file heap.c.

◆ __sbh_alloc_new_group()

int32_t __sbh_alloc_new_group ( struct CRT_HeapSegment * segment)

Definition at line 796 of file heap.c.

◆ __sbh_alloc_new_region()

struct CRT_HeapSegment * __sbh_alloc_new_region ( )

Definition at line 748 of file heap.c.

◆ __sbh_find_block()

struct CRT_HeapSegment * __sbh_find_block ( void * ptr)

Definition at line 242 of file heap.c.

◆ __sbh_free_block()

void __sbh_free_block ( struct CRT_HeapSegment * segment,
void * user_ptr )

Definition at line 260 of file heap.c.

◆ __sbh_heap_init()

int32_t __sbh_heap_init ( )

Definition at line 223 of file heap.c.

◆ __sbh_resize_block()

int32_t __sbh_resize_block ( struct CRT_HeapSegment * segment,
void * user_ptr,
uint32_t new_size )

Definition at line 856 of file heap.c.

◆ _heap_alloc()

void * _heap_alloc ( uint32_t size)

Definition at line 45 of file heap.c.

◆ _heap_init()

int32_t _heap_init ( int32_t mt_flag)

Definition at line 203 of file heap.c.

◆ CRT_callnewh()

int32_t CRT_callnewh ( uint32_t size)

Definition at line 194 of file heap.c.

◆ CRT_calloc()

void * CRT_calloc ( uint32_t count,
uint32_t element_size )

Definition at line 1080 of file heap.c.

◆ CRT_free()

void CRT_free ( void * ptr)

Definition at line 164 of file heap.c.

◆ CRT_malloc()

void * CRT_malloc ( uint32_t size)

Definition at line 16 of file heap.c.

◆ CRT_msize()

uint32_t CRT_msize ( void * ptr)

Definition at line 184 of file heap.c.

◆ CRT_realloc()

void * CRT_realloc ( void * ptr,
uint32_t size )

Definition at line 65 of file heap.c.