1#ifndef TREE_SITTER_ALLOC_H_
2#define TREE_SITTER_ALLOC_H_
12// Allow clients to override allocation functions
13#ifdef TREE_SITTER_REUSE_ALLOCATOR
15extern void *(*ts_current_malloc)(size_t size);
16extern void *(*ts_current_calloc)(size_t count, size_t size);
17extern void *(*ts_current_realloc)(void *ptr, size_t size);
18extern void (*ts_current_free)(void *ptr);
21#define ts_malloc ts_current_malloc
24#define ts_calloc ts_current_calloc
27#define ts_realloc ts_current_realloc
30#define ts_free ts_current_free
36#define ts_malloc malloc
39#define ts_calloc calloc
42#define ts_realloc realloc
54#endif // TREE_SITTER_ALLOC_H_
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list