]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: convert from `strbuf` to `reftable_buf`
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Oct 2024 04:53:56 +0000 (06:53 +0200)
committerTaylor Blau <me@ttaylorr.com>
Thu, 17 Oct 2024 20:59:56 +0000 (16:59 -0400)
commitbe4c070a3c9e7c9d6836c724929ff8a365361e1a
tree03cec9016c899456a020c06e98239963a2958238
parent81eddda540eae43ef481b629d7f4d8023ea40c57
reftable: convert from `strbuf` to `reftable_buf`

Convert the reftable library to use the `reftable_buf` interface instead
of the `strbuf` interface. This is mostly a mechanical change via sed(1)
with some manual fixes where functions for `strbuf` and `reftable_buf`
differ. The converted code does not yet handle allocation failures. This
will be handled in subsequent commits.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
24 files changed:
reftable/basics.c
reftable/basics.h
reftable/block.c
reftable/block.h
reftable/blocksource.c
reftable/blocksource.h
reftable/iter.c
reftable/iter.h
reftable/reader.c
reftable/record.c
reftable/record.h
reftable/stack.c
reftable/system.h
reftable/writer.c
reftable/writer.h
t/unit-tests/lib-reftable.c
t/unit-tests/lib-reftable.h
t/unit-tests/t-reftable-basics.c
t/unit-tests/t-reftable-block.c
t/unit-tests/t-reftable-merged.c
t/unit-tests/t-reftable-reader.c
t/unit-tests/t-reftable-readwrite.c
t/unit-tests/t-reftable-record.c
t/unit-tests/t-reftable-stack.c