Reformat the codebase with the clang-format 18.

This commit is contained in:
guangli-dai
2025-06-13 12:31:12 -07:00
committed by Guangli Dai
parent a952a3b8b0
commit 6200e8987f
346 changed files with 18286 additions and 17770 deletions

View File

@@ -11,9 +11,9 @@
static void
do_print(const char *name, size_t sz_bytes) {
const char *sizes[] = {"bytes", "KB", "MB", "GB", "TB", "PB", "EB",
"ZB"};
size_t sizes_max = sizeof(sizes)/sizeof(sizes[0]);
const char *sizes[] = {
"bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB"};
size_t sizes_max = sizeof(sizes) / sizeof(sizes[0]);
size_t ind = 0;
double sz = sz_bytes;
@@ -30,8 +30,7 @@ do_print(const char *name, size_t sz_bytes) {
int
main(void) {
#define P(type) \
do_print(#type, sizeof(type))
#define P(type) do_print(#type, sizeof(type))
P(arena_t);
P(arena_stats_t);
P(base_t);