comparison ueda/sverp-bind/main.c @ 15:c59f52e4bacf

unet-bind option -c reports MCL components with no binding
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 02 Aug 2015 00:39:38 +0000
parents 51893347bc42
children 65a515c20db8
comparison
equal deleted inserted replaced
14:068ea2458c5d 15:c59f52e4bacf
5 #include <unistd.h> 5 #include <unistd.h>
6 6
7 extern char *MCLfile; 7 extern char *MCLfile;
8 8
9 char *input_filename, *output_filename; 9 char *input_filename, *output_filename;
10 int check_completeness;
10 11
11 static void 12 static void
12 usage() 13 usage()
13 { 14 {
14 fprintf(stderr, "usage: unet-bind input.unet [output.unet]\n"); 15 fprintf(stderr, "usage: unet-bind input.unet [output.unet]\n");
20 char **argv; 21 char **argv;
21 { 22 {
22 extern char *optarg; 23 extern char *optarg;
23 register int c; 24 register int c;
24 25
25 while ((c = getopt(argc, argv, "I:M:")) != EOF) { 26 while ((c = getopt(argc, argv, "cI:M:")) != EOF) {
26 switch (c) { 27 switch (c) {
28 case 'c':
29 check_completeness++;
30 break;
27 case 'I': 31 case 'I':
28 add_symfile_dir(optarg); 32 add_symfile_dir(optarg);
29 continue; 33 continue;
30 case 'M': 34 case 'M':
31 MCLfile = optarg; 35 MCLfile = optarg;