Numworks Epsilon  1.4.1
Graphing Calculator Operating System
malloc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "py/mpconfig.h"
#include "py/misc.h"
#include "py/mpstate.h"

Go to the source code of this file.

Macros

#define DEBUG_printf(...)   (void)0
 

Functions

STATIC void * realloc_ext (void *ptr, size_t n_bytes, bool allow_move)
 
void * m_malloc (size_t num_bytes)
 
void * m_malloc_maybe (size_t num_bytes)
 
void * m_malloc0 (size_t num_bytes)
 
void * m_realloc (void *ptr, size_t new_num_bytes)
 
void * m_realloc_maybe (void *ptr, size_t new_num_bytes, bool allow_move)
 
void m_free (void *ptr)
 

Macro Definition Documentation

◆ DEBUG_printf

#define DEBUG_printf (   ...)    (void)0

Definition at line 38 of file malloc.c.

Function Documentation

◆ m_free()

void m_free ( void *  ptr)

Definition at line 178 of file malloc.c.

◆ m_malloc()

void* m_malloc ( size_t  num_bytes)

Definition at line 74 of file malloc.c.

◆ m_malloc0()

void* m_malloc0 ( size_t  num_bytes)

Definition at line 115 of file malloc.c.

◆ m_malloc_maybe()

void* m_malloc_maybe ( size_t  num_bytes)

Definition at line 88 of file malloc.c.

◆ m_realloc()

void* m_realloc ( void *  ptr,
size_t  new_num_bytes 
)

Definition at line 130 of file malloc.c.

◆ m_realloc_maybe()

void* m_realloc_maybe ( void *  ptr,
size_t  new_num_bytes,
bool  allow_move 
)

Definition at line 154 of file malloc.c.

◆ realloc_ext()

STATIC void* realloc_ext ( void *  ptr,
size_t  n_bytes,
bool  allow_move 
)

Definition at line 62 of file malloc.c.