FreeCalypso > hg > ueda-linux
comparison netdiff/match/pindiff.c @ 148:64d4abf63e1e
netdiff: donl-pindiff factored out of donl-netmatch
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Nov 2020 04:11:01 +0000 |
parents | netdiff/match/main.c@d3eb3790386d |
children |
comparison
equal
deleted
inserted
replaced
147:295b1e4534bf | 148:64d4abf63e1e |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 #include "struct.h" | |
4 | |
5 char *infnames[2]; | |
6 struct pin_info *database; | |
7 | |
8 write_diffs_report() | |
9 { | |
10 struct pin_info *p; | |
11 | |
12 for (p = database; p; p = p->next) { | |
13 if (p->netnames[0] && !p->netnames[1]) | |
14 printf("Pin %s only in %s: net %s\n", p->pin_name, | |
15 infnames[0], p->netnames[0]); | |
16 if (!p->netnames[0] && p->netnames[1]) | |
17 printf("Pin %s only in %s: net %s\n", p->pin_name, | |
18 infnames[1], p->netnames[1]); | |
19 } | |
20 } | |
21 | |
22 main(argc, argv) | |
23 char **argv; | |
24 { | |
25 int i; | |
26 | |
27 if (argc != 3) { | |
28 fprintf(stderr, "usage: %s net1 net2\n", argv[0]); | |
29 exit(1); | |
30 } | |
31 infnames[0] = argv[1]; | |
32 infnames[1] = argv[2]; | |
33 for (i = 0; i < 2; i++) | |
34 read_pass(i); | |
35 write_diffs_report(); | |
36 exit(0); | |
37 } |