1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 16:01:31 +02:00

b2/boom.c (main): rearrange to reduce indentation depth

This commit is contained in:
Werner Almesberger 2012-06-02 05:26:33 -03:00
parent 3ebac688bd
commit be1277eb99

View File

@ -129,7 +129,10 @@ int main(int argc, char **argv)
dollar = unique("$"); dollar = unique("$");
for (i = 1; i != argc; i++) { for (i = 1; i != argc; i++) {
if (*argv[i] == '-') { if (*argv[i] != '-') {
process(argv[i]);
continue;
}
if (!strcmp(argv[i], "-N")) { if (!strcmp(argv[i], "-N")) {
i++; i++;
file_name_override = argv[i]; file_name_override = argv[i];
@ -165,9 +168,6 @@ int main(int argc, char **argv)
select_parts = 1; select_parts = 1;
} else } else
usage(*argv); usage(*argv);
} else {
process(argv[i]);
}
} }
if (vars) if (vars)
do_substitutions(); do_substitutions();