6909 Commits
Author SHA1 Message Date
Landon Curt Noll ff67a83ce3 Merge pull request #178 from xexyl/1988-phillipps 2023-03-27 11:17:46 -07:00
Landon Curt Noll aeeb980bbb Merge pull request #177 from xexyl/bugs 2023-03-27 11:16:25 -07:00
Cody Boone Ferguson b6afde51d6 Typo fix in 1990/scjones/README.md 2023-03-27 10:38:46 -07:00
Cody Boone Ferguson 6b0cec23d6 Fix segfault in macOS with 1989/paul
The problem was that the int * needed to be a long *. It became apparent
to me when evaluating it with lldb as I noticed a pointer was long, not
an int. This does not cause a problem with linux. I have no 32-bit
system to test but I don't believe this will be an actual problem.
2023-03-27 10:05:01 -07:00
Cody Boone Ferguson 465d4239ed Minor fixes to 1989/ovdluhe/README.md
Split judges' comments to be a to build, try and judges' comments. The
to build section already existed.

Also added ./ in front of the binary name so commands would actually
work.
2023-03-27 09:18:36 -07:00
Cody Boone Ferguson 3ae6bb1116 Fixes to 1989/jar.1/README.md 2023-03-27 09:14:13 -07:00
Cody Boone Ferguson 4085c7701a Minor update to 1988/spinellis/README.md
I don't believe one needs to enter two EOFs in order for it to function
though I could swear I encountered the issue once before.
2023-03-27 09:01:30 -07:00
Cody Boone Ferguson 6e206fc25a Add 1988/spinellis/spinellis.alt.c for clang
This was fun to do even though it's also a very simple one liner plus
special handling in the Makefile (the latter part is so you can use it
the exact same way as the original). The original code just #included
/dev/tty. This does something just as magical! It can be used like:

	make alt
	# some C code
	^D
	./spinellis

For instance:

	make alt
	#include <stdio.h>
	int main() { puts("hello world"); }
	^D
	./spinellis

Now those with clang can enjoy the entry without any functional
difference.

I have a very twisted point to make about the original version and this
version too: with a very slight change one can actually make a C++
version. Ick! :-)
2023-03-27 08:59:03 -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
Cody Boone Ferguson dc0ca04feb More improvements / updates to bugs.md
New sections and statuses.

Added some entries. I am going through all entries to find more to add
but I ended up fixing an entry which I wish to commit so the next
updates to this file will be on a different branch and most likely later
on today.
2023-03-27 07:24:39 -07:00
Cody Boone Ferguson 69f76e5404 Add general note on warnings in bugs.md
In general the compiler warnings should be ignored. Only if the entry
does not work and even then only sometimes should they be fixed.
Sometimes fixing them will introduce bugs and/or crashes. Sometimes a
fix which works correctly (see my fixes to 1986/holloway and
1998/schnitzi for two examples) will introduce new warnings which MUST
NOT be fixed. Thus a general section warning against fixing warnings
lest they cause other bugs which might or might not cause other warnings
to fix (if even possible) to make it work without warnings is something
that should be there. I also noted how although some entries in the list
do have warnings noted we will not try and keep them up to date as
different compilers and almost certainly platforms (e.g. data type
sizes) generate different warnings. Sometimes this does mean that an
entry will only work on certain platforms and some might or might not be
fixable but most likely they cannot be fixed easily and even if they can
be it almost certainly will be just as non-portable (importable ? :-) ).

I did update the list of warnings in one of the entries I fixed however.
2023-03-27 06:35:15 -07:00
Cody Boone Ferguson cab1dd3ce3 Greatly improve bugs.md
Increased header (text size) of status lines..

Make 'Status' 'STATUS'.

Added an entry (1989/paul). I am actually aware of more entries that I'm
working on (and I'm working on this one too) that do not work and/or
crash but I've not yet put in the file as I sillily (which amusingly
macOS vim dictionary does not even recognise as a word but it absolutely
is and OED will confirm it!) did not note earlier (which means I have to
go through all entries for the third or fourth time .. if not more times
for some!).

Added some statuses. Some entries can have more than one status now: the
idea is sometimes they have more than one problem OR the different
statuses are related in the entry.

Added some bold and italic in some places to make things stand out
better. The same with making some words all caps.

Add years without an IOCCC to make it easier to recognise that the year
isn't missing but because there simply was no contest that year.

Possibly other things.

Additionally I have had the thought of making a table of contents for
each status (in the list of statuses) so one can jump to the entry
they're interested in and so one can see the different entries at a
glance. There would be a problem, maybe, with entries that have more
than one status but that could be easily addressed by having it in both
statuses (having a note under one would mean we would have to
arbitrarily select which list to add to and also would make it harder to
find though maybe only slightly).
2023-03-27 05:39:52 -07:00
Landon Curt Noll 58574544da trim Makefile whitespace and fix spaces before tabs 2023-03-26 22:22:16 -07:00
Landon Curt Noll 13c55ff688 move -D args into CDEFILE in Makefile of 2015/duble 2023-03-26 22:16:04 -07:00
Landon Curt Noll 350da723cc improve architecture and Optimization comments in Makefiles 2023-03-26 22:13:13 -07:00
Landon Curt Noll 1ce40b273d fix alt rules in Makefiles
For Makefiles that have alt related rules, moved
the related rules under the alt rule section.

