Amaan Qureshi
50eaf0b6cd
style(lib): add parameter names in declarations that are missing them
2024-09-27 13:38:08 -04:00
ObserverOfTime
4bbaee2f56
fix(lib): allow hiding symbols
2024-03-17 07:21:06 -04:00
Amaan Qureshi
304f8b7c04
fix: don't use __declspec(dllexport) on windows
2024-03-04 13:23:06 -05:00
Amaan Qureshi
f1eecf9786
feat: expose the allocator and array header files for external scanners
2024-02-26 09:43:13 -05:00
Max Brunsfeld
622359b400
Simplify allocation-recording in test suite using new ts_set_allocator API
2021-12-30 16:09:07 -08:00
Mingkai Dong
8e4d4ef8b9
Replace allocator struct with function pointers
2021-12-24 09:28:23 +08:00
Mingkai Dong
578bf74bf3
Add TSAllocator and ts_set_allocator in api.h
2021-12-18 09:53:58 +08:00
Mingkai Dong
b516f96f37
Fix declaration of ts_toggle_allocation_recording
2021-12-18 00:33:49 +08:00
Mingkai Dong
e742186c25
Allow to change the allocator dynamically
2021-12-17 20:16:20 +08:00
Max Brunsfeld
b661050a61
Simplify setup for enabling/disabling allocation recording in the C lib
2020-12-02 15:35:13 -08:00
ikrima
a99676282f
noop: touch file to retrigger github checks
2020-10-29 09:36:44 -07:00
ikrima
23530ca599
CR fixes: don't allow override of allocfn during testing
2020-10-29 09:23:58 -07:00
ikrima
336517fdc9
address CR comments
...
- replace _dflt with _default
- allow override in TREE_SITTER_TEST path
2020-10-29 09:17:19 -07:00
ikrima
3859e52198
add custom allocation override
2020-10-29 09:17:19 -07:00
Riccardo Schirone
a3b440b0c8
size_t variables need %zu, not %lu
2020-07-23 09:48:18 +02:00
Thomas Vigouroux
81d533d2d1
Fix compilation warnings ( #635 )
...
* lib: fix compilation warnings
* ci: add CFLAGS
2020-06-03 12:19:57 -07:00
Max Brunsfeld
006a931ab8
Tests: Prevent array reallocations during ts_stack_print_dot_graph
...
When debugging a test with 'script/test -D', the DOT-graph generation
code was sometimes causing reallocations that were not captured by the
allocation tracker, because we explicitly disable allocation-tracking
for that method in order to reduce noise when debugging memory leaks.
By growing the relevant array *prior* to turning off allocation
tracking, we can ensure that it is not reallocated within that function,
avoiding false positive memory leak errors.
Fixes #302
2019-03-14 13:59:12 -07:00
Max Brunsfeld
0f2347b318
Just call the C lib 'the library' everywhere, don't call it a 'runtime'
2019-01-10 15:22:39 -08:00
Max Brunsfeld
47607cecf4
Reorganize repo, add rust CLI and binding code,
2019-01-04 17:31:49 -08:00