6909 Commits
Author SHA1 Message Date
Cody Boone Ferguson ecaa022948 Remove alt target from TARGETS in 1998/schweikh2
This is because it doesn't compile in all systems though it is supposed
to I think.
2023-03-18 04:49:30 -07:00
Cody Boone Ferguson 9dadc58737 Make 2000/primenum more portable
This was done by making main() return type int not void.
2023-03-18 04:47:53 -07:00
Landon Curt Noll 83ff856bc9 fix Makefile README.md for 2001/herrmann2 2023-03-17 15:20:06 -07:00
Landon Curt Noll bad0cd868f fix Makefile, README.md and bash script for 2001/herrmann1 2023-03-17 15:11:42 -07:00
Landon Curt Noll 7621291e2f fix Makefile and README.md for 2001/dgbeards 2023-03-17 15:04:17 -07:00
Landon Curt Noll 5ec473f7e9 fix Makefile and READMD.md for 2001/ctk 2023-03-17 14:59:58 -07:00
Landon Curt Noll e64580a245 fix Makefile and README.md for 2001/coupard 2023-03-17 14:56:39 -07:00
Landon Curt Noll 38d4092abe fix Makefile and README.md for 2001/cheong 2023-03-17 14:51:55 -07:00
Landon Curt Noll b006b7a79c fix Makefile and README.md for 2001/bellard 2023-03-17 14:47:33 -07:00
Landon Curt Noll 93aa8d79f2 fix Makefile and README.md for 2001/anonymous
Attempt to address the problem of main type and args.
2023-03-17 14:36:23 -07:00
Landon Curt Noll 8c1bdd4e23 Merge pull request #78 from xexyl/1991-brnstnd 2023-03-17 13:33:19 -07:00
Landon Curt Noll c9c082923a Merge pull request #77 from xexyl/thadgavin 2023-03-17 13:32:38 -07:00
Landon Curt Noll 998074623e Merge pull request #76 from xexyl/1996-gandalf 2023-03-17 13:31:44 -07:00
Cody Boone Ferguson 6bbbd8bea9 Remove space added in brnstnd.c
When changing the macro use to the literal /= I added a space or two. I
did not do this with the other places this macro was used but it feels
like it should be as close to the original formatting as possible.
2023-03-17 12:46:36 -07:00
Cody Boone Ferguson 5a6d5ba067 Fix 1999/brnstnd
This was a fun one to fix. There were two invalid operands to binary
expression errors to fix which was resolved with the comma operator.
More fun was dealing with a C pre-processor change. The macro C was used
like e/C to do e/=G but this is no longer allowed. The solution was to
not use the C macro and instead just do the /= etc.
2023-03-17 12:44:30 -07:00
Cody Boone Ferguson b2c377ab37 Get 2000/thadgavin to compile under linux
In this case fedora but presumably other linux distributions as well.
Specifically some systems need -lm for linking.
2023-03-17 11:55:27 -07:00
Cody Boone Ferguson fd809c23f2 Fix 1996/gandalf
As I love the theme and layout I kept the code that can no longer
compile in just commented out.

