From f1ced068f1eccdf2866a91334d4e271e8f94802d Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 30 May 2021 18:10:42 +0200 Subject: Unify ordering of the includes --- src/file.c | 7 ++++--- src/main.c | 14 +++++++------- src/options.c | 7 ++++--- src/print.c | 4 ++-- src/resources.c | 4 ++-- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/file.c b/src/file.c index 0dc36de..634bb3b 100644 --- a/src/file.c +++ b/src/file.c @@ -24,12 +24,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include - #include "file.h" + #include "print.h" +#include +#include + long file_size(FILE *const file) { diff --git a/src/main.c b/src/main.c index 1b526d9..80e6129 100644 --- a/src/main.c +++ b/src/main.c @@ -24,6 +24,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "backup.h" +#include "file.h" +#include "options.h" +#include "print.h" +#include "resources.h" +#include "restore.h" + #include #include #include @@ -32,13 +39,6 @@ #include #include -#include "backup.h" -#include "file.h" -#include "options.h" -#include "print.h" -#include "resources.h" -#include "restore.h" - static void clean_exit(resources_t *const res, int exit_code) { diff --git a/src/options.c b/src/options.c index 91fcf8f..002b36c 100644 --- a/src/options.c +++ b/src/options.c @@ -24,15 +24,16 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "options.h" + +#include "print.h" + #include #include #include #include #include -#include "options.h" -#include "print.h" - /* This header file is automatically generated at build time from the Makefile */ #include "program_info.h" diff --git a/src/print.c b/src/print.c index fc0c923..1dcb75a 100644 --- a/src/print.c +++ b/src/print.c @@ -24,11 +24,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "print.h" + #include #include -#include "print.h" - #define PRINT_ERROR_PREFIX "ERROR: " #define PRINT_ERROR_SUFFIX "\n" diff --git a/src/resources.c b/src/resources.c index fa5fc2f..65b7f71 100644 --- a/src/resources.c +++ b/src/resources.c @@ -24,11 +24,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "resources.h" + #include #include -#include "resources.h" - void resources_init(resources_t *const res) { -- cgit v1.2.3