Home | History | Annotate | Download | only in dist

Lines Matching defs:ld_options

294 static const struct ld_option ld_options[] =
453 #define OPTION_COUNT (sizeof ld_options / sizeof ld_options[0])
648 if (ld_options[i].doc != NULL)
662 if (ld_options[j].shortopt != '\0'
663 && ld_options[j].control != NO_HELP)
665 fprintf (stderr, "%s-%c", comma ? ", " : "", ld_options[j].shortopt);
667 if (ld_options[j].arg != NULL)
669 if (ld_options[j].opt.has_arg != optional_argument)
674 fprintf (stderr, "%s", ld_options[j].arg);
675 len += strlen (ld_options[j].arg);
681 while (j < OPTION_COUNT && ld_options[j].doc == NULL);
686 if (ld_options[j].opt.name != NULL
687 && ld_options[j].control != NO_HELP)
691 ld_options[j].control == TWO_DASHES ? "-" : "",
692 ld_options[j].opt.name);
695 + (ld_options[j].control == TWO_DASHES ? 1 : 0)
696 + strlen (ld_options[j].opt.name));
697 if (ld_options[j].arg != NULL)
699 fprintf (stderr, " %s", ld_options[j].arg);
700 len += 1 + strlen (ld_options[j].arg);
706 while (j < OPTION_COUNT && ld_options[j].doc == NULL);
717 fprintf (stderr, "%s\n", ld_options[i].doc);
866 if (ld_options[i].shortopt != '\0')
868 shortopts[is] = ld_options[i].shortopt;
870 if (ld_options[i].opt.has_arg == required_argument
871 || ld_options[i].opt.has_arg == optional_argument)
875 if (ld_options[i].opt.has_arg == optional_argument)
882 if (ld_options[i].opt.name != NULL)
884 longopts[il] = ld_options[i].opt;