]> git.draconx.ca Git - cdecl99.git/commit
Avoid the use of for loop declarations.
authorNick Bowler <nbowler@draconx.ca>
Thu, 30 Nov 2023 01:56:44 +0000 (20:56 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 30 Nov 2023 02:03:06 +0000 (21:03 -0500)
commit7f52c6d4be39c4d5ece844011de3581fe718b199
treee3aaf265061939af54359fc196787ffdba806099
parentc8d74af250edfd1e81c1c0c014576fa22e59c8d8
Avoid the use of for loop declarations.

This C99 syntax is now almost entirely contained to test programs;
at this point using such syntax is just an obstacle to a successful
build rather than anything useful.

It is now possible to build with gcc in C89 mode, and probably some
other pre-C99 compilers.

One annoyance is the reference code for the RNG uses such declarations.
We avoid changing the reference code and instead arrange for the test
to be skipped unless compiler support is available.
common
configure.ac
src/parse-decl.c
t/crossparse.c
t/declgen.c
t/randomdecl.c
t/rng-test.c