1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 15:32:25 +02:00

b2/: move substitutions dump from parser to boom.c

This commit is contained in:
Werner Almesberger 2012-06-02 15:05:40 -03:00
parent cc5d9a9d58
commit 3027daca18
2 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -607,7 +607,6 @@ substitutions:
{ {
$$ = $1; $$ = $1;
subst_finalize($$); subst_finalize($$);
subst_dump(stderr, $$);
} }
; ;