In some cases where there is no alt code,
removed alt rules and/or targets.
2023-03-26 21:48:48 -07:00
Landon Curt Noll 91fa6e994f fix .gitignore for 2004/kopczynski 2023-03-26 21:04:53 -07:00
Landon Curt Noll 0ddcc983ce remove old ${PROG}.orig file related rules 2023-03-26 21:03:54 -07:00
Landon Curt Noll 50385626dd remove old prog.orig file form Makefile for 1986/bright 2023-03-26 20:59:03 -07:00
Landon Curt Noll 720e619025 clean whitespace before clean rule in several Makefiles 2023-03-26 20:55:38 -07:00
Landon Curt Noll 1c35dc3b47 make everything true :-)
Add @${TRUE} as an action for the everything rule in Makefiles.
2023-03-26 20:47:04 -07:00
Landon Curt Noll e42d7484cd trim comments and update 133t hacker rulz in Makefiles 2023-03-26 20:24:16 -07:00
Landon Curt Noll 1370722ad3 fix root level Makefile 2023-03-26 20:09:58 -07:00
Landon Curt Noll 7959f25716 quote sandwich quote :-) 2023-03-26 19:01:20 -07:00
Landon Curt Noll 8920fc2a7a make make maker :-)
In some Makefiles, the maker rule was mis-spellered as just make.
2023-03-26 18:53:26 -07:00
Landon Curt Noll 57c8b23094 remove inconsistent 133t hacker rulz 2023-03-26 18:49:34 -07:00
Landon Curt Noll e03d4d4af6 make alt rule dependency consistent 2023-03-26 18:45:16 -07:00
Landon Curt Noll 88b42e40a4 make .PHONY rules consistent 2023-03-26 18:40:02 -07:00
Landon Curt Noll 3a6c99ea7d make easter_egg rule consistent 2023-03-26 18:20:30 -07:00
Landon Curt Noll 36d0d3e026 make all all rules consistent in Makefiles
The all rule in some Makefiles was inconsistent.
The all rule should depend on the data rule and
not ${DATA}.
2023-03-26 18:01:36 -07:00
Landon Curt Noll b70209f19a add missing truth to everything in Makefile for 1984/anonymous
Canonically, the everything Makefile rule as a @{TRUE} action.
2023-03-26 17:36:15 -07:00
Landon Curt Noll f2e4fcb1f7 nuke nuke and dist_clean rules
Removed the nuke and dist_clean rules that were in a few Makefiles
but that are not part of the overall set of utility Makefile rules.
2023-03-26 17:32:37 -07:00
Landon Curt Noll 7a99d04ea5 fix everything in a few things
Changed the position of the everything Makefile rule
in select Makefiles to be consistent with other makefiles.

Fixed Makefile for 1986/stein where everything was not
everything (did not depend on alt).
2023-03-26 17:25:33 -07:00
Landon Curt Noll f491172c06 Merge pull request #176 from xexyl/1992-westley
Fix segfault in 1992/westley without enough args
2023-03-26 16:59:40 -07:00
Cody Boone Ferguson d1d5289a0c Slightly improve formatting of 1992/westley
Attempt to make it more like the world like it was prior to commit
04b2b59797.
2023-03-26 15:08:33 -07:00
Cody Boone Ferguson 04b2b59797 Fix segfault in 1992/westley without enough args 2023-03-26 15:07:35 -07:00
Landon Curt Noll e529db9865 Merge pull request #175 from xexyl/2001-cheong 2023-03-26 13:08:40 -07:00
Landon Curt Noll 552f319c1f Merge pull request #174 from xexyl/1998-schnitzi 2023-03-26 13:08:16 -07:00
Landon Curt Noll 47b2794569 Merge pull request #173 from xexyl/1993-rince 2023-03-26 13:07:32 -07:00
Cody Boone Ferguson 13fb787f0e Fix segfault without arg in 2001/cheong 2023-03-26 13:07:22 -07:00
Landon Curt Noll afb7a74038 Merge pull request #172 from xexyl/1992-albert 2023-03-26 13:07:20 -07:00
Landon Curt Noll cdaf69c123 Merge pull request #171 from xexyl/1984-laman 2023-03-26 13:01:25 -07:00
Landon Curt Noll 8773bde7db Merge pull request #170 from xexyl/1985-lycklama 2023-03-26 13:00:51 -07:00
Landon Curt Noll b08a28c93b Merge pull request #169 from xexyl/1987-westley 2023-03-26 13:00:22 -07:00
Landon Curt Noll 287577f81f Merge pull request #168 from xexyl/1988-westley 2023-03-26 12:59:43 -07:00
Landon Curt Noll 2bc4f1377c Merge pull request #167 from xexyl/1988-dale 2023-03-26 12:58:37 -07:00
Landon Curt Noll ab470a9a3c Merge pull request #166 from xexyl/1990-theorem 2023-03-26 12:58:07 -07:00
Landon Curt Noll 0f56b02843 Merge pull request #165 from xexyl/1990-scjones 2023-03-26 12:57:43 -07:00
Landon Curt Noll 4b944b017a Merge pull request #164 from xexyl/1990-dds 2023-03-26 12:57:03 -07:00
Landon Curt Noll 6a9d95396a Merge pull request #163 from xexyl/2004-anonymous 2023-03-26 12:54:42 -07:00