From 4a9c1f17b744b9bcc5e4b1d394cab4d215ebc384 Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Mon, 28 Jul 2025 11:32:01 -0400 Subject: [PATCH] save --- core/file.c | 8 ++++++++ core/file.h | 8 ++++++++ core/print.c | 8 ++++++++ core/print.h | 8 ++++++++ core/standard.c | 8 ++++++++ core/standard.h | 8 ++++++++ yait/contents.h | 8 ++++++++ yait/format.h | 8 ++++++++ yait/main.c | 22 ++++++++++++---------- 9 files changed, 76 insertions(+), 10 deletions(-) diff --git a/core/file.c b/core/file.c index cf7b61d..05367bb 100644 --- a/core/file.c +++ b/core/file.c @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #include "file.h" #include "../config.h" #include diff --git a/core/file.h b/core/file.h index 9c5aaff..8dc95d9 100644 --- a/core/file.h +++ b/core/file.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef FILE_H #define FILE_H diff --git a/core/print.c b/core/print.c index c9226a7..ede816d 100644 --- a/core/print.c +++ b/core/print.c @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #include "print.h" #include #include diff --git a/core/print.h b/core/print.h index ca1e902..facda00 100644 --- a/core/print.h +++ b/core/print.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef PRINT_H #define PRINT_H diff --git a/core/standard.c b/core/standard.c index 806cf65..970bafa 100644 --- a/core/standard.c +++ b/core/standard.c @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef COMMIT #define COMMIT 0 #endif diff --git a/core/standard.h b/core/standard.h index 8a95ce0..5e5450c 100644 --- a/core/standard.h +++ b/core/standard.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef STANDARD_H #define STANDARD_H diff --git a/yait/contents.h b/yait/contents.h index 2ae5324..95c6d59 100644 --- a/yait/contents.h +++ b/yait/contents.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + // clang-format off #ifndef CONTENTS_H #define CONTENTS_H diff --git a/yait/format.h b/yait/format.h index d26f4a8..106c23b 100644 --- a/yait/format.h +++ b/yait/format.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef FORMAT_H #define FORMAT_H diff --git a/yait/main.c b/yait/main.c index dff93f7..a11b70f 100644 --- a/yait/main.c +++ b/yait/main.c @@ -1,19 +1,13 @@ /* Copyright (C) vx_clutch - * + * * This file is part of yait * * This project and file is licenced under the BSD-3-Clause licence. * */ -/* Usage: yait [OPTION]... [PROJECT] (NAME) */ +// Usage: yait [OPTION]... [PROJECT] (NAME) -#include "../config.h" -#include "../core/file.h" -#include "../core/print.h" -#include "../core/standard.h" -#include "contents.h" -#include "format.h" #include #include #include @@ -23,6 +17,13 @@ #include #include +#include "../config.h" +#include "../core/file.h" +#include "../core/print.h" +#include "../core/standard.h" +#include "contents.h" +#include "format.h" + #define DEFAULT_USER_NAME "unknown" #define DEFAULT_PROJECT_NAME "Project" #define DEFAULT_LICENSE BSD3 @@ -228,8 +229,9 @@ create_license_and_set_license_line (format_t fmt, char **license_line_buffer) return 0; reset_path; - /* TODO: Run better checks on license_line_buffer to ensure we have enough space. - This could be done through a multitude of ways; that is for you to figure out. */ + /* TODO: Run better checks on license_line_buffer to ensure we have enough + space. This could be done through a multitude of ways; that is for you to + figure out. */ assert (license_line_buffer != NULL); // TODO: Remove this and actually implement the features.