mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 15:45:11 +02:00
b2/: move substitutions dump from parser to boom.c
This commit is contained in:
parent
cc5d9a9d58
commit
3027daca18
@ -18,6 +18,7 @@
|
|||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "chr.h"
|
#include "chr.h"
|
||||||
|
#include "subst.h"
|
||||||
#include "subex.h"
|
#include "subex.h"
|
||||||
#include "db.h"
|
#include "db.h"
|
||||||
|
|
||||||
@ -93,6 +94,9 @@ static void dump(const char *s)
|
|||||||
case 'h':
|
case 'h':
|
||||||
dump_hierarchy(hierarchy);
|
dump_hierarchy(hierarchy);
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
|
subst_dump(stderr, substitutions);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "no database '%c'\n", *s);
|
fprintf(stderr, "no database '%c'\n", *s);
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -116,7 +120,7 @@ static void usage(const char *name)
|
|||||||
" -X symbols (BOM supplement)\n"
|
" -X symbols (BOM supplement)\n"
|
||||||
" other options:\n"
|
" other options:\n"
|
||||||
" -v ... increase verbosity level\n"
|
" -v ... increase verbosity level\n"
|
||||||
" -dCHARS dump the specified database (h, c, i, ...)\n"
|
" -dCHARS dump the specified database (h, c, s, ...)\n"
|
||||||
" -N name for the next file, override the name in diagnostics\n"
|
" -N name for the next file, override the name in diagnostics\n"
|
||||||
" -q var=value ... run substitutions with the specified inputs\n"
|
" -q var=value ... run substitutions with the specified inputs\n"
|
||||||
" -Q var=value ... run substitutions and then do parametric search\n"
|
" -Q var=value ... run substitutions and then do parametric search\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user