Subject: Fanciness!
Author:
Posted on: 2017-12-15 19:37:00 UTC
So, thought about it. And then I said, "no. I won't do it. #define-generated functions are way too complicated a direction to go, it's a bad idea."
...So 15 minutes later, I'm reading the docs for preprocessor macros...
I also changed some other things: `long int` is `long` now (as per... C99, I think?), some things got put in functions, and `initgens` got inlined at its one callsite, as did `comparegens`.
The result is much shorter, and (arguably) cleaner. Although the inlining may be questionable: https://pastebin.com/B4Ttjvn4
...So then, I figured, what the hell, let's golf it.
Every line in the following as 80 chars or less. Really. I swear. It follows basically the same logic as the other version, just with no affordances for readability: https://pastebin.com/kWqsbuKe
I am a monster...