Skip to content

Conversation

D-Berg
Copy link

@D-Berg D-Berg commented Jun 8, 2025

This pr makes it easy to make Tree-Sitter use a zig std.mem.Allocator instead of the default libc functions. Usefull for leak detection if combined with DebugAllocator.

  • Added setAllocator and unsetAllocator to make Tree-Sitter use a std.mem.Allocator.
  • malloc, calloc, realloc, and free wrappers that use the above mentioned Allocator.

- Added setAllocator and unsetAllocator to make Tree-Sitter use a std.mem.Allocator.
- malloc, calloc, realloc, and free wrappers that use the above mentioned Allocator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant