/*
* Generate random C declarations for testing.
- * Copyright © 2012, 2020, 2022 Nick Bowler
+ * Copyright © 2012, 2020, 2022-2023 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
int main(int argc, char **argv)
{
const char *seed = "", *count_str = NULL;
+ unsigned long i, count = 0;
+ int opt, mode = MODE_CDECL;
struct test_rng *rng;
struct cdecl *decl;
- unsigned long count = 0;
- int opt, mode = MODE_CDECL;
if (argc > 0)
progname = argv[0];
if (!rng)
return EXIT_FAILURE;
- for (unsigned long i = 0; !count || i < count; i++) {
+ for (i = 0; !count || i < count; i++) {
decl = random_decl(rng);
if (mode == MODE_ENGLISH) {