diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-03-08 12:14:00 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2023-03-13 12:53:39 +0100 |
commit | afeda241f3f9b2c27e461f32d9c2a704ab82ef61 (patch) | |
tree | 2f4a8769b357dea69bc3b162ae8ed728b32085e5 | |
parent | d562d7efb85fc4a498eedc6b1abc8a8e4443e1f4 (diff) |
get rid of some unused includes
In main.c, unistd.h is a fairly big stick to use just to get stdint
types, so downgrade that header.
-rw-r--r-- | include/util.h | 1 | ||||
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/utf8_decode.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/include/util.h b/include/util.h index 018bbe6..94c9f25 100644 --- a/include/util.h +++ b/include/util.h @@ -1,6 +1,5 @@ #ifndef _SCDOC_PARSER_H #define _SCDOC_PARSER_H -#include <stdarg.h> #include <stdint.h> #include <stdio.h> @@ -4,11 +4,11 @@ #include <errno.h> #include <limits.h> #include <stdbool.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> -#include <unistd.h> #include "str.h" #include "unicode.h" #include "util.h" diff --git a/src/utf8_decode.c b/src/utf8_decode.c index fcbbb5e..607f1ea 100644 --- a/src/utf8_decode.c +++ b/src/utf8_decode.c @@ -1,5 +1,4 @@ #include <stdint.h> -#include <stddef.h> #include "unicode.h" uint8_t masks[] = { |