FreeCalypso > hg > ueda-linux
view 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 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include "struct.h" char *infnames[2]; struct pin_info *database; emit_output() { struct pin_info *p; for (p = database; p; p = p->next) { if (!p->netnames[0]) p->netnames[0] = "-"; if (!p->netnames[1]) p->netnames[1] = "-"; printf("%s\t%s\t%s\n", p->pin_name, p->netnames[0], p->netnames[1]); } } main(argc, argv) char **argv; { int i; if (argc != 3) { fprintf(stderr, "usage: %s net1 net2\n", argv[0]); exit(1); } infnames[0] = argv[1]; infnames[1] = argv[2]; for (i = 0; i < 2; i++) read_pass(i); emit_output(); exit(0); }