Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Fixes the optimization that avoids adding a new piece when the addition
happens in the end of the buffer.
Fixes leaks produced in piece_table_optimize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`piece_table_to_string` now receives a buffer and we also provide a
function that returns the length of the piece table.
TODO: the `piece_table_to_string` adds null termination, that makes the
buffer needed `piece_table_length(pt) + 1`. This we should document or
do more obvious.
|
|
|
|
|
|
|
|
We want to lean more on the debugger world than printf debugging as our
data structures are opaque (on purpose).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|