Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
alloc.c File Reference

Classes

struct  Block
 
struct  SubBlock
 
struct  FixBlock
 
struct  FixSubBlock
 
struct  FixStart
 
struct  __mem_pool_obj
 
struct  __mem_pool
 
struct  block_header
 
struct  list_header
 
struct  heap_header
 
struct  pool_options
 
struct  mem_pool_obj
 

Typedefs

typedef struct Block Block
 
typedef struct SubBlock SubBlock
 
typedef struct FixBlock FixBlock
 
typedef struct FixSubBlock FixSubBlock
 
typedef struct FixStart FixStart
 
typedef struct __mem_pool_obj __mem_pool_obj
 
typedef struct __mem_pool __mem_pool
 
typedef long tag_word
 
typedef struct block_header block_header
 
typedef struct list_header list_header
 
typedef struct heap_header heap_header
 
typedef void *(* sys_alloc_ptr) (unsigned long, struct mem_pool_obj *)
 
typedef void(* sys_free_ptr) (void *, struct mem_pool_obj *)
 
typedef struct pool_options pool_options
 
typedef struct mem_pool_obj mem_pool_obj
 

Functions

static SubBlockSubBlock_merge_prev (SubBlock *, SubBlock **)
 
static void SubBlock_merge_next (SubBlock *, SubBlock **)
 
void __sys_free ()
 
void Block_link (Block *ths, SubBlock *sb)
 
static Block__unlink (__mem_pool_obj *pool_obj, Block *bp)
 
static void deallocate_from_var_pools (__mem_pool_obj *pool_obj, void *ptr)
 
void __init_pool_obj (__mem_pool *pool_obj)
 
static __mem_poolget_malloc_pool (void)
 
void deallocate_from_fixed_pools (__mem_pool_obj *pool_obj, void *ptr, unsigned long size)
 
void __pool_free (__mem_pool *pool, void *ptr)
 
void free (void *ptr)
 

Variables

mem_pool_obj __malloc_pool
 
static int initialized = 0
 
static const unsigned long fix_pool_sizes [] = {4, 12, 20, 36, 52, 68}
 

Typedef Documentation

◆ __mem_pool

◆ __mem_pool_obj

◆ Block

◆ block_header

◆ FixBlock

◆ FixStart

◆ FixSubBlock

◆ heap_header

◆ list_header

◆ mem_pool_obj

◆ pool_options

◆ SubBlock

◆ sys_alloc_ptr

typedef void *(* sys_alloc_ptr) (unsigned long, struct mem_pool_obj *)

◆ sys_free_ptr

typedef void(* sys_free_ptr) (void *, struct mem_pool_obj *)

◆ tag_word

Function Documentation

◆ __init_pool_obj()

void __init_pool_obj ( __mem_pool pool_obj)
inline

◆ __pool_free()

void __pool_free ( __mem_pool pool,
void ptr 
)

◆ __sys_free()

void __sys_free ( )

◆ __unlink()

static Block * __unlink ( __mem_pool_obj pool_obj,
Block bp 
)
inlinestatic

◆ Block_link()

void Block_link ( Block ths,
SubBlock sb 
)
inline

◆ deallocate_from_fixed_pools()

void deallocate_from_fixed_pools ( __mem_pool_obj pool_obj,
void ptr,
unsigned long  size 
)

◆ deallocate_from_var_pools()

static void deallocate_from_var_pools ( __mem_pool_obj pool_obj,
void ptr 
)
static

◆ free()

void free ( void ptr)

◆ get_malloc_pool()

static __mem_pool * get_malloc_pool ( void  )
inlinestatic

◆ SubBlock_merge_next()

static void SubBlock_merge_next ( SubBlock pBlock,
SubBlock **  pStart 
)
inlinestatic

◆ SubBlock_merge_prev()

static SubBlock * SubBlock_merge_prev ( SubBlock ths,
SubBlock **  start 
)
inlinestatic

Variable Documentation

◆ __malloc_pool

mem_pool_obj __malloc_pool

◆ fix_pool_sizes

const unsigned long fix_pool_sizes[] = {4, 12, 20, 36, 52, 68}
static

◆ initialized

int initialized = 0
static