commit 4a9c1f17b744b9bcc5e4b1d394cab4d215ebc384
parent e6838171209b76def32ab05d40ab8d343648f2a3
Author: vx-clutch <[email protected]>
Date: Mon, 28 Jul 2025 11:32:01 -0400
save
Diffstat:
9 files changed, 76 insertions(+), 10 deletions(-)
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#include "file.h"
#include "../config.h"
#include <errno.h>
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#ifndef FILE_H
#define FILE_H
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#include "print.h"
#include <stdarg.h>
#include <stdio.h>
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#ifndef PRINT_H
#define PRINT_H
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#ifndef COMMIT
#define COMMIT 0
#endif
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#ifndef STANDARD_H
#define STANDARD_H
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
// clang-format off
#ifndef CONTENTS_H
#define CONTENTS_H
diff --git 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.
+ * <https://opensource.org/license/bsd-3-clause>
+ */
+
#ifndef FORMAT_H
#define FORMAT_H
diff --git 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.
* <https://opensource.org/license/bsd-3-clause>
*/
-/* 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 <assert.h>
#include <errno.h>
#include <getopt.h>
@@ -23,6 +17,13 @@
#include <string.h>
#include <unistd.h>
+#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.