]> git.draconx.ca Git - cdecl99.git/commitdiff
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)
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.


No differences found