From 85b23fbee717f047af5a89eac6f4dba8e7812524 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Tue, 1 Jun 2021 18:21:02 +0300 Subject: restructuring --- src/program/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/program/program.c') diff --git a/src/program/program.c b/src/program/program.c index 5cf8cc3..1e7882d 100644 --- a/src/program/program.c +++ b/src/program/program.c @@ -48,6 +48,8 @@ struct Options* parse_command_line(int argc,char **argv) ret->target=OPTION_TARGET_TOKENS; else if(!strncmp(argv[i],"--print-ast",sizeof("--print-ast"))) ret->target=OPTION_TARGET_AST; + else if(!strncmp(argv[i],"--print-c",sizeof("--print-c"))) + ret->target=OPTION_TARGET_C; else if(!strncmp(argv[i],"-o",sizeof("-o")) || !strncmp(argv[i],"--output",sizeof("--output"))) { if(++itarget==OPTION_DEFAULT) - ret->target=OPTION_TARGET_AST; + ret->target=OPTION_TARGET_C; return ret; } -- cgit v1.2.3