Fun fact: did you know that the original name of Gandalf was Bladorthin?
He was not the only character who originally had different names in The
Hobbit. In fact the original name of Thorin was Gandalf! (... I know the
former is true and I'm almost certain the latter is true but it's been a
long time since I've read it in The History of the Hobbit).
2023-03-17 11:38:05 -07:00
Landon Curt Noll f1892806ad Merge pull request #75 from xexyl/1992-westley
Fix 1992/westley to compile with clang
2023-03-17 11:15:35 -07:00
Landon Curt Noll a23d7d6e47 Merge pull request #74 from xexyl/sgit-fix
Bug fix sgit iteration over globs
2023-03-17 11:15:08 -07:00
Cody Boone Ferguson 9ac70905d3 Fix 1992/westley to compile with clang
Since the third and fourth args of main() were being used as ints I have
made them ints inside main() as clang does not allow the second, third
or fourth args to main() to be anything but char **. An important note
(which the author noted but which I put in the Makefile as well as under
the 'To run:' section) is that the terminal must wrap at 80 columns in
order for this to work right. I had to shrink down the terminal size to
get to show that this change worked okay - it was the simplest way I
could think of to do it.
2023-03-17 11:12:45 -07:00
Landon Curt Noll ada4d41f37 Merge pull request #73 from xexyl/fix-author-handle-fixes
Fix author handle fixes - roll back ad04d2
2023-03-17 11:05:33 -07:00
Landon Curt Noll 6d65098e3f Merge pull request #72 from xexyl/readmes
Various README.md files updated
2023-03-17 11:04:39 -07:00
Landon Curt Noll 494550225c Merge pull request #71 from xexyl/1991-westley
Fix in 1991/westley/ttt.sh
2023-03-17 11:03:57 -07:00
Landon Curt Noll 37c48a4363 Merge pull request #70 from xexyl/1989-westley
Get 1989/westley to compile with clang
2023-03-17 10:49:16 -07:00
Cody Boone Ferguson 378e4d61fb Bug fix sgit
It did not iterate over all globs because the condition of the loop was

    while [[ "$i" -le "$#" ]]; do

but in the loop i was incremented but the num args left was decremented
thus they went in opposite orders. Instead record how many globs are
there first and check i against that.
2023-03-17 10:04:12 -07:00
Cody Boone Ferguson 750255aded Roll back ad04d21fda
As was discussed with Landon this was a mistake even if it helped with
consistency. There was even a brilliant pun that was destroyed with that
commit which I think is worth pointing out:

    cp README.md hill
    ./ant hill

in 1991/ant ... even if it's technically 'anthill'.

I hope that I got all links fixed in years.html and winners.html. As
well I tried to make sure I got all handles fixed in all/summary.txt.
Nevertheless these should be checked. For some handles they were never
updated (at least in the html files - though maybe summary.txt too, not
sure) in the first place so there was nothing to do.

Typo fixes like references to *.hint when it should be README.md. There
probably are others that need to be fixed but haven't been located yet.
2023-03-17 08:27:55 -07:00
Cody Boone Ferguson d4ef163cc4 Various README.md files updated
Mostly formatting fixes but some typos were fixed as well. This commit
is being made now so I can roll back
ad04d21fda as it seems to have been a
mistake to do. Another way to more easily identify same authors will
have to be figured out, perhaps in future files that are yet to be
generated. This upcoming commit will hopefully not cause any problems
but if there are any they will be worked out.

Landon and I both came to the same conclusion that although the renaming
directories seemed to have been warranted in theory they shouldn't have
been renamed after all. This was briefly discussed in issue #3. Anyway
this is why different years are in this commit: to get them out of the
way and since they're only README.md files this seems okay to do.
2023-03-17 07:17:10 -07:00
Cody Boone Ferguson dbbdedd30b Fix in 1991/westley/ttt.sh
Don't assume '.' is in the path.

I note that at least under macOS this game does not work. I'll be
looking at the entries of this year at another time. I just need this
commit in to make some other changes unrelated.

The README.md was also updated - formatting fixes to turn it into a
markdown file proper.
2023-03-17 07:13:34 -07:00
Cody Boone Ferguson 892b94c5a6 Get 1989/westley to compile with clang
Some important notes here should be made. First of all with clang the
recommended commands in the README.md (which was also formatted and typo
fixed) will seemingly generate the correct files but still only
westley.c and ver0.c will compile with clang. With gcc they do compile
and seem to work as expected.

However I found a bug in the original code too where ver2 will sometimes
segfault. This also goes for the fix (again when compiled with gcc).

I did get ver[123].c to also compile but this seemed to cause invalid
output in some of the commands. That being said it might (though I don't
think so at this time) have been not knowing exactly what should be
displayed. Maybe I will look at it in the future but at least it now
works with clang even if not all of the generated files will compile
that way. Still macOS users can now take a look at the different output
of the program which seems good to me (it does not even have to be
source code that is output).

These things have been noted in the README.md as well.
2023-03-17 06:55:06 -07:00
Landon Curt Noll 45fd90259b Merge pull request #69 from xexyl/1989
Minor updates to 1989 files
2023-03-16 12:32:48 -07:00
Landon Curt Noll 59719d29bc Merge pull request #68 from xexyl/1988
1988/dale requires -traditional-cpp to compile
2023-03-16 12:31:20 -07:00
Landon Curt Noll 28970a0434 Merge pull request #67 from xexyl/1987 2023-03-16 10:53:18 -07:00
Landon Curt Noll d285c9f241 Merge pull request #66 from xexyl/1986 2023-03-16 10:43:26 -07:00
Landon Curt Noll 9074e729ec Merge pull request #65 from xexyl/1985 2023-03-16 10:42:33 -07:00
Landon Curt Noll 425d110bf8 Merge pull request #64 from xexyl/1990 2023-03-16 10:41:54 -07:00
Landon Curt Noll e2fa906e2f Merge pull request #63 from xexyl/winners 2023-03-16 10:41:08 -07:00
Landon Curt Noll 358dbf1926 Merge pull request #62 from xexyl/tetris 2023-03-16 10:40:09 -07:00
Cody Boone Ferguson d0177f7172 Minor updates to 1989 files
Mostly this involves README.md files in some entries but the
1989/robinson/Makefile was updated. Force -include option in CINCLUDE
variable not CDEFINE.
2023-03-16 10:25:16 -07:00
Cody Boone Ferguson e08059faaa 1988/dale requires -traditional-cpp to compile
Thus one can now enjoy it as long as they have a compiler that supports
it. Unfortunately clang does not but gcc does.
2023-03-16 10:22:51 -07:00
Cody Boone Ferguson 9cf605973f Minor changes to 1987
Typo fix in 1987/biggar/README.md.

Add another try in 1987/wall/README.md with a question to ponder.
2023-03-16 10:20:34 -07:00
Cody Boone Ferguson 75b8931fdc Minor clarification to 1986/holloway/README.md 2023-03-16 10:19:24 -07:00
Cody Boone Ferguson 0956c5445a Minor fixes in 1985
The README.md referred to Obfuscated C Code Contest but at this point it
was the International Obfuscated C Code Contest.

Add ALT_{OBJ,TARGET} to 1985/shapiro/Makefile as the alt source code
file was there.
2023-03-16 10:17:23 -07:00
Cody Boone Ferguson 3019afc432 Minor updates to 1990
Add thank you note to Cody in some README.md files, remove the warning
that 1990/westley/westley.c might not compile with modern compilers
(since I fixed it) and reworded a statement slightly. Yes I'm thanking
myself but it's actually from the judges.
2023-03-16 10:12:25 -07:00
Cody Boone Ferguson 90f5854290 Link fixes in winners.html
After renaming some of the winner directories to be the winner surname
the winners.html was not updated in every case (particularly for Howe).
2023-03-16 08:54:12 -07:00
Cody Boone Ferguson 0f798012d5 Minor fixes to 1989/tromp - now compiles cleanly
Now compiles without any warnings triggered (though it has some -Wno- at
the compiler). Some of the -Wno- options were removed from the Makefile
as they are no longer needed. I did not check all the ones that are
remaining but some are certainly needed (including some I tested).

Also force use of -include stdio.h -include unistd.h -include stdlib.h
by minor change to Makefile. The last one, -include stdlib.h, was newly
added.
2023-03-16 03:50:02 -07:00
Landon Curt Noll 790433a856 Merge pull request #61 from xexyl/tetris
High score file and other bug fixes in 1989/tromp
2023-03-15 14:29:41 -07:00
Landon Curt Noll 6c557c48bd fix 2000 year Makefile 2023-03-15 14:24:35 -07:00
Landon Curt Noll 451043464f fix Makefile and README.md for 2000/tomx 2023-03-15 14:23:33 -07:00
Landon Curt Noll c1f33ae741 fix Makefile and README.md for 2000/thadgavin 2023-03-15 14:19:09 -07:00
Landon Curt Noll 1717b46c94 fix Makefile and README.md for 2000/schneiderwent
NOTE: This program does not compile.
2023-03-15 14:15:10 -07:00