RSeries astromech firmware
allocator.h File Reference
#include <stddef.h>
#include <stdlib.h>
#include "esp_heap_caps.h"
+ Include dependency graph for allocator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define osi_malloc(size)   malloc((size))
 
#define osi_calloc(size)   calloc(1, (size))
 
#define osi_free(p)   free((p))
 
#define FREE_AND_RESET(a)
 

Functions

char * osi_strdup (const char *str)
 
void * osi_malloc_func (size_t size)
 
void * osi_calloc_func (size_t size)
 
void osi_free_func (void *ptr)
 

Macro Definition Documentation

◆ FREE_AND_RESET

#define FREE_AND_RESET (   a)
Value:
do { \
if (a) { \
osi_free(a); \
a = NULL; \
} \
}while (0)

◆ osi_calloc

#define osi_calloc (   size)    calloc(1, (size))

◆ osi_free

#define osi_free (   p)    free((p))

◆ osi_malloc

#define osi_malloc (   size)    malloc((size))

Function Documentation

◆ osi_calloc_func()

void* osi_calloc_func ( size_t  size)

◆ osi_free_func()

void osi_free_func ( void *  ptr)

◆ osi_malloc_func()

void* osi_malloc_func ( size_t  size)

◆ osi_strdup()

char* osi_strdup ( const char *  str)