4 Commits
Author SHA1 Message Date
Cody Boone Ferguson c19a19923f Improve my fixes to 2000/natori
When Landon initially tried getting it to work he ended up making the
include files in the Makefile (-include ...) to restore it to be a
one-liner but this was actually an error as it was not a one-liner but
rather a best small program; the original code has the #includes in the
source file.

At the same time I made the code itself one-line as it was indeed one
line (the source of the problem, of course).

Now the fixed code (segfaulted with gcc, failed to compile with clang),
both original and alt version (southern hemisphere: based on the
author's remarks but with my fixes applied) that I added, looks more
like the original.
2023-10-16 05:32:46 -07:00
Cody Boone Ferguson 20849dd0d5 Fix 2000/natori
With clang it did not compile at all; with gcc it segfaulted. Now it
works properly. It's a crescent moon today and that's exactly what is
being shown. This required another function but since it wasn't a
one-liner this doesn't cause any problems with the award either.
2023-03-20 09:23:09 -07:00
Landon Curt Noll 6f14abe4aa fix Makefile and README.md for 2000/natori
There was an attempt to get natori.c to compile.
We moved the 2 includes to the compile line
restoring the code as a 1-liner.

We forced the types of args iun main to conform to
bogons introduced by the ANSI-C committee.

Nevertheless, the code still fails to compile:

    assignment to cast is illegal, lvalue casts are not supported

This will be a TODO fix for later.
2023-03-15 12:32:32 -07:00
Landon Curt Noll d2a42f42e8 Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries
in a single directory to each winner being in their own sub-directory
under the given year directory.
2022-09-18 23:37:49 -07:00