6 Commits
Author SHA1 Message Date
Cody Boone Ferguson 16bcb2aaa7 Improve my fix to 1988/phillipps
The return in main() to pain() can be negated just like main() did to
itself (and now pain() does). Now the program exits with 0.
2023-10-18 12:17:38 -07:00
Cody Boone Ferguson b400fc22fb Improve slightly my fix to 1988/phillipps
As main() used K&R style I changed main() to use K&R. The function that
it became (to fix it), pain(), already has the same exact format of what
main() once was only named painfully. Since main() also had the function
on many lines, even just the return statement in the beginning, I did
this in main() but given that main() only calls pain() obviously this is
not perfect. This has been documented in the thanks file like for all
the other improvements, to keep track of it.

Format/typo check README.md.
2023-10-18 09:03:04 -07:00
Cody Boone Ferguson 4594e02036 Slight fix in 1988/phillipps
Previously the call in main() returned a recursive call to main() (with
!) but the function that this became was called by main() but main() did
not return it. Now it does.

As well I changed the formatting ever so slightly of main(), making it
one line instead of three (counting the { and }).
2023-03-28 02:55:31 -07:00
Cody Boone Ferguson ee249da4ea Fix 1988/phillipps for modern systems
The type of the second and third arg of main() were not char ** which
caused clang to have a fit. In gcc this is not a problem but it printed
gibberish nonetheless.

Changing the type of the second and third arg to compile with clang and
it printed the same (or similar?) gibberish as it did with gcc.

Adding a new function (pain() as it's annoying that clang requires
second, third and fourth args to main() to be 'char **'s even though in
this case it didn't work anyway) and calling it from main with the
appropriate args fixes the problem.
2023-03-27 07:26:25 -07:00
Landon Curt Noll 9194e0fa4d fix of 1988/phillipps/phillipps.c to compile on modern C compilers 2023-02-21 17:18:13 -08:00
Landon Curt Noll 32b6204044 restore missing 1988/phillipps/phillipps.c 2023-02-21 17:08:33 -08:00