]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/basics: stop using `SWAP()` macro
authorPatrick Steinhardt <ps@pks.im>
Tue, 18 Feb 2025 09:20:49 +0000 (10:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 18:55:38 +0000 (10:55 -0800)
commitf8ed12dec459df9ea0d43ccacc93cb2c32702c0e
treeec137e7fe9e2b59db153b0498fd264186db16ba6
parent10f2935c7f2070368dadde582f94c9c76e2fe991
reftable/basics: stop using `SWAP()` macro

Stop using `SWAP()` macro in favor of an open-coded variant of it. Note
that this also requires us to open-code the build assert that `SWAP()`
itself uses to verify that the size of both variables matches.

This is done to reduce our dependency on the Git codebase.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/basics.h
reftable/merged.c
reftable/pq.c
reftable/record.c