diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-07 01:28:45 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-07 01:28:45 +0300 |
| commit | 170f3ddc3d8967c0b5d4755c0221c396db215b2f (patch) | |
| tree | 00314209cd7878b9d5b3fe6fc2e0c7297f76dec8 /src/main.c | |
| parent | 2bdf1f8b1856bca8091d66a7a447e6c90993c297 (diff) | |
| download | ek-170f3ddc3d8967c0b5d4755c0221c396db215b2f.tar.gz ek-170f3ddc3d8967c0b5d4755c0221c396db215b2f.zip | |
implement some initial qbt backend stuff
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -22,13 +22,11 @@ * some way to make flag handling more generic */ static const char *cmdline_usage = - "ek compiler usage:\n" + "ek frontend usage:\n" " ek [-I <dir>...] [-o <outfile>] infile\n" " -h Show usage (this)\n" " -I <dir> Add directory to import path\n" " infile Top file(s) to compile\n" - " -o <outfile> Name of output assembly file\n" - " (infile minus file extension if not given)\n" ; /** Print usage of compiler. */ @@ -50,13 +48,8 @@ static void usage() int main(int argc, char *argv[]) { int opt; - const char *output = "e.t"; - while ((opt = getopt(argc, argv, "hI:o:")) != -1) { + while ((opt = getopt(argc, argv, "hI:")) != -1) { switch (opt) { - case 'o': - output = optarg; - break; - case 'I': add_import_path(optarg); break; @@ -84,5 +77,5 @@ int main(int argc, char *argv[]) } const char *input = argv[optind]; - return compile(input, output); + return compile(input); } |
