comparison ueda/mclutils/mkbom.c @ 82:20c6f84c75e7

bomstruct.h factored out
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 23 Feb 2017 19:18:16 +0000
parents 6e43956e740d
children 88cdef7e6b1b
comparison
equal deleted inserted replaced
81:6e43956e740d 82:20c6f84c75e7
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <strings.h> 8 #include <strings.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 #include "../libueda/mcl.h" 10 #include "../libueda/mcl.h"
11 #include "bomstruct.h"
11 12
12 extern char *MCLfile; 13 extern char *MCLfile;
13 extern struct component components[]; 14 extern struct component components[];
14 extern int ncomponents; 15 extern int ncomponents;
15 extern char *get_comp_attr(), *get_comp_multiattr(); 16 extern char *get_comp_attr(), *get_comp_multiattr();
16 extern struct component *find_partdef_by_name(); 17 extern struct component *find_partdef_by_name();
17
18 struct refdeslist {
19 char *first;
20 char *last;
21 struct refdeslist *next;
22 };
23
24 struct bompart {
25 struct component *part;
26 int qty;
27 struct bompart *next;
28 struct refdeslist *refdeslist;
29 };
30 18
31 int check_completeness, refdes_lists; 19 int check_completeness, refdes_lists;
32 struct bompart *bomhead; 20 struct bompart *bomhead;
33 21
34 do_cmdline_opts(argc, argv) 22 do_cmdline_opts(argc, argv)