This commit is contained in:
2025-07-28 11:32:01 -04:00
parent e683817120
commit 4a9c1f17b7
9 changed files with 76 additions and 10 deletions

View File

@@ -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 "file.h"
#include "../config.h" #include "../config.h"
#include <errno.h> #include <errno.h>

View File

@@ -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 #ifndef FILE_H
#define FILE_H #define FILE_H

View File

@@ -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 "print.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -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 #ifndef PRINT_H
#define PRINT_H #define PRINT_H

View File

@@ -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 #ifndef COMMIT
#define COMMIT 0 #define COMMIT 0
#endif #endif

View File

@@ -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 #ifndef STANDARD_H
#define STANDARD_H #define STANDARD_H

View File

@@ -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 // clang-format off
#ifndef CONTENTS_H #ifndef CONTENTS_H
#define CONTENTS_H #define CONTENTS_H

View File

@@ -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 #ifndef FORMAT_H
#define FORMAT_H #define FORMAT_H

View File

@@ -1,19 +1,13 @@
/* Copyright (C) vx_clutch /* Copyright (C) vx_clutch
* *
* This file is part of yait * This file is part of yait
* *
* This project and file is licenced under the BSD-3-Clause licence. * This project and file is licenced under the BSD-3-Clause licence.
* <https://opensource.org/license/bsd-3-clause> * <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 <assert.h>
#include <errno.h> #include <errno.h>
#include <getopt.h> #include <getopt.h>
@@ -23,6 +17,13 @@
#include <string.h> #include <string.h>
#include <unistd.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_USER_NAME "unknown"
#define DEFAULT_PROJECT_NAME "Project" #define DEFAULT_PROJECT_NAME "Project"
#define DEFAULT_LICENSE BSD3 #define DEFAULT_LICENSE BSD3
@@ -228,8 +229,9 @@ create_license_and_set_license_line (format_t fmt, char **license_line_buffer)
return 0; return 0;
reset_path; reset_path;
/* TODO: Run better checks on license_line_buffer to ensure we have enough space. /* TODO: Run better checks on license_line_buffer to ensure we have enough
This could be done through a multitude of ways; that is for you to figure out. */ space. This could be done through a multitude of ways; that is for you to
figure out. */
assert (license_line_buffer != NULL); assert (license_line_buffer != NULL);
// TODO: Remove this and actually implement the features. // TODO: Remove this and actually implement the features.