Age | Commit message (Collapse) | Author | |
---|---|---|---|
5 days | piece-table: piece_table_create_from -> *from_str | Ekaitz Zarraga | |
5 days | test: piece-table-internals: Add test and pass it | Ekaitz Zarraga | |
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 | |||
8 days | piece-table: Add piece_table_optimize | Ekaitz Zarraga | |
8 days | piece-table: Better formatting and naming | Ekaitz Zarraga | |
8 days | piece-table: Add piece_buffer_empty | Ekaitz Zarraga | |
8 days | piece-table: Add text_buffer_resize | Ekaitz Zarraga | |
8 days | piece-table: formatting | Ekaitz Zarraga | |
8 days | piece-table: create vs create_from (string) | Ekaitz Zarraga | |
8 days | piece-table: better naming len -> used | Ekaitz Zarraga | |
9 days | piece-table: `piece-table-to-string` add size arg | Ekaitz Zarraga | |
9 days | piece-table: Don't allocate in piece_table_to_string | Ekaitz Zarraga | |
`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. | |||
9 days | piece-table: text-buffer: Fix append on empty case | Ekaitz Zarraga | |
9 days | piece-table: formatting | Ekaitz Zarraga | |
9 days | piece-table: remove static | Ekaitz Zarraga | |
9 days | piece-table: remove print functionality | Ekaitz Zarraga | |
We want to lean more on the debugger world than printf debugging as our data structures are opaque (on purpose). | |||
9 days | piece-table: delete: Test better and fixes | Ekaitz Zarraga | |
9 days | piece-table: optimization: grow piece when possible | Ekaitz Zarraga | |
10 days | Restart! | Ekaitz Zarraga | |
2024-04-14 | src: piece-table: optimize when adding to a piece in the end of the buffer | Ekaitz Zarraga | |
2024-03-11 | src: piece-table: assert len > 0 in insert and delete | Ekaitz Zarraga | |
2024-03-11 | src: piece-table: fix cache in insert and delete | Ekaitz Zarraga | |
2024-03-11 | src: piece-table: print piece cache | Ekaitz Zarraga | |
2024-03-09 | src: piece-table: Add insert + tests for it | Ekaitz Zarraga | |
2024-03-09 | src: piece-table: fix style | Ekaitz Zarraga | |
2024-03-04 | piece-table: split better | Ekaitz Zarraga | |
2024-03-03 | piece-table: fix memory and implement delete | Ekaitz Zarraga | |
2024-03-02 | piece-table: index and start with insert | Ekaitz Zarraga | |
2024-02-28 | First commit with project structure | Ekaitz Zarraga | |