diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 07:54:08 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 07:54:08 +0200 |
| commit | fc339fa3cb9c03fdebd300f7018b23931a3eb7bd (patch) | |
| tree | a56a905814ebc4ca6b738edb2f6cf712db3083d1 | |
| parent | 6a66576bf6a1039a970ca8d418922a7bcd9e5f36 (diff) | |
lib: clean up includes
| -rw-r--r-- | lib/bitset.h | 1 | ||||
| -rw-r--r-- | lib/date.h | 3 | ||||
| -rw-r--r-- | lib/str.h | 3 | ||||
| -rw-r--r-- | lib/term.h | 6 | ||||
| -rw-r--r-- | lib/term_key.h | 7 | ||||
| -rw-r--r-- | lib/util.h | 9 | ||||
| -rw-r--r-- | lib/vt.h | 3 |
7 files changed, 6 insertions, 26 deletions
diff --git a/lib/bitset.h b/lib/bitset.h index d8979de..dd6ce94 100644 --- a/lib/bitset.h +++ b/lib/bitset.h @@ -22,7 +22,6 @@ #ifndef DYLAN_BITSET_H #define DYLAN_BITSET_H -#include <stddef.h> #include <stdint.h> #include <string.h> @@ -26,9 +26,6 @@ // Fast date algorithm, C implementation. // Source: https://www.benjoffe.com/fast-date-64 // -#include <stddef.h> -#include <stdint.h> - #include "util.h" #define C1 505054698555331ull // floor(2^64 * 4 / 146097) @@ -22,8 +22,7 @@ #ifndef DYLAN_STR_H #define DYLAN_STR_H -#include <stdlib.h> -#include <stdint.h> +#include <assert.h> #include <string.h> #include "util.h" @@ -22,16 +22,14 @@ #ifndef DYLAN_TERM_H #define DYLAN_TERM_H +#include <assert.h> #include <fcntl.h> #include <signal.h> -#include <stdint.h> -#include <stdio.h> #include <termios.h> #include <unistd.h> -#include <sys/ioctl.h> #include <sys/select.h> -#include <sys/time.h> +#include <sys/ioctl.h> #include <sys/wait.h> #include "util.h" diff --git a/lib/term_key.h b/lib/term_key.h index f92ef80..7930eaa 100644 --- a/lib/term_key.h +++ b/lib/term_key.h @@ -22,14 +22,9 @@ #ifndef DYLAN_TERM_KEY_H #define DYLAN_TERM_KEY_H -#include <fcntl.h> -#include <signal.h> -#include <stdint.h> -#include <stdio.h> -#include <termios.h> +#include <stdbool.h> #include <unistd.h> -#include <sys/ioctl.h> #include <sys/select.h> #include <sys/time.h> @@ -22,24 +22,19 @@ #ifndef DYLAN_UTIL_H #define DYLAN_UTIL_H -#include <assert.h> -#include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <pwd.h> +#include <limits.h> #include <spawn.h> -#include <stdalign.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> -#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <unistd.h> -#include <sys/stat.h> -#include <sys/time.h> +#include <sys/types.h> #include <sys/wait.h> #define ARR_SIZE(a) ((intptr_t)(sizeof(a) / sizeof(*(a)))) @@ -22,9 +22,6 @@ #ifndef DYLAN_VT_H #define DYLAN_VT_H -#include <stdio.h> -#include <unistd.h> - #include "str.h" #include "util.h" |