summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-14 14:20:50 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-14 15:18:42 +0300
commit2da907987872e90ed279cb5b1bc2f4ea61f2f116 (patch)
tree7c8d5a8030c853ba756f717a256d27f4ff258597
parenteefdc276d6149b0ee7172cc759f57165a2347a8a (diff)
Fix warnings and parameter name
-rw-r--r--src/bin/main.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index ce28f1f..a26708d 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -339,7 +339,7 @@ _print_help(const char *program)
339 printf("Usage: %s [options] class_path/class_name...\n", program); 339 printf("Usage: %s [options] class_path/class_name...\n", program);
340 printf("Options:\n"); 340 printf("Options:\n");
341 printf(" --help/-h Display this information\n"); 341 printf(" --help/-h Display this information\n");
342 printf(" --noInheritance/-n By default we create the Inheritance tree\n"\ 342 printf(" --no-inheritance/-n By default we create the Inheritance tree\n"\
343 " , this flag disable it.\n"); 343 " , this flag disable it.\n");
344 printf(" --inheritors/-i Add the Inheritors tree (classes that inherit from this class)\n"); 344 printf(" --inheritors/-i Add the Inheritors tree (classes that inherit from this class)\n");
345 printf(" --output/-o <outFile> Set output filename to <outFile>\n"); 345 printf(" --output/-o <outFile> Set output filename to <outFile>\n");
@@ -367,9 +367,8 @@ int main(int argc, char **argv)
367{ 367{
368 int ret = 1; 368 int ret = 1;
369 int max_depth = 0; 369 int max_depth = 0;
370 char *class_path ="elm_layout.eo";// argv[2]; 370 char *output = NULL, *filter = NULL;
371 char* scope = NULL, *output = NULL, *filter = NULL; 371 Eina_Bool help = EINA_FALSE, includes = EINA_FALSE;
372 Eina_Bool help = EINA_FALSE, show = EINA_FALSE, includes = EINA_FALSE;
373 Eina_Bool no_inheritance = EINA_FALSE, inheritors = EINA_FALSE; 372 Eina_Bool no_inheritance = EINA_FALSE, inheritors = EINA_FALSE;
374 373
375 eina_init(); 374 eina_init();
@@ -386,9 +385,8 @@ int main(int argc, char **argv)
386 static struct option long_options[] = 385 static struct option long_options[] =
387 { 386 {
388 /* These options set a flag. */ 387 /* These options set a flag. */
389 {"verbose", no_argument, 0, 'v'},
390 {"help", no_argument, 0, 'h'}, 388 {"help", no_argument, 0, 'h'},
391 {"noInheritance", no_argument, 0, 'n'}, 389 {"no-inheritance", no_argument, 0, 'n'},
392 {"inheritors", no_argument, 0, 'i'}, 390 {"inheritors", no_argument, 0, 'i'},
393 {"output", required_argument, 0, 'o'}, 391 {"output", required_argument, 0, 'o'},
394 {"depth", required_argument, 0, 'd'}, 392 {"depth", required_argument, 0, 'd'},
@@ -397,11 +395,10 @@ int main(int argc, char **argv)
397 {0, 0, 0, 0} 395 {0, 0, 0, 0}
398 }; 396 };
399 int long_index = 0, opt; 397 int long_index = 0, opt;
400 while ((opt = getopt_long(argc, argv,"vhnio:d:f:I:", long_options, &long_index )) != -1) 398 while ((opt = getopt_long(argc, argv,"hnio:d:f:I:", long_options, &long_index )) != -1)
401 { 399 {
402 switch (opt) { 400 switch (opt) {
403 case 0: break; 401 case 0: break;
404 case 'v': show = EINA_TRUE; break;
405 case 'h': help = EINA_TRUE; break; 402 case 'h': help = EINA_TRUE; break;
406 case 'o': 403 case 'o':
407 { 404 {
@@ -459,9 +456,8 @@ int main(int argc, char **argv)
459 456
460 if(filter) 457 if(filter)
461 { 458 {
462 unsigned int elements = 0; 459 unsigned int elements = 0, i;
463 char **f_names = eina_str_split_full(filter, ",", 100, &elements); 460 char **f_names = eina_str_split_full(filter, ",", 100, &elements);
464 int i;
465 461
466 for(i = 0; i < elements; i++)/* go over all given filter names*/ 462 for(i = 0; i < elements; i++)/* go over all given filter names*/
467 { 463 {