Bug Summary

File:src/idn2_cmd.c
Location:line 443, column 3
Description:Value stored to 'check_required' is never read

Annotated Source Code

1/*
2 File autogenerated by gengetopt version 2.22.6
3 generated with the following command:
4 gengetopt --unamed-opts --no-handle-version --no-handle-help --set-package=idn2 --input idn2.ggo --file-name idn2_cmd Makefile.am
5
6 The developers of gengetopt consider the fixed text that goes in all
7 gengetopt output files to be in the public domain:
8 we make no copyright claims on it.
9*/
10
11/* If we use autoconf. */
12#ifdef HAVE_CONFIG_H1
13#include "config.h"
14#endif
15
16#include <stdio.h>
17#include <stdlib.h>
18#include <string.h>
19
20#ifndef FIX_UNUSED
21#define FIX_UNUSED(X)(void) (X) (void) (X) /* avoid warnings for unused params */
22#endif
23
24#include <getopt.h>
25
26#include "idn2_cmd.h"
27
28const char *gengetopt_args_info_purpose = "";
29
30const char *gengetopt_args_info_usage = "Usage: idn2 [OPTION]... [STRING]...";
31
32const char *gengetopt_args_info_versiontext = "";
33
34const char *gengetopt_args_info_description = "";
35
36const char *gengetopt_args_info_help[] = {
37 " -h, --help Print help and exit",
38 " -V, --version Print version and exit",
39 " -l, --lookup Lookup domain name (default)",
40 " -r, --register Register label",
41 " -T, --tr46t Enable TR46 transitional processing (default=off)",
42 " -N, --tr46nt Eable TR46 non-transitional processing (default=off)",
43 " --debug Print debugging information (default=off)",
44 " --quiet Silent operation (default=off)",
45 0
46};
47
48typedef enum {ARG_NO
49 , ARG_FLAG
50} cmdline_parser_arg_type;
51
52static
53void clear_given (struct gengetopt_args_info *args_info);
54static
55void clear_args (struct gengetopt_args_info *args_info);
56
57static int
58cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info,
59 struct cmdline_parser_params *params, const char *additional_error);
60
61
62static char *
63gengetopt_strdup (const char *s);
64
65static
66void clear_given (struct gengetopt_args_info *args_info)
67{
68 args_info->help_given = 0 ;
69 args_info->version_given = 0 ;
70 args_info->lookup_given = 0 ;
71 args_info->register_given = 0 ;
72 args_info->tr46t_given = 0 ;
73 args_info->tr46nt_given = 0 ;
74 args_info->debug_given = 0 ;
75 args_info->quiet_given = 0 ;
76}
77
78static
79void clear_args (struct gengetopt_args_info *args_info)
80{
81 FIX_UNUSED (args_info)(void) (args_info);
82 args_info->tr46t_flag = 0;
83 args_info->tr46nt_flag = 0;
84 args_info->debug_flag = 0;
85 args_info->quiet_flag = 0;
86
87}
88
89static
90void init_args_info(struct gengetopt_args_info *args_info)
91{
92
93
94 args_info->help_help = gengetopt_args_info_help[0] ;
95 args_info->version_help = gengetopt_args_info_help[1] ;
96 args_info->lookup_help = gengetopt_args_info_help[2] ;
97 args_info->register_help = gengetopt_args_info_help[3] ;
98 args_info->tr46t_help = gengetopt_args_info_help[4] ;
99 args_info->tr46nt_help = gengetopt_args_info_help[5] ;
100 args_info->debug_help = gengetopt_args_info_help[6] ;
101 args_info->quiet_help = gengetopt_args_info_help[7] ;
102
103}
104
105void
106cmdline_parser_print_version (void)
107{
108 printf ("%s %s\n",
109 (strlen(CMDLINE_PARSER_PACKAGE_NAME"idn2") ? CMDLINE_PARSER_PACKAGE_NAME"idn2" : CMDLINE_PARSER_PACKAGE"idn2"),
110 CMDLINE_PARSER_VERSION"0.16");
111
112 if (strlen(gengetopt_args_info_versiontext) > 0)
113 printf("\n%s\n", gengetopt_args_info_versiontext);
114}
115
116static void print_help_common(void) {
117 cmdline_parser_print_version ();
118
119 if (strlen(gengetopt_args_info_purpose) > 0)
120 printf("\n%s\n", gengetopt_args_info_purpose);
121
122 if (strlen(gengetopt_args_info_usage) > 0)
123 printf("\n%s\n", gengetopt_args_info_usage);
124
125 printf("\n");
126
127 if (strlen(gengetopt_args_info_description) > 0)
128 printf("%s\n\n", gengetopt_args_info_description);
129}
130
131void
132cmdline_parser_print_help (void)
133{
134 int i = 0;
135 print_help_common();
136 while (gengetopt_args_info_help[i])
137 printf("%s\n", gengetopt_args_info_help[i++]);
138}
139
140void
141cmdline_parser_init (struct gengetopt_args_info *args_info)
142{
143 clear_given (args_info);
144 clear_args (args_info);
145 init_args_info (args_info);
146
147 args_info->inputs = 0;
148 args_info->inputs_num = 0;
149}
150
151void
152cmdline_parser_params_init(struct cmdline_parser_params *params)
153{
154 if (params)
155 {
156 params->override = 0;
157 params->initialize = 1;
158 params->check_required = 1;
159 params->check_ambiguity = 0;
160 params->print_errors = 1;
161 }
162}
163
164struct cmdline_parser_params *
165cmdline_parser_params_create(void)
166{
167 struct cmdline_parser_params *params =
168 (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params));
169 cmdline_parser_params_init(params);
170 return params;
171}
172
173
174
175static void
176cmdline_parser_release (struct gengetopt_args_info *args_info)
177{
178 unsigned int i;
179
180
181 for (i = 0; i < args_info->inputs_num; ++i)
182 free (args_info->inputs [i]);
183
184 if (args_info->inputs_num)
185 free (args_info->inputs);
186
187 clear_given (args_info);
188}
189
190
191static void
192write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[])
193{
194 FIX_UNUSED (values)(void) (values);
195 if (arg) {
196 fprintf(outfile, "%s=\"%s\"\n", opt, arg);
197 } else {
198 fprintf(outfile, "%s\n", opt);
199 }
200}
201
202
203int
204cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
205{
206 int i = 0;
207
208 if (!outfile)
209 {
210 fprintf (stderrstderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE"idn2");
211 return EXIT_FAILURE1;
212 }
213
214 if (args_info->help_given)
215 write_into_file(outfile, "help", 0, 0 );
216 if (args_info->version_given)
217 write_into_file(outfile, "version", 0, 0 );
218 if (args_info->lookup_given)
219 write_into_file(outfile, "lookup", 0, 0 );
220 if (args_info->register_given)
221 write_into_file(outfile, "register", 0, 0 );
222 if (args_info->tr46t_given)
223 write_into_file(outfile, "tr46t", 0, 0 );
224 if (args_info->tr46nt_given)
225 write_into_file(outfile, "tr46nt", 0, 0 );
226 if (args_info->debug_given)
227 write_into_file(outfile, "debug", 0, 0 );
228 if (args_info->quiet_given)
229 write_into_file(outfile, "quiet", 0, 0 );
230
231
232 i = EXIT_SUCCESS0;
233 return i;
234}
235
236int
237cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
238{
239 FILE *outfile;
240 int i = 0;
241
242 outfile = fopen(filename, "w");
243
244 if (!outfile)
245 {
246 fprintf (stderrstderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE"idn2", filename);
247 return EXIT_FAILURE1;
248 }
249
250 i = cmdline_parser_dump(outfile, args_info);
251 fclose (outfile);
252
253 return i;
254}
255
256void
257cmdline_parser_free (struct gengetopt_args_info *args_info)
258{
259 cmdline_parser_release (args_info);
260}
261
262/** @brief replacement of strdup, which is not standard */
263char *
264gengetopt_strdup (const char *s)
265{
266 char *result = 0;
267 if (!s)
268 return result;
269
270 result = (char*)malloc(strlen(s) + 1);
271 if (result == (char*)0)
272 return (char*)0;
273 strcpy(result, s);
274 return result;
275}
276
277int
278cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info)
279{
280 return cmdline_parser2 (argc, argv, args_info, 0, 1, 1);
281}
282
283int
284cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info,
285 struct cmdline_parser_params *params)
286{
287 int result;
288 result = cmdline_parser_internal (argc, argv, args_info, params, 0);
289
290 if (result == EXIT_FAILURE1)
291 {
292 cmdline_parser_free (args_info);
293 exit (EXIT_FAILURE1);
294 }
295
296 return result;
297}
298
299int
300cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
301{
302 int result;
303 struct cmdline_parser_params params;
304
305 params.override = override;
306 params.initialize = initialize;
307 params.check_required = check_required;
308 params.check_ambiguity = 0;
309 params.print_errors = 1;
310
311 result = cmdline_parser_internal (argc, argv, args_info, &params, 0);
312
313 if (result == EXIT_FAILURE1)
314 {
315 cmdline_parser_free (args_info);
316 exit (EXIT_FAILURE1);
317 }
318
319 return result;
320}
321
322int
323cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name)
324{
325 FIX_UNUSED (args_info)(void) (args_info);
326 FIX_UNUSED (prog_name)(void) (prog_name);
327 return EXIT_SUCCESS0;
328}
329
330
331static char *package_name = 0;
332
333/**
334 * @brief updates an option
335 * @param field the generic pointer to the field to update
336 * @param orig_field the pointer to the orig field
337 * @param field_given the pointer to the number of occurrence of this option
338 * @param prev_given the pointer to the number of occurrence already seen
339 * @param value the argument for this option (if null no arg was specified)
340 * @param possible_values the possible values for this option (if specified)
341 * @param default_value the default value (in case the option only accepts fixed values)
342 * @param arg_type the type of this option
343 * @param check_ambiguity @see cmdline_parser_params.check_ambiguity
344 * @param override @see cmdline_parser_params.override
345 * @param no_free whether to free a possible previous value
346 * @param multiple_option whether this is a multiple option
347 * @param long_opt the corresponding long option
348 * @param short_opt the corresponding short option (or '-' if none)
349 * @param additional_error possible further error specification
350 */
351static
352int update_arg(void *field, char **orig_field,
353 unsigned int *field_given, unsigned int *prev_given,
354 char *value, const char *possible_values[],
355 const char *default_value,
356 cmdline_parser_arg_type arg_type,
357 int check_ambiguity, int override,
358 int no_free, int multiple_option,
359 const char *long_opt, char short_opt,
360 const char *additional_error)
361{
362 char *stop_char = 0;
363 const char *val = value;
364 int found;
365 FIX_UNUSED (field)(void) (field);
366
367 stop_char = 0;
368 found = 0;
369
370 if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given)))
371 {
372 if (short_opt != '-')
373 fprintf (stderrstderr, "%s: `--%s' (`-%c') option given more than once%s\n",
374 package_name, long_opt, short_opt,
375 (additional_error ? additional_error : ""));
376 else
377 fprintf (stderrstderr, "%s: `--%s' option given more than once%s\n",
378 package_name, long_opt,
379 (additional_error ? additional_error : ""));
380 return 1; /* failure */
381 }
382
383 FIX_UNUSED (default_value)(void) (default_value);
384
385 if (field_given && *field_given && ! override)
386 return 0;
387 if (prev_given)
388 (*prev_given)++;
389 if (field_given)
390 (*field_given)++;
391 if (possible_values)
392 val = possible_values[found];
393
394 switch(arg_type) {
395 case ARG_FLAG:
396 *((int *)field) = !*((int *)field);
397 break;
398 default:
399 break;
400 };
401
402
403 /* store the original value */
404 switch(arg_type) {
405 case ARG_NO:
406 case ARG_FLAG:
407 break;
408 default:
409 if (value && orig_field) {
410 if (no_free) {
411 *orig_field = value;
412 } else {
413 if (*orig_field)
414 free (*orig_field); /* free previous string */
415 *orig_field = gengetopt_strdup (value);
416 }
417 }
418 };
419
420 return 0; /* OK */
421}
422
423
424int
425cmdline_parser_internal (
426 int argc, char **argv, struct gengetopt_args_info *args_info,
427 struct cmdline_parser_params *params, const char *additional_error)
428{
429 int c; /* Character of the parsed option. */
430
431 int error_occurred = 0;
432 struct gengetopt_args_info local_args_info;
433
434 int override;
435 int initialize;
436 int check_required;
437 int check_ambiguity;
438
439 package_name = argv[0];
440
441 override = params->override;
442 initialize = params->initialize;
443 check_required = params->check_required;
Value stored to 'check_required' is never read
444 check_ambiguity = params->check_ambiguity;
445
446 if (initialize)
447 cmdline_parser_init (args_info);
448
449 cmdline_parser_init (&local_args_info);
450
451 optarg = 0;
452 optind = 0;
453 opterr = params->print_errors;
454 optopt = '?';
455
456 while (1)
457 {
458 int option_index = 0;
459
460 static struct option long_options[] = {
461 { "help", 0, NULL((void*)0), 'h' },
462 { "version", 0, NULL((void*)0), 'V' },
463 { "lookup", 0, NULL((void*)0), 'l' },
464 { "register", 0, NULL((void*)0), 'r' },
465 { "tr46t", 0, NULL((void*)0), 'T' },
466 { "tr46nt", 0, NULL((void*)0), 'N' },
467 { "debug", 0, NULL((void*)0), 0 },
468 { "quiet", 0, NULL((void*)0), 0 },
469 { 0, 0, 0, 0 }
470 };
471
472 c = getopt_long (argc, argv, "hVlrTN", long_options, &option_index);
473
474 if (c == -1) break; /* Exit from `while (1)' loop. */
475
476 switch (c)
477 {
478 case 'h': /* Print help and exit. */
479
480
481 if (update_arg( 0 ,
482 0 , &(args_info->help_given),
483 &(local_args_info.help_given), optarg, 0, 0, ARG_NO,
484 check_ambiguity, override, 0, 0,
485 "help", 'h',
486 additional_error))
487 goto failure;
488 cmdline_parser_free (&local_args_info);
489 return 0;
490
491 break;
492 case 'V': /* Print version and exit. */
493
494
495 if (update_arg( 0 ,
496 0 , &(args_info->version_given),
497 &(local_args_info.version_given), optarg, 0, 0, ARG_NO,
498 check_ambiguity, override, 0, 0,
499 "version", 'V',
500 additional_error))
501 goto failure;
502 cmdline_parser_free (&local_args_info);
503 return 0;
504
505 break;
506 case 'l': /* Lookup domain name (default). */
507
508
509 if (update_arg( 0 ,
510 0 , &(args_info->lookup_given),
511 &(local_args_info.lookup_given), optarg, 0, 0, ARG_NO,
512 check_ambiguity, override, 0, 0,
513 "lookup", 'l',
514 additional_error))
515 goto failure;
516
517 break;
518 case 'r': /* Register label. */
519
520
521 if (update_arg( 0 ,
522 0 , &(args_info->register_given),
523 &(local_args_info.register_given), optarg, 0, 0, ARG_NO,
524 check_ambiguity, override, 0, 0,
525 "register", 'r',
526 additional_error))
527 goto failure;
528
529 break;
530 case 'T': /* Enable TR46 transitional processing. */
531
532
533 if (update_arg((void *)&(args_info->tr46t_flag), 0, &(args_info->tr46t_given),
534 &(local_args_info.tr46t_given), optarg, 0, 0, ARG_FLAG,
535 check_ambiguity, override, 1, 0, "tr46t", 'T',
536 additional_error))
537 goto failure;
538
539 break;
540 case 'N': /* Eable TR46 non-transitional processing. */
541
542
543 if (update_arg((void *)&(args_info->tr46nt_flag), 0, &(args_info->tr46nt_given),
544 &(local_args_info.tr46nt_given), optarg, 0, 0, ARG_FLAG,
545 check_ambiguity, override, 1, 0, "tr46nt", 'N',
546 additional_error))
547 goto failure;
548
549 break;
550
551 case 0: /* Long option with no short option */
552 /* Print debugging information. */
553 if (strcmp (long_options[option_index].name, "debug")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(long_options[option_index].name) && __builtin_constant_p
("debug") && (__s1_len = __builtin_strlen (long_options
[option_index].name), __s2_len = __builtin_strlen ("debug"), (
!((size_t)(const void *)((long_options[option_index].name) + 1
) - (size_t)(const void *)(long_options[option_index].name) ==
1) || __s1_len >= 4) && (!((size_t)(const void *)
(("debug") + 1) - (size_t)(const void *)("debug") == 1) || __s2_len
>= 4)) ? __builtin_strcmp (long_options[option_index].name
, "debug") : (__builtin_constant_p (long_options[option_index
].name) && ((size_t)(const void *)((long_options[option_index
].name) + 1) - (size_t)(const void *)(long_options[option_index
].name) == 1) && (__s1_len = __builtin_strlen (long_options
[option_index].name), __s1_len < 4) ? (__builtin_constant_p
("debug") && ((size_t)(const void *)(("debug") + 1) -
(size_t)(const void *)("debug") == 1) ? __builtin_strcmp (long_options
[option_index].name, "debug") : (__extension__ ({ const unsigned
char *__s2 = (const unsigned char *) (const char *) ("debug"
); int __result = (((const unsigned char *) (const char *) (long_options
[option_index].name))[0] - __s2[0]); if (__s1_len > 0 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (long_options[option_index].name))[1] - __s2[1]); if
(__s1_len > 1 && __result == 0) { __result = (((const
unsigned char *) (const char *) (long_options[option_index].
name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (long_options
[option_index].name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
("debug") && ((size_t)(const void *)(("debug") + 1) -
(size_t)(const void *)("debug") == 1) && (__s2_len =
__builtin_strlen ("debug"), __s2_len < 4) ? (__builtin_constant_p
(long_options[option_index].name) && ((size_t)(const
void *)((long_options[option_index].name) + 1) - (size_t)(const
void *)(long_options[option_index].name) == 1) ? __builtin_strcmp
(long_options[option_index].name, "debug") : (- (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (long_options[option_index].name); int __result = ((
(const unsigned char *) (const char *) ("debug"))[0] - __s2[0
]); if (__s2_len > 0 && __result == 0) { __result =
(((const unsigned char *) (const char *) ("debug"))[1] - __s2
[1]); if (__s2_len > 1 && __result == 0) { __result
= (((const unsigned char *) (const char *) ("debug"))[2] - __s2
[2]); if (__s2_len > 2 && __result == 0) __result =
(((const unsigned char *) (const char *) ("debug"))[3] - __s2
[3]); } } __result; })))) : __builtin_strcmp (long_options[option_index
].name, "debug")))); })
== 0)
554 {
555
556
557 if (update_arg((void *)&(args_info->debug_flag), 0, &(args_info->debug_given),
558 &(local_args_info.debug_given), optarg, 0, 0, ARG_FLAG,
559 check_ambiguity, override, 1, 0, "debug", '-',
560 additional_error))
561 goto failure;
562
563 }
564 /* Silent operation. */
565 else if (strcmp (long_options[option_index].name, "quiet")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(long_options[option_index].name) && __builtin_constant_p
("quiet") && (__s1_len = __builtin_strlen (long_options
[option_index].name), __s2_len = __builtin_strlen ("quiet"), (
!((size_t)(const void *)((long_options[option_index].name) + 1
) - (size_t)(const void *)(long_options[option_index].name) ==
1) || __s1_len >= 4) && (!((size_t)(const void *)
(("quiet") + 1) - (size_t)(const void *)("quiet") == 1) || __s2_len
>= 4)) ? __builtin_strcmp (long_options[option_index].name
, "quiet") : (__builtin_constant_p (long_options[option_index
].name) && ((size_t)(const void *)((long_options[option_index
].name) + 1) - (size_t)(const void *)(long_options[option_index
].name) == 1) && (__s1_len = __builtin_strlen (long_options
[option_index].name), __s1_len < 4) ? (__builtin_constant_p
("quiet") && ((size_t)(const void *)(("quiet") + 1) -
(size_t)(const void *)("quiet") == 1) ? __builtin_strcmp (long_options
[option_index].name, "quiet") : (__extension__ ({ const unsigned
char *__s2 = (const unsigned char *) (const char *) ("quiet"
); int __result = (((const unsigned char *) (const char *) (long_options
[option_index].name))[0] - __s2[0]); if (__s1_len > 0 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (long_options[option_index].name))[1] - __s2[1]); if
(__s1_len > 1 && __result == 0) { __result = (((const
unsigned char *) (const char *) (long_options[option_index].
name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (long_options
[option_index].name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
("quiet") && ((size_t)(const void *)(("quiet") + 1) -
(size_t)(const void *)("quiet") == 1) && (__s2_len =
__builtin_strlen ("quiet"), __s2_len < 4) ? (__builtin_constant_p
(long_options[option_index].name) && ((size_t)(const
void *)((long_options[option_index].name) + 1) - (size_t)(const
void *)(long_options[option_index].name) == 1) ? __builtin_strcmp
(long_options[option_index].name, "quiet") : (- (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (long_options[option_index].name); int __result = ((
(const unsigned char *) (const char *) ("quiet"))[0] - __s2[0
]); if (__s2_len > 0 && __result == 0) { __result =
(((const unsigned char *) (const char *) ("quiet"))[1] - __s2
[1]); if (__s2_len > 1 && __result == 0) { __result
= (((const unsigned char *) (const char *) ("quiet"))[2] - __s2
[2]); if (__s2_len > 2 && __result == 0) __result =
(((const unsigned char *) (const char *) ("quiet"))[3] - __s2
[3]); } } __result; })))) : __builtin_strcmp (long_options[option_index
].name, "quiet")))); })
== 0)
566 {
567
568
569 if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given),
570 &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG,
571 check_ambiguity, override, 1, 0, "quiet", '-',
572 additional_error))
573 goto failure;
574
575 }
576
577 break;
578 case '?': /* Invalid option. */
579 /* `getopt_long' already printed an error message. */
580 goto failure;
581
582 default: /* bug: option not considered. */
583 fprintf (stderrstderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE"idn2", c, (additional_error ? additional_error : ""));
584 abort ();
585 } /* switch */
586 } /* while */
587
588
589
590
591 cmdline_parser_release (&local_args_info);
592
593 if ( error_occurred )
594 return (EXIT_FAILURE1);
595
596 if (optind < argc)
597 {
598 int i = 0 ;
599 int found_prog_name = 0;
600 /* whether program name, i.e., argv[0], is in the remaining args
601 (this may happen with some implementations of getopt,
602 but surely not with the one included by gengetopt) */
603
604 i = optind;
605 while (i < argc)
606 if (argv[i++] == argv[0]) {
607 found_prog_name = 1;
608 break;
609 }
610 i = 0;
611
612 args_info->inputs_num = argc - optind - found_prog_name;
613 args_info->inputs =
614 (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ;
615 while (optind < argc)
616 if (argv[optind++] != argv[0])
617 args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ;
618 }
619
620 return 0;
621
622failure:
623
624 cmdline_parser_release (&local_args_info);
625 return (EXIT_FAILURE1);
626}