yait

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3a9d52c5133f0d3c25da9e8d9d074ea5dd68e2cb
parent d6cf8c5dd63858e6a48134df20e239fa53d3a722
Author: vx-clutch <[email protected]>
Date:   Mon, 14 Jul 2025 23:07:13 -0400

save

Diffstat:
Dbin/yait | 0
Dconfig.mak | 4----
Rlib/e.h -> core/e.h | 0
Rlib/file.c -> core/file.c | 0
Rlib/file.h -> core/file.h | 0
Rlib/print.c -> core/print.c | 0
Rlib/print.h -> core/print.h | 0
Dobj/yait/main.o | 0
Ayait/format.h | 26++++++++++++++++++++++++++
Myait/main.c | 16++++++++++++++--
10 files changed, 40 insertions(+), 6 deletions(-)

diff --git a/bin/yait b/bin/yait Binary files differ. diff --git a/config.mak b/config.mak @@ -1,4 +0,0 @@ -PREFIX=/usr/bin/ -CFLAGS=-Wall -Wextra -O2 -LDFLAGS= -CC=gcc diff --git a/lib/e.h b/core/e.h diff --git a/lib/file.c b/core/file.c diff --git a/lib/file.h b/core/file.h diff --git a/lib/print.c b/core/print.c diff --git a/lib/print.h b/core/print.h diff --git a/obj/yait/main.o b/obj/yait/main.o Binary files differ. diff --git a/yait/format.h b/yait/format.h @@ -0,0 +1,26 @@ +#ifndef CORE_H +#define CORE_H + +#include <stdbool.h> + +typedef enum { + OPENBSD3, + GPLv3, + MIT, + UNLICENCE, +} licence_t; + +typedef enum { + RAYLIB, + WINAPI, + cURL, +} lib_t; + +typedef struct { + bool nogit; + licence_t licence; + char *name; + lib_t libraries[]; +} format_t; + +#endif diff --git a/yait/main.c b/yait/main.c @@ -1,6 +1,18 @@ #include "../lib/print.h" +#include "core.h" -int main(void) { - printfn("error: incomplete binary."); +void create(format_t); + +int main(int argc, char **argv) { + if (argc < 2) { + printfn("error: not enough arguments."); + return 1; + } + format_t conf; + conf.name = argv[1]; + conf.nogit = false; return 0; } + +void create(format_t conf) { +}