351 Commits
Author SHA1 Message Date
Cody Boone Ferguson 55798ccbe6 Simplify macOS fix to 1984/anonymous
It turns out I did not need to add a prototype to read() prior to
main(); all that needed to be done is to specify the args (specifically
the buffer, a void *, in the function (when defining it).

Shortened it a bit by use of implicit ints where allowed.
2023-05-07 04:28:58 -07:00
Cody Boone Ferguson e96963f911 Minor fixes to 1984/mullender/README.md 2023-04-30 04:39:18 -07:00
Cody Boone Ferguson ec093fb4c9 Slightly reword 1984/README.md for clarity 2023-04-30 04:35:38 -07:00
Cody Boone Ferguson ae4174b558 Fix year link in 1984/README.md
I had linked to /1984 but it seems better to link to /years.html#1984.
2023-04-30 04:32:22 -07:00
Cody Boone Ferguson f972015d73 Format fix 1984/README.md 2023-04-30 04:21:13 -07:00
Cody Boone Ferguson 3f2b5097e9 Fixes in 1984/decot
Updated fixes in README in a better order (not chronological but in a
way that shows how it shows that I fixed it to not require
-traditional-cpp and also fixed the type of args in main() that clang
enforces). The fix by Yusuke Endoh which only let it compile with gcc
(with -traditional-cpp) is below that. To the cynics: this is not
because I want my fix at the top but rather that my fixes make it more
portable which makes it easier to use. With my fix the other one is not
technically even needed but I want to give thanks anyway as he
contributed to it (albeit without knowing about it yet).

Fixed make alt rule so that it uses -traditional-cpp as it needs it.
This code will not work with clang because it doesn't support that
option and it has the type of main() args issue. That means it won't
work with macOS default compiler even gcc.
2023-04-27 03:41:31 -07:00
Cody Boone Ferguson c06ed3ca2e Minor updates to 1984/README.md
Format fix and add link. It's not complete or decided yet if any other
references should be updated to links (assuming they can even be found).
2023-04-14 06:36:01 -07:00
Cody Boone Ferguson 8d06e51e7e Fixes in 1984 winning entries' README.md files
Formatting and possibly typos.
2023-04-14 06:14:15 -07:00
Cody Boone Ferguson 4bbbb429f4 Minor rewording in 1984/laman/Makefile for no arg 2023-04-10 12:15:10 -07:00
Cody Boone Ferguson 8eedf36930 Add note about likely crash in 1984/laman 2023-04-10 12:13:54 -07:00
Cody Boone Ferguson 4bf3f302cb 'comments' -> 'remarks' in all README.md files
As in

    sgit -e 's/\([Aa]uthor.*\)comments/\1remarks/g' -e 's/\([Jj]udge.*\)comments/\1remarks/g' '*README.md'
2023-04-10 11:01:39 -07:00
Cody Boone Ferguson ec111eb6b2 Undo segfault fix in 1984/laman w/o arg
As part of redefining INABIAF this is necessary. The README.md and
Makefile both warn about the crash.
2023-04-07 10:15:16 -07:00
Cody Boone Ferguson 50c33d7155 Minor fix to 1984/decot/README.md 2023-04-04 12:47:57 -07:00
Cody Boone Ferguson f444622706 Fix 1984/anonymous for macOS (clang?)
This one was also fun. By chance I noticed the '{' next to the read()
function. Easy enough to miss when very tired. Anyway I had to prototype
that function as 'int read(int, void *, int)' and then in that function,
in the call to write(2), cast 'i' (which is the void *) to int. This
fixes the problem and now it works with macOS and linux.

Removed this entry from bugs.md.
2023-04-04 06:38:42 -07:00
Cody Boone Ferguson 606e01cb78 Fix 1984/decot to not require -traditional-cpp
This was fun to fix. What prompted me to do so is that I noticed that
the patch from Yusuke Endoh actually doesn't work in fedora linux. It never
worked with clang as it required -traditional-cpp and also had
non-standard second and third args type to main (not a char ** but
implicit int). No more. This entry now works with both linux and macOS!

I was able to remove all the macros as they were problematic and not
needed. The code that used them was updated to be what was necessary.

Add to Makefile inclusion of stdio.h and math.h (printf, floor).
Some systems require -lm so that was also added to the Makefile.

Very little else was required to make it work.

The decot.alt.c is the version patched by Yusuke but fixed by me to
compile with fedora's gcc.

Removed this entry from bugs.md.
2023-04-04 06:11:38 -07:00
Cody Boone Ferguson e09f677b37 Mass typo fix (all README.md and Makefiles)
As in

    sgit -e 's/the terms this license/the terms of this license/g' '*/Makefile' '*/README.md'
2023-04-02 09:27:13 -07:00
Cody Boone Ferguson e805f41d34 Mass fixes to headers in README.md files
There were many many README.md files with the wrong heading level for
different sections. These have been changed.

To help go through the changes it should be noted I used sgit and also
here is what is changed:

The 'Try', 'To build' and 'To run' lines have two '#'s. Some had one and
others had three.

An exception is that in 1984/anonymous/README.md for the alternative
code that had three '#'s. This is not consistent yet and it might be
that only two are desired. But for now that one at least has three.
2023-03-31 06:43:59 -07:00
Cody Boone Ferguson 4b3701026c Add famous 1984 anonymous tattoo image!
I located the famous tattoo and it is now in the repo and shown in the
README.md!
2023-03-31 06:01:11 -07:00
Cody Boone Ferguson 5bdc4bba6f Add author comments to 1984/anonymous
Some years after the entry was published the judges asked them if they
wished to remain anonymous. They said yes but added that they are well
known for their there connection to the C language.

I fixed at the same time the typo that was in this quote as it seemed
that it's better to be clear than to keep a quote exactly as is
especially as it might have not been a copy paste in the first place.
2023-03-31 04:58:43 -07:00
Cody Boone Ferguson c2472c3eab Improve 1984/mullender alt code
Now you can specify the number of microseconds to sleep in between
writes! This makes it easier to experiment with different speeds as well
as solve any problems if your CPU is too slow or too fast

BTW: is there such a thing as too fast a CPU ? :-) actually yes for
certain code which is probably not as uncommon as you think :-) ).
2023-03-31 04:55:03 -07:00
Cody Boone Ferguson ef2828e9c1 Add alternative code for 1984/mullender for all!
Now anyone can enjoy 1984/mullender! This was a slight change to code
originally suggested in the faq (which was also updated, see below) made
for modern systems (since CPUs are much faster nowadays the duration for
usleep was much too long so one could not really enjoy the entry).

