6 if (
size > 0 && !result) {
7 fprintf(stderr,
"tree-sitter failed to allocate %zu bytes",
size);
15 if (
count > 0 && !result) {
16 fprintf(stderr,
"tree-sitter failed to allocate %zu bytes",
count *
size);
24 if (
size > 0 && !result) {
25 fprintf(stderr,
"tree-sitter failed to reallocate %zu bytes",
size);
38 void *(*new_malloc)(
size_t),
39 void *(*new_calloc)(
size_t,
size_t),
40 void *(*new_realloc)(
void *,
size_t),
41 void (*new_free)(
void *)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
RZ_API void Ht_() free(HtName_(Ht) *ht)
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
static void * ts_realloc_default(void *buffer, size_t size)
static void * ts_calloc_default(size_t count, size_t size)
void(* ts_current_free)(void *)
static void * ts_malloc_default(size_t size)
void *(* ts_current_malloc)(size_t)
void *(* ts_current_calloc)(size_t, size_t)
void *(* ts_current_realloc)(void *, size_t)
void ts_set_allocator(void *(*new_malloc)(size_t), void *(*new_calloc)(size_t, size_t), void *(*new_realloc)(void *, size_t), void(*new_free)(void *))