diff options
| author | Nakidai <plaza521@inbox.ru> | 2024-07-05 07:16:05 +0300 |
|---|---|---|
| committer | Nakidai <plaza521@inbox.ru> | 2024-07-05 07:19:48 +0300 |
| commit | aea40f3877e36e95f2a70e3eeb0569fd156e3841 (patch) | |
| tree | e6bd202ac4e5499db3b9983fc46e3b880a20f5ff /src/main.c | |
| parent | a9c159f5f7bf3479c3236735960597b4bc36a204 (diff) | |
| download | 3cl-aea40f3877e36e95f2a70e3eeb0569fd156e3841.tar.gz 3cl-aea40f3877e36e95f2a70e3eeb0569fd156e3841.zip | |
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
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h> #include <stdnoreturn.h> +#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; } |