refactor: standardize headers to #pragma once, add [[nodiscard]]/[[maybe_unused]] annotations

This commit is contained in:
2026-07-02 02:07:04 -04:00
parent 969a6c4ecb
commit c529815d54
10 changed files with 35 additions and 47 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
/* Copyright and license details as described in the LICENSE file. */
#pragma once
#include <stddef.h>
[[noreturn]] void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);
int fd_set_nonblock(int fd);
[[nodiscard]] void *ecalloc(size_t nmemb, size_t size);
[[nodiscard]] int fd_set_nonblock(int fd);