From aea40f3877e36e95f2a70e3eeb0569fd156e3841 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 5 Jul 2024 07:16:05 +0300 Subject: Add almost all Only continue operation and "blocks" of code are left. Now I'm gonna sleep And yes, I understand that code need to be refactored, and if I will not get bored with writing this thing I will rewrite it in a better way, cuz now code is awful --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 36cdf5b..0d69855 100644 --- a/src/main.c +++ b/src/main.c @@ -7,6 +7,9 @@ #include #include +#include "cccl.h" +#include "platform/getch.h" + const s8 *program_name; @@ -35,6 +38,7 @@ noreturn void usage(bool full) int main(i32 argc, s8 **argv) { program_name = argv[0]; + getch_init(); i32 ch; while ((ch = getopt_long(argc, argv, "h", long_options, NULL)) != EOF) @@ -52,5 +56,10 @@ int main(i32 argc, s8 **argv) if (argv[optind] == NULL) usage(false); + cccl_init(argv[optind]); + cccl_read(); + cccl_run(); + cccl_free(); + return 0; } -- cgit 1.4.1