FreeCalypso > hg > ueda-linux
comparison netdiff/match/match.c @ 149:d1a507d34e77
netdiff: donl-netmatch2 factored out
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Nov 2020 04:18:47 +0000 |
parents | netdiff/match/main.c@d3eb3790386d |
children |
comparison
equal
deleted
inserted
replaced
148:64d4abf63e1e | 149:d1a507d34e77 |
---|---|
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_matching_nets() | |
9 { | |
10 struct pin_info *p; | |
11 | |
12 for (p = database; p; p = p->next) { | |
13 if (!p->netnames[0] || !p->netnames[1]) | |
14 continue; | |
15 printf("%s\t%s\n", p->netnames[0], p->netnames[1]); | |
16 } | |
17 } | |
18 | |
19 main(argc, argv) | |
20 char **argv; | |
21 { | |
22 int i; | |
23 | |
24 if (argc != 3) { | |
25 fprintf(stderr, "usage: %s net1 net2\n", argv[0]); | |
26 exit(1); | |
27 } | |
28 infnames[0] = argv[1]; | |
29 infnames[1] = argv[2]; | |
30 for (i = 0; i < 2; i++) | |
31 read_pass(i); | |
32 write_matching_nets(); | |
33 exit(0); | |
34 } |