tree-sitter/src/runtime
Phil Turnbull 5ef9c4d6aa Increase size of ref_counts and add assertions
This bumps the size of the reference counts from 16- to 32-bit counters to make
it less likely to overflow. Also assert in the retain function that the
reference count didn't overflow.

32-bits seems big enough for non-pathological examples but a more fool-proof
fix may be to bump it to 64-bits.
2017-06-29 06:39:01 -07:00
..
alloc.h Abort if malloc fails 2016-11-05 21:23:23 -07:00
array.h Avoid including trailing extra tokens within error nodes unnecessarily 2017-02-19 21:21:54 -08:00
document.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
document.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
error_costs.c Move error cost comparisons into their own source file 2017-02-19 21:54:06 -08:00
error_costs.h Move error cost comparisons into their own source file 2017-02-19 21:54:06 -08:00
language.c Define a function providing the type of a given symbol. 2017-04-12 09:47:51 -04:00
language.h Tweak naming and organization of external-scanner related language fields 2016-12-21 11:24:41 -08:00
length.h Fix error in changed ranges calculation 2017-01-27 23:47:34 -08:00
lexer.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
lexer.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
node.c Add serialize, deserialize and reset callbacks to external scanners 2016-12-20 13:12:01 -08:00
node.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
parser.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
parser.h Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -07:00
point.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
reduce_action.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
reusable_node.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
stack.c Increase size of ref_counts and add assertions 2017-06-29 06:39:01 -07:00
stack.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
string_input.c Add TSInput option to measure columns in bytes not characters 2017-06-15 16:35:34 -07:00
string_input.h Construct TSStringInput with explicit length. 2017-02-10 09:10:06 -05:00
tree.c Increase size of ref_counts and add assertions 2017-06-29 06:39:01 -07:00
tree.h Increase size of ref_counts and add assertions 2017-06-29 06:39:01 -07:00
tree_path.h Always recur into error nodes when reporting changed ranges 2017-06-15 17:06:48 -07:00
utf16.c Support UTF16 directly 2015-12-28 13:53:22 -08:00
utf16.h Support UTF16 directly 2015-12-28 13:53:22 -08:00