Updated bugs.md to remove this entry from the bugs.md file.

Also updated faq.md with another item. Unfortunately I had already added
another entry to faq.md and had failed to commit it before doing this
change (and adding it to the faq): how to get X11 entries (or actually
any X11 application) to work in macOS Mountain Lion and beyond. This is
why that faq entry is on this branch. It was not intended but it felt
like this change should be on its own branch / in a separate pull
request. I did not want to temporarily modify faq.md simply for this. I
have more changes to faq.md to make but that'll be on another branch so
that I have these changes there as well.
2023-03-31 04:06:10 -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 350da723cc improve architecture and Optimization comments in Makefiles 2023-03-26 22:13:13 -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 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
Cody Boone Ferguson 860cffbdad Fix segfault in 1984/laman without an arg 2023-03-26 11:13:20 -07:00
Landon Curt Noll 1b1dd2f2e4 put all README.md files under CC BY-SA 4.0 License
This will make is easier for others to share README.md
files while requiring them to attribute the file
when using it.
2023-03-26 02:58:27 -07:00
Landon Curt Noll ea1806abdb change Makefiles to look under X11_INCDIR and X11_INCDIR/X11 2023-03-26 02:22:49 -07:00
Landon Curt Noll 5fc2d72dd1 change use of ${HOMEBREW_PREFIX} with ${SDL2_CONFIG} 2023-03-26 02:19:18 -07:00
Landon Curt Noll 8cd2aa85c1 clean up and improve end of Makefile rules 2023-03-26 02:02:31 -07:00
Landon Curt Noll d04e6d8f03 remove X11_LIBDIR and X11_INCDIR setting from Makefiles
The X11_LIBDIR and X11_INCDIR values are now set in the
top level `var.mk` file.
2023-03-26 00:50:47 -07:00
Landon Curt Noll bbd18a20df improve Makefile headers
Simply the Makefile header.

Refer to the //www.ioccc.org/bugs.md URL (that will eventually exist).

Now using CC BY-SA 4.0 License to how you may share and adapt the
Makefile.
2023-03-25 23:51:14 -07:00
Landon Curt Noll 9e1b0ac82f fix common tool locations header lines in some Makefiles 2023-03-25 22:31:02 -07:00
Cody Boone Ferguson 2ce08b66b4 More updates to bugs.md + related files
Some entries were added to the bugs.md file.

As well some README.md files were updated wrt the bugs some of which
might have been better in an earlier commit.
2023-03-19 08:51:06 -07:00
Cody Boone Ferguson 3573d032eb Finish thank you to Yusuke in 1984/decot/README.md
I had accidentally left out a thank you after acknowledging his patch.
2023-03-19 08:28:34 -07:00
Cody Boone Ferguson fa682003eb Fix typos, formatting and thank yous (add links)
In some files changed the formatting was fixed to be a proper markdown
file.

There were some typos including that some README.md files that linked to
/winners.html#Cody_Boone_Ferguson actually linked to the non-existent
file /years which obviously would not work.

I also added links to the rest of the places I have fixed entries (but
see below) and I did the same for Yusuke Endoh's fixes.

As well apparently one entry I thought he fixed to compile under modern
systems does not seem to so that entry will have to be revisited another
time. That entry was 1993/jonth.

Those are the main changes here if not all of them.
2023-03-18 05:16:31 -07:00
Cody Boone Ferguson 15ce0dc933 Add author comments for 1984/mullender
By a happy chance I found an article that has some words about the entry
from Mullender. See the README.md for the link to that article. We thank
the author of the article for this information!
2023-03-14 09:15:40 -07:00
Cody Boone Ferguson 564a25e0e7 More README.md files updated
Some of the files modified include some of the files modified yesterday;
others were not modified yesterday. I backtracked as I noticed some
sections are missing in earlier README.md files. However more have to be
checked in earlier years. I'm committing now as I have to do other
things and am likely done for the day.
2023-03-14 08:35:01 -07:00
Cody Boone Ferguson 4db6c8994b Many README.md fixes and some Makefile fixes
The years 1984, 1985 and 1986 have had all winning entry README.md files
updated. This includes formatting, adding author's comments (which in
these years means nothing but still have the section there to indicate
that there were no comments) and possibly other things.

I have updated some - not all - of the 1987 winning entry README.md
files. I have to do other things now but I want these committed. I will
work on the other README.md files another time.
2023-03-13 10:11:02 -07:00