From 70a64605f7da52b463db610a5a42a5f4f749dda8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Nov 2024 16:06:12 -0500 Subject: Use angle brackets for library includes --- src/allocator.c | 4 ++-- src/btree.c | 6 +++++- src/bump_allocator.c | 6 +++--- src/darwin/sem_darwin.c | 4 ++-- src/digest.c | 2 +- src/errno_status.c | 2 +- src/errno_status.h | 4 ++-- src/filesystem.c | 6 +++--- src/hash.c | 5 ++++- src/path.c | 6 ++++-- src/path_iter.h | 2 +- src/posix/filesystem_posix.c | 8 ++++---- src/posix/sem_posix.c | 4 ++-- src/posix/thread_posix.c | 4 ++-- src/ring.c | 6 +++--- src/status.c | 2 +- src/string_view.c | 5 +++-- src/system.c | 2 +- src/system.h | 2 +- src/tree.c | 6 ++++-- src/win32/filesystem_win32.c | 10 +++++----- src/win32/sem_win32.c | 4 ++-- src/win32/thread_win32.c | 4 ++-- 23 files changed, 58 insertions(+), 46 deletions(-) (limited to 'src') diff --git a/src/allocator.c b/src/allocator.c index 09e3271..cb05f0d 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -1,9 +1,9 @@ // Copyright 2011-2021 David Robillard // SPDX-License-Identifier: ISC -#include "zix/allocator.h" +#include -#include "zix/attributes.h" +#include #include "zix_config.h" diff --git a/src/btree.c b/src/btree.c index 66f8a38..b762067 100644 --- a/src/btree.c +++ b/src/btree.c @@ -1,7 +1,11 @@ // Copyright 2011-2021 David Robillard // SPDX-License-Identifier: ISC -#include "zix/btree.h" +#include + +#include +#include +#include #include #include diff --git a/src/bump_allocator.c b/src/bump_allocator.c index 8096907..01c1652 100644 --- a/src/bump_allocator.c +++ b/src/bump_allocator.c @@ -1,10 +1,10 @@ // Copyright 2021 David Robillard // SPDX-License-Identifier: ISC -#include "zix/bump_allocator.h" +#include -#include "zix/allocator.h" -#include "zix/attributes.h" +#include +#include #include #include diff --git a/src/darwin/sem_darwin.c b/src/darwin/sem_darwin.c index 0ace564..dd5750b 100644 --- a/src/darwin/sem_darwin.c +++ b/src/darwin/sem_darwin.c @@ -1,9 +1,9 @@ // Copyright 2012-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/sem.h" +#include -#include "zix/status.h" +#include #include diff --git a/src/digest.c b/src/digest.c index bc65f90..c40b1cc 100644 --- a/src/digest.c +++ b/src/digest.c @@ -1,7 +1,7 @@ // Copyright 2012-2021 David Robillard // SPDX-License-Identifier: ISC -#include "zix/digest.h" +#include #include #include diff --git a/src/errno_status.c b/src/errno_status.c index 887158f..d992d02 100644 --- a/src/errno_status.c +++ b/src/errno_status.c @@ -3,7 +3,7 @@ #include "errno_status.h" -#include "zix/status.h" +#include #include #include diff --git a/src/errno_status.h b/src/errno_status.h index 9c147db..969d0dc 100644 --- a/src/errno_status.h +++ b/src/errno_status.h @@ -4,8 +4,8 @@ #ifndef ZIX_ERRNO_STATUS_H #define ZIX_ERRNO_STATUS_H -#include "zix/attributes.h" -#include "zix/status.h" +#include +#include /// Return an errno value converted to a status code ZIX_CONST_FUNC ZixStatus diff --git a/src/filesystem.c b/src/filesystem.c index c6a1fa4..a142e32 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -1,13 +1,13 @@ // Copyright 2007-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/filesystem.h" +#include #include "path_iter.h" #include "system.h" -#include "zix/allocator.h" -#include "zix/status.h" +#include +#include #ifdef _WIN32 # include diff --git a/src/hash.c b/src/hash.c index 7576eba..3c0e47c 100644 --- a/src/hash.c +++ b/src/hash.c @@ -1,7 +1,10 @@ // Copyright 2011-2021 David Robillard // SPDX-License-Identifier: ISC -#include "zix/hash.h" +#include + +#include +#include #include #include diff --git a/src/path.c b/src/path.c index 24414af..8d68781 100644 --- a/src/path.c +++ b/src/path.c @@ -1,12 +1,14 @@ // Copyright 2007-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/path.h" +#include #include "index_range.h" #include "path_iter.h" -#include "zix/string_view.h" +#include +#include +#include #include #include diff --git a/src/path_iter.h b/src/path_iter.h index f57c6ef..43eb8c9 100644 --- a/src/path_iter.h +++ b/src/path_iter.h @@ -6,7 +6,7 @@ #include "index_range.h" -#include "zix/attributes.h" +#include typedef enum { ZIX_PATH_ROOT_NAME, diff --git a/src/posix/filesystem_posix.c b/src/posix/filesystem_posix.c index cd53689..7553916 100644 --- a/src/posix/filesystem_posix.c +++ b/src/posix/filesystem_posix.c @@ -1,15 +1,15 @@ // Copyright 2007-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/filesystem.h" +#include #include "../errno_status.h" #include "../system.h" #include "../zix_config.h" -#include "zix/allocator.h" -#include "zix/attributes.h" -#include "zix/status.h" +#include +#include +#include #if USE_FLOCK && USE_FILENO # include diff --git a/src/posix/sem_posix.c b/src/posix/sem_posix.c index 452830d..ea49db9 100644 --- a/src/posix/sem_posix.c +++ b/src/posix/sem_posix.c @@ -1,12 +1,12 @@ // Copyright 2012-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/sem.h" +#include #include "../errno_status.h" #include "../zix_config.h" -#include "zix/status.h" +#include #include diff --git a/src/posix/thread_posix.c b/src/posix/thread_posix.c index 2073448..468fe38 100644 --- a/src/posix/thread_posix.c +++ b/src/posix/thread_posix.c @@ -1,11 +1,11 @@ // Copyright 2012-2020 David Robillard // SPDX-License-Identifier: ISC -#include "zix/thread.h" +#include #include "../errno_status.h" -#include "zix/status.h" +#include #include diff --git a/src/ring.c b/src/ring.c index ad00f75..d4fa28c 100644 --- a/src/ring.c +++ b/src/ring.c @@ -1,13 +1,13 @@ // Copyright 2011-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/ring.h" +#include #include "errno_status.h" #include "zix_config.h" -#include "zix/allocator.h" -#include "zix/status.h" +#include +#include #if defined(_WIN32) # include diff --git a/src/status.c b/src/status.c index e3d8b99..52057b8 100644 --- a/src/status.c +++ b/src/status.c @@ -1,7 +1,7 @@ // Copyright 2014-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/status.h" +#include const char* zix_strerror(const ZixStatus status) diff --git a/src/string_view.c b/src/string_view.c index 192f918..b02e537 100644 --- a/src/string_view.c +++ b/src/string_view.c @@ -1,8 +1,9 @@ // Copyright 2007-2024 David Robillard // SPDX-License-Identifier: ISC -#include "zix/string_view.h" -#include "zix/allocator.h" +#include + +#include #include #include diff --git a/src/system.c b/src/system.c index eab568b..f672d76 100644 --- a/src/system.c +++ b/src/system.c @@ -5,7 +5,7 @@ #include "errno_status.h" -#include "zix/status.h" +#include #ifdef _WIN32 # include diff --git a/src/system.h b/src/system.h index ca55161..45a0490 100644 --- a/src/system.h +++ b/src/system.h @@ -4,7 +4,7 @@ #ifndef ZIX_SYSTEM_H #define ZIX_SYSTEM_H -#include "zix/status.h" +#include #include #include diff --git a/src/tree.c b/src/tree.c index 5e3aa61..33900cd 100644 --- a/src/tree.c +++ b/src/tree.c @@ -1,9 +1,11 @@ // Copyright 2011-2020 David Robillard // SPDX-License-Identifier: ISC -#include "zix/tree.h" +#include -#include "zix/status.h" +#include +#include +#include #include diff --git a/src/win32/filesystem_win32.c b/src/win32/filesystem_win32.c index 5dc36a8..4682f5d 100644 --- a/src/win32/filesystem_win32.c +++ b/src/win32/filesystem_win32.c @@ -1,15 +1,15 @@ // Copyright 2007-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/bump_allocator.h" -#include "zix/filesystem.h" +#include +#include #include "../errno_status.h" #include "../zix_config.h" -#include "zix/allocator.h" -#include "zix/path.h" -#include "zix/status.h" +#include +#include +#include #include #include diff --git a/src/win32/sem_win32.c b/src/win32/sem_win32.c index 979390e..d28f39f 100644 --- a/src/win32/sem_win32.c +++ b/src/win32/sem_win32.c @@ -1,9 +1,9 @@ // Copyright 2012-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/sem.h" +#include -#include "zix/status.h" +#include #include diff --git a/src/win32/thread_win32.c b/src/win32/thread_win32.c index e4411b1..dbfe026 100644 --- a/src/win32/thread_win32.c +++ b/src/win32/thread_win32.c @@ -1,9 +1,9 @@ // Copyright 2012-2022 David Robillard // SPDX-License-Identifier: ISC -#include "zix/thread.h" +#include -#include "zix/status.h" +#include #include -- cgit v1.2.1