URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 19 |
Rev 82 |
Line 754... |
Line 754... |
void arg_print_gnuswitch(FILE *fp, struct arg_hdr **table)
|
void arg_print_gnuswitch(FILE *fp, struct arg_hdr **table)
|
{
|
{
|
int tabindex;
|
int tabindex;
|
char *format1=" -%c";
|
char *format1=" -%c";
|
char *format2=" [-%c";
|
char *format2=" [-%c";
|
char *suffix="";
|
int need_suffix=0; /* JPB mod */
|
|
|
/* print all mandatory switches that are without argument values */
|
/* print all mandatory switches that are without argument values */
|
for(tabindex=0; table[tabindex] && !(table[tabindex]->flag&ARG_TERMINATOR); tabindex++)
|
for(tabindex=0; table[tabindex] && !(table[tabindex]->flag&ARG_TERMINATOR); tabindex++)
|
{
|
{
|
/* skip optional options */
|
/* skip optional options */
|
Line 795... |
Line 795... |
continue;
|
continue;
|
|
|
/* print first short option */
|
/* print first short option */
|
fprintf(fp,format2,table[tabindex]->shortopts[0]);
|
fprintf(fp,format2,table[tabindex]->shortopts[0]);
|
format2="%c";
|
format2="%c";
|
suffix="]";
|
need_suffix=1;
|
}
|
}
|
|
|
fprintf(fp,suffix);
|
fprintf(fp,need_suffix ? "]" : "");
|
}
|
}
|
|
|
|
|
void arg_print_syntax(FILE *fp, void **argtable, const char *suffix)
|
void arg_print_syntax(FILE *fp, void **argtable, const char *suffix)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.