comparison pads2gpcb/mainoutput.c @ 74:58f11f06d831

pads2gpcb: main output implemented
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 01 Feb 2016 00:45:24 +0000
parents
children
comparison
equal deleted inserted replaced
73:bdfd0b802bb0 74:58f11f06d831
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "globals.h"
4 #include "struct.h"
5
6 write_elements_pcb(filename)
7 char *filename;
8 {
9 struct part_instance *p;
10 FILE *outf;
11
12 outf = fopen(filename, "w");
13 if (!outf) {
14 perror(filename);
15 exit(1);
16 }
17 for (p = part_inst_list; p; p = p->next) {
18 if (!p->newname)
19 continue;
20 write_gpcb_element(outf, p->body, p->type->alpha_pins,
21 p->type->name, p->newname, p->decal->name,
22 p->onbottom);
23 }
24 fclose(outf);
25 return(0);
26 }