changeset 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
files ueda/mclutils/bomstruct.h ueda/mclutils/mkbom.c
diffstat 2 files changed, 17 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ueda/mclutils/bomstruct.h	Thu Feb 23 19:18:16 2017 +0000
@@ -0,0 +1,16 @@
+/*
+ * Structure definitions for tallied BOM generation
+ */
+
+struct refdeslist {
+	char	*first;
+	char	*last;
+	struct	refdeslist *next;
+};
+
+struct bompart {
+	struct	component *part;
+	int	qty;
+	struct	bompart *next;
+	struct	refdeslist *refdeslist;
+};
--- a/ueda/mclutils/mkbom.c	Thu Feb 23 19:15:48 2017 +0000
+++ b/ueda/mclutils/mkbom.c	Thu Feb 23 19:18:16 2017 +0000
@@ -8,6 +8,7 @@
 #include <strings.h>
 #include <unistd.h>
 #include "../libueda/mcl.h"
+#include "bomstruct.h"
 
 extern char *MCLfile;
 extern struct component components[];
@@ -15,19 +16,6 @@
 extern char *get_comp_attr(), *get_comp_multiattr();
 extern struct component *find_partdef_by_name();
 
-struct refdeslist {
-	char	*first;
-	char	*last;
-	struct	refdeslist *next;
-};
-
-struct bompart {
-	struct	component *part;
-	int	qty;
-	struct	bompart *next;
-	struct	refdeslist *refdeslist;
-};
-
 int check_completeness, refdes_lists;
 struct bompart *bomhead;