From 170f3ddc3d8967c0b5d4755c0221c396db215b2f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Apr 2024 01:28:45 +0300 Subject: implement some initial qbt backend stuff --- src/main.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 142a575..b3e2b2b 100644 --- a/src/main.c +++ b/src/main.c @@ -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 ...] [-o ] infile\n" " -h Show usage (this)\n" " -I Add directory to import path\n" " infile Top file(s) to compile\n" - " -o 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); } -- cgit v1.3