FreeCalypso > hg > ueda-linux
view 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 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <strings.h> #include "globals.h" main(argc, argv) char **argv; { if (argc != 2) { fprintf(stderr, "usage: %s pads-file.asc\n", argv[0]); exit(1); } input_filename = argv[1]; open_input_file(); while (get_input_line()) { if (input_line_buf[0] != '*') continue; parse_starline(); #if 0 loop: if (!strcmp(input_line_starkw, "PARTDECAL")) { process_partdecal_section(); goto loop; } if (!strcmp(input_line_starkw, "PARTTYPE")) { process_parttype_section(); goto loop; } if (!strcmp(input_line_starkw, "PART")) { process_part_section(); goto loop; } #endif } exit(0); }