From 1ab6196731ec2ef4de411f7c9106c57c55127ca8 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 16 Apr 2024 09:11:07 -0300 Subject: Organaze imports --- src/lib.c | 2 ++ src/lib.h | 4 ++-- src/random.c | 1 + src/util.c | 5 +++-- src/util.h | 3 +++ 5 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib.c b/src/lib.c index 02c0f92..8d06ee0 100644 --- a/src/lib.c +++ b/src/lib.c @@ -6,6 +6,8 @@ #include "logerr.h" +#include "lib.h" + int pindaiba_main(int argc, char *argv[]) { diff --git a/src/lib.h b/src/lib.h index 196e339..9ace170 100644 --- a/src/lib.h +++ b/src/lib.h @@ -1,5 +1,5 @@ -const size_t -NULL_TERMINATOR = sizeof((char)'\0'); +extern const size_t +NULL_TERMINATOR; int pindaiba_main(int argc, char *argv[]); diff --git a/src/random.c b/src/random.c index 1ed56ae..8c3eda3 100644 --- a/src/random.c +++ b/src/random.c @@ -8,6 +8,7 @@ #include #include "logerr.h" + #include "random.h" diff --git a/src/util.c b/src/util.c index 3d56c14..65269ac 100644 --- a/src/util.c +++ b/src/util.c @@ -5,11 +5,12 @@ #include #include -#include "util.h" #include "logerr.h" +#include "util.h" + -static const size_t +const size_t NULL_TERMINATOR = sizeof((char)'\0'); int diff --git a/src/util.h b/src/util.h index 8465790..8574b35 100644 --- a/src/util.h +++ b/src/util.h @@ -1,2 +1,5 @@ +extern const size_t +NULL_TERMINATOR; + int slurp(const char *const filename, char **out); -- cgit v1.2.3