static void print_help(void)
{
- const struct option *opt;
-
print_usage(stdout);
puts("Test that libcdecl can parse its own output.\n");
test_print_options(lopts);
enum {
MODE_CDECL,
- MODE_ENGLISH,
+ MODE_ENGLISH
};
typedef struct cdecl *parse_func(const char *);
{
int opt, mode = MODE_CDECL;
int ret = EXIT_SUCCESS;
+ int i;
const char *filename = NULL;
FILE *infile = NULL;
free(line);
fclose(infile);
} else if (argv[optind]) {
- for (int i = optind; i < argc; i++) {
+ for (i = optind; i < argc; i++) {
if (!test_crossparse(argv[i], mode))
ret = EXIT_FAILURE;
}