uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
malloc.c File Reference
#include <stddef.h>
#include <stdint.h>
#include "string.h"
#include "malloc.h"

Go to the source code of this file.

Classes

struct  _heap_t
 

Typedefs

typedef struct _heap_t heap_t
 

Functions

void * sbrk (ptrdiff_t incr)
 
void * base_malloc (size_t size)
 
void * base_realloc (void *ptr, size_t size)
 
void base_free (void *ptr)
 
 __attribute__ ((weak))
 

Variables

malloc_t malloc = base_malloc
 
free_t free = base_free
 
realloc_t realloc = base_realloc
 

Typedef Documentation

typedef struct _heap_t heap_t

Function Documentation

__attribute__ ( (weak)  )

Definition at line 202 of file malloc.c.

void base_free ( void *  ptr)

Definition at line 159 of file malloc.c.

void* base_malloc ( size_t  size)

Definition at line 34 of file malloc.c.

void* base_realloc ( void *  ptr,
size_t  size 
)

Definition at line 107 of file malloc.c.

void* sbrk ( ptrdiff_t  incr)

Definition at line 17 of file sbrk.c.

Variable Documentation

free_t free = base_free

Definition at line 206 of file malloc.c.

Definition at line 205 of file malloc.c.

Definition at line 207 of file malloc.c.