FreeCalypso > hg > ueda-linux
comparison netdiff/match/main2.c @ 145:5e91200bf609
netdiff: donl-pinreport utility written, compiles
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 15 Nov 2020 01:17:10 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 144:ffadaa339478 | 145:5e91200bf609 |
|---|---|
| 1 #include <stdio.h> | |
| 2 #include <stdlib.h> | |
| 3 #include "struct.h" | |
| 4 | |
| 5 char *infnames[2]; | |
| 6 struct pin_info *database; | |
| 7 | |
| 8 emit_output() | |
| 9 { | |
| 10 struct pin_info *p; | |
| 11 | |
| 12 for (p = database; p; p = p->next) { | |
| 13 if (!p->netnames[0]) | |
| 14 p->netnames[0] = "-"; | |
| 15 if (!p->netnames[1]) | |
| 16 p->netnames[1] = "-"; | |
| 17 printf("%s\t%s\t%s\n", p->pin_name, p->netnames[0], | |
| 18 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 emit_output(); | |
| 36 exit(0); | |
| 37 } |
