comparison pads2gpcb/main.c @ 38:aa0539cc3d41

pads2gpcb project started, skeleton compiles
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 11 Jan 2016 04:56:51 +0000
parents
children 242f73e61ef0
comparison
equal deleted inserted replaced
37:ce887659d12e 38:aa0539cc3d41
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <ctype.h>
4 #include <string.h>
5 #include <strings.h>
6 #include "globals.h"
7
8 main(argc, argv)
9 char **argv;
10 {
11 if (argc != 2) {
12 fprintf(stderr, "usage: %s pads-file.asc\n", argv[0]);
13 exit(1);
14 }
15 input_filename = argv[1];
16 open_input_file();
17 while (get_input_line()) {
18 if (input_line_buf[0] != '*')
19 continue;
20 parse_starline();
21 #if 0
22 loop: if (!strcmp(input_line_starkw, "PARTDECAL")) {
23 process_partdecal_section();
24 goto loop;
25 }
26 if (!strcmp(input_line_starkw, "PARTTYPE")) {
27 process_parttype_section();
28 goto loop;
29 }
30 if (!strcmp(input_line_starkw, "PART")) {
31 process_part_section();
32 goto loop;
33 }
34 #endif
35 }
36 exit(0);
37 }