comparison ueda/sverp-bind/enterinst.c @ 37:ce887659d12e

unet-bind: implemented hier=flip:... hack for 2-pin components
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 16 Aug 2015 01:51:12 +0000
parents dda8e455c863
children
comparison
equal deleted inserted replaced
36:a0d227fc9569 37:ce887659d12e
11 register struct outcomp *oc; 11 register struct outcomp *oc;
12 char *hier; 12 char *hier;
13 { 13 {
14 register struct instance *inst; 14 register struct instance *inst;
15 15
16 if (!strncmp(hier, "flip:", 5)) {
17 if (oc->npins != 2 || oc->grid_pkg) {
18 fprintf(stderr,
19 "error: hier=flip:... makes no sense for %s\n",
20 oc->name);
21 exit(1);
22 }
23 oc->reverse_2pin = 1;
24 hier += 5;
25 }
16 oc->altname = hier; 26 oc->altname = hier;
17 inst = enter_instance(hier); 27 inst = enter_instance(hier);
18 inst->outcomp = oc; 28 inst->outcomp = oc;
19 } 29 }
20 30