Rizin
unix-like reverse engineering framework and cli tools
alloc.h File Reference
#include "tree_sitter/api.h"
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define ts_malloc   ts_current_malloc
 
#define ts_calloc   ts_current_calloc
 
#define ts_realloc   ts_current_realloc
 
#define ts_free   ts_current_free
 

Variables

void *(* ts_current_malloc )(size_t)
 
void *(* ts_current_calloc )(size_t, size_t)
 
void *(* ts_current_realloc )(void *, size_t)
 
void(* ts_current_free )(void *)
 

Macro Definition Documentation

◆ ts_calloc

#define ts_calloc   ts_current_calloc

Definition at line 24 of file alloc.h.

◆ ts_free

#define ts_free   ts_current_free

Definition at line 30 of file alloc.h.

◆ ts_malloc

#define ts_malloc   ts_current_malloc

Definition at line 21 of file alloc.h.

◆ ts_realloc

#define ts_realloc   ts_current_realloc

Definition at line 27 of file alloc.h.

Variable Documentation

◆ ts_current_calloc

void*(* ts_current_calloc) (size_t, size_t) ( size_t  ,
size_t   
)
extern

Definition at line 33 of file alloc.c.

Referenced by ts_set_allocator().

◆ ts_current_free

void(* ts_current_free) (void *) ( void *  )
extern

Definition at line 35 of file alloc.c.

Referenced by ts_set_allocator().

◆ ts_current_malloc

void*(* ts_current_malloc) (size_t) ( size_t  )
extern

Definition at line 32 of file alloc.c.

Referenced by ts_set_allocator().

◆ ts_current_realloc

void*(* ts_current_realloc) (void *, size_t) ( void *  ,
size_t   
)
extern

Definition at line 34 of file alloc.c.

Referenced by ts_set_allocator().