diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-03-20 07:54:51 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-03-20 07:54:51 +0100 |
commit | cbc17d2fcafe2e432f704d2dd2e0ff5c85118356 (patch) | |
tree | d52fd0269e474a2face81f6044293d1536aa8d0d /cooker/main.c | |
parent | ac8209922a79de4d6108128244c9133f5591fd8b (diff) | |
download | seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar.gz seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar.bz2 seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar.lz seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar.xz seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.tar.zst seitan-cbc17d2fcafe2e432f704d2dd2e0ff5c85118356.zip |
cooker: Initial import of new implementation
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'cooker/main.c')
-rw-r--r-- | cooker/main.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cooker/main.c b/cooker/main.c new file mode 100644 index 0000000..9965cff --- /dev/null +++ b/cooker/main.c @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +/* seitan - Syscall Expressive Interpreter, Transformer and Notifier + * + * cooker/main.c - Entry point of seitan-cooker, the gluten (bytecode) generator + * + * Copyright 2023 Red Hat GmbH + * Author: Stefano Brivio <sbrivio@redhat.com> + */ + +#include "cooker.h" +#include "gluten.h" +#include "parse.h" + +int main(int argc, char **argv) +{ + struct gluten_ctx g = { 0 }; + + /* TODO: Options and usage */ + (void)argc; + (void)argv; + + gluten_init(&g); + + parse_file(&g, argv[1]); + + return 0; +} |