FreeCalypso > hg > ueda-linux
diff ueda/sverp-bind/main.c @ 16:65a515c20db8
unet-bind: starpoint entry implemented
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 02 Aug 2015 01:12:18 +0000 |
parents | c59f52e4bacf |
children | 1d4c693b8f35 |
line wrap: on
line diff
--- a/ueda/sverp-bind/main.c Sun Aug 02 00:39:38 2015 +0000 +++ b/ueda/sverp-bind/main.c Sun Aug 02 01:12:18 2015 +0000 @@ -7,12 +7,14 @@ extern char *MCLfile; char *input_filename, *output_filename; +char *starpoints_file; int check_completeness; static void usage() { - fprintf(stderr, "usage: unet-bind input.unet [output.unet]\n"); + fprintf(stderr, + "usage: unet-bind [options] input.unet [output.unet]\n"); exit(1); } @@ -23,17 +25,20 @@ extern char *optarg; register int c; - while ((c = getopt(argc, argv, "cI:M:")) != EOF) { + while ((c = getopt(argc, argv, "cI:M:s:")) != EOF) { switch (c) { case 'c': check_completeness++; - break; + continue; case 'I': add_symfile_dir(optarg); continue; case 'M': MCLfile = optarg; - break; + continue; + case 's': + starpoints_file = optarg; + continue; default: usage(); } @@ -57,6 +62,10 @@ read_pinouts(); init_outcomp_from_MCL(); + /* do we have any star points? */ + if (starpoints_file) + process_starpoints_file(); + /* remaining functionality remains to be implemented */ exit(0); }