save
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
PREFIX=/usr/bin/
|
||||
CFLAGS=-Wall -Wextra -O2
|
||||
LDFLAGS=
|
||||
CC=gcc
|
||||
BIN
obj/yait/main.o
BIN
obj/yait/main.o
Binary file not shown.
26
yait/format.h
Normal file
26
yait/format.h
Normal file
@@ -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
|
||||
16
yait/main.c
16
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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user