comparison pads2gpcb/main.c @ 77:f640c8f005c5

pads2gpcb: soldermask and clearance adjustment options added
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 01 Feb 2016 02:18:06 +0000
parents 58f11f06d831
children be1fe110b6ab
comparison
equal deleted inserted replaced
76:f673b6ad2a78 77:f640c8f005c5
3 #include <unistd.h> 3 #include <unistd.h>
4 #include <ctype.h> 4 #include <ctype.h>
5 #include <string.h> 5 #include <string.h>
6 #include <strings.h> 6 #include <strings.h>
7 #include "globals.h" 7 #include "globals.h"
8
9 extern long cmdline_dim_arg();
8 10
9 static 11 static
10 parse_header_line() 12 parse_header_line()
11 { 13 {
12 char *cp; 14 char *cp;
35 int c; 37 int c;
36 char *main_output; 38 char *main_output;
37 extern int optind; 39 extern int optind;
38 extern char *optarg; 40 extern char *optarg;
39 41
40 while ((c = getopt(argc, argv, "fs:")) != EOF) 42 while ((c = getopt(argc, argv, "c:fm:s:")) != EOF)
41 switch (c) { 43 switch (c) {
44 case 'c':
45 clearance_setting = cmdline_dim_arg(optarg);
46 continue;
42 case 'f': 47 case 'f':
43 write_footprint_files = 1; 48 write_footprint_files = 1;
49 continue;
50 case 'm':
51 soldermask_delta = cmdline_dim_arg(optarg);
44 continue; 52 continue;
45 case 's': 53 case 's':
46 do_footprint_silk = 1; 54 do_footprint_silk = 1;
47 select_drawlevel_for_silk(atoi(optarg)); 55 select_drawlevel_for_silk(atoi(optarg));
48 continue; 56 continue;