mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 21:32:29 +02:00
b2/boom.c (main): run queries also if no variables are set
This commit is contained in:
parent
d1593b6681
commit
e919b16d78
@ -132,6 +132,7 @@ static void usage(const char *name)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
void (*process)(const char *name) = parse_hierarchy;
|
void (*process)(const char *name) = parse_hierarchy;
|
||||||
|
int query = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
dollar = unique("$");
|
dollar = unique("$");
|
||||||
@ -170,13 +171,15 @@ int main(int argc, char **argv)
|
|||||||
process = parse_symbols;
|
process = parse_symbols;
|
||||||
} else if (!strcmp(argv[i], "-q")) {
|
} else if (!strcmp(argv[i], "-q")) {
|
||||||
process = add_var;
|
process = add_var;
|
||||||
|
query = 1;
|
||||||
} else if (!strcmp(argv[i], "-Q")) {
|
} else if (!strcmp(argv[i], "-Q")) {
|
||||||
process = add_var;
|
process = add_var;
|
||||||
|
query = 1;
|
||||||
select_parts = 1;
|
select_parts = 1;
|
||||||
} else
|
} else
|
||||||
usage(*argv);
|
usage(*argv);
|
||||||
}
|
}
|
||||||
if (vars)
|
if (query)
|
||||||
do_substitutions();
|
do_substitutions();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user