6909 Commits
Author SHA1 Message Date
Landon Curt Noll c8a146ca99 Merge pull request #162 from xexyl/1998-schweikh1 2023-03-26 12:53:43 -07:00
Landon Curt Noll c8ce3faae6 Merge pull request #161 from xexyl/1998-df 2023-03-26 12:52:57 -07:00
Landon Curt Noll 829d00af9d Merge pull request #160 from xexyl/2015-howe 2023-03-26 12:52:39 -07:00
Landon Curt Noll 997a66a34a Merge pull request #159 from xexyl/2015-endoh4 2023-03-26 12:52:14 -07:00
Landon Curt Noll cd4ea1ab48 Merge pull request #158 from xexyl/2015-hou 2023-03-26 12:51:55 -07:00
Cody Boone Ferguson 1071baceba Fix another segfault in 1998/schnitzi
If no arg was given to the program it would segfault also. Now it is
effectively a no-op.
2023-03-26 12:39:25 -07:00
Cody Boone Ferguson 8ac5a8f823 Add missing thank you in 1993/rince/README.md 2023-03-26 12:13:13 -07:00
Cody Boone Ferguson 0651f9d9a8 Change albert.fix.c to albert.alt.c in 1992/albert
That is in the README.md file it still referred to the old name.
2023-03-26 11:42:22 -07:00
Cody Boone Ferguson 860cffbdad Fix segfault in 1984/laman without an arg 2023-03-26 11:13:20 -07:00
Cody Boone Ferguson 0e2a09de93 Add thank you to 1985/lycklama
Another one of the entries I fixed but this was before I started putting
my name in (as it had not yet been suggested to me).
2023-03-26 10:55:58 -07:00
Cody Boone Ferguson 28075934ea Minor updates to 1987/westley/README.md
Note the issue that I fixed for the curious.
2023-03-26 10:32:43 -07:00
Cody Boone Ferguson fcdc76e1dd Typo in 1988/westley/README.md 2023-03-26 10:27:44 -07:00
Cody Boone Ferguson a4218e673d Add thank you in 1988/dale/README.md 2023-03-26 09:24:07 -07:00
Cody Boone Ferguson 604a429da7 Typo fix in 1990/theorem 2023-03-26 08:50:37 -07:00
Cody Boone Ferguson bcb905e3f0 Minor update to 1990/scjones/README.md 2023-03-26 08:48:47 -07:00
Cody Boone Ferguson ce6af463e3 Fix segfault in 1990/dds
In all versions the program would segfault if the file could not be
opened as it would write/close the NULL FILE *. Now it doesn't act on
the file unless f != NULL. If it is it just does the usual of writing
'Ok' to stdout.
2023-03-26 08:44:29 -07:00
Cody Boone Ferguson 5873c7cedc Fix fix on 1990/dds + make it use fgets()
The Makefile had -include stdio.h which made it fail to compile under
macOS (mismatch type of fopen()). I removed the prototype in the code.

I also made it use fgets() instead of gets() to make it safer.
2023-03-26 08:40:32 -07:00
Cody Boone Ferguson 655815769b Update 2004/anonymous/.gitignore
Add image file generated by suggested command.
2023-03-26 06:50:57 -07:00
Cody Boone Ferguson 4b3afbf4c1 Fix 1998/schweikh1/README.md
I had updated it after a commit and thought I did a commit -v --amend
but apparently I did not (or I missed the README.md though I thought I
did '.'). Thus the README.md was not as it should be.
2023-03-26 06:43:01 -07:00
Cody Boone Ferguson cb02b4da5f Fix 1998/schweikh1 and add alt code for macOS
This was a fun one to figure out and fix!

The original code did not work; there were several things wrong with it
as below. The macOS version was even more complicated but also fun and
also described below.

The problem with the original was a bad call to freopen() where the arg
parameter was actually 5+__FILE__ when it should be "r" (though of
course it used to work fine). A call to fopen() had a similar mode:
44+__FILE__ though this actually did not seem to affect the output. But
it didn't work with macOS at all. The following is some of what I put in
the README.md so that one can see here too what was wrong. Spoilers for
the original entry (at least some spoilers) are here!

For this alternative version you will need the command line tools which
you can install like:

```sh
sudo xcode-select --install
```

This how it works: if you look at line 55 you see a funny command.
This goes for both versions. Now the key are two magic numbers, one on a
different line shortly below the string. In the original the numbers are,
respectively, 44 and 46.  But how does this work? Well the string is:

	"0gcc -ansi -E -dM -undef %s /usr/include/%s>r\0 ("

The first number means: the length starting from 0 up through the `>`. The
second number is the same starting point but up through the `\0` which is why
it's +2. Somehow it was basic intuition that made me figure out these
two numbers and a quick test confirmed it. But what happens if only the
first number is updated? Most of the output will be just `#define` by
itself; in the cases where there was text after that it was macros that
certainly were not defined. There might have been other errors as well.

This allows for opening the right files. The problem with the macOS is
/usr/include does not exist: instead it's
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include which is
why the different command line and the different numbers.
2023-03-26 06:29:52 -07:00
Cody Boone Ferguson fa02fba4e3 Minor fix in 1998/df/README.md
It said that the program will fail if the program's name's second letter
isn't r but this restriction was removed for publication so I changed it
to past tense.
2023-03-26 04:38:19 -07:00
Cody Boone Ferguson 95be31fb9a Update 2015/howe/.gitignore
The make test rule ends up creating quite a few temporary files so I
have added them to the .gitignore. Perhaps I should add just *.tmp but I
added the globs individually instead.
2023-03-26 04:34:20 -07:00
Cody Boone Ferguson e50ddfb3d9 Add alt target to 2015/endoh4/Makefile 2023-03-26 04:31:12 -07:00
Cody Boone Ferguson 55447dcc11 Fix Makefile missing separator in 2015/hou
As in there were spaces instead of tabs.
2023-03-26 04:29:10 -07:00
Landon Curt Noll 9807f98aef remove reference to site mirroring 2023-03-26 03:28:27 -07:00
Landon Curt Noll 0ec6c2aec1 update LICENSE to CC BY-SA 4.0
Change LICENSE file to match CC BY-SA 4.0 text.

The text of this file is from:

https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
2023-03-26 03:08:56 -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 a1e4b376e9 improve instructions for entries that use SDL or SDL2
Add instructions on how to install SDL or SDL2 for macOS, Linux and
Debian for:

    2005/jetro
    2014/maffiodo1
    2018/giles

Put variables and instructions into the top level `var.mk` file.
2023-03-26 00:40:03 -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
Landon Curt Noll 4d4249cea6 fix Makefile header for 2018/endoh2 2023-03-25 21:52:16 -07:00
Landon Curt Noll bf3863a29c fix Makefile header for 2018/bellard 2023-03-25 21:50:40 -07:00
Landon Curt Noll adee0af2e1 fix Makefile header for 2018/algmyr 2023-03-25 21:49:21 -07:00
Landon Curt Noll a7d6f73094 fix Makefile header for 2006/sykes1 2023-03-25 21:46:42 -07:00
Landon Curt Noll bed0d099f0 Merge pull request #157 from xexyl/2015-readmes 2023-03-25 13:02:15 -07:00
Landon Curt Noll 44a44c1f4f Merge pull request #156 from xexyl/1989-jar-2 2023-03-25 13:01:28 -07:00
Landon Curt Noll 7b37df5e0d Merge pull request #155 from xexyl/2015-burton 2023-03-25 12:58:42 -07:00
Landon Curt Noll b3971e32b7 Merge pull request #154 from xexyl/gitignore 2023-03-25 12:57:22 -07:00
Landon Curt Noll e579432948 Merge pull request #153 from xexyl/2006-sykes1 2023-03-25 12:56:42 -07:00
Landon Curt Noll e39b5a63c2 Merge pull request #152 from xexyl/2012-tromp 2023-03-25 12:55:46 -07:00
Landon Curt Noll ba08ab5986 Merge pull request #151 from xexyl/readmes 2023-03-25 12:55:04 -07:00
Landon Curt Noll 7791d31354 Merge pull request #150 from xexyl/2001-bellard 2023-03-25 12:54:12 -07:00
Cody Boone Ferguson 35fb326b37 More README.md files updated in 2015/
Fix formatting.

Spelling / typo errors fixed.

Possibly other changes as well.

I still have to check 2015/muth and 2015/schweikhardt and 2015/yang.
2023-03-25 12:02:26 -07:00
Cody Boone Ferguson a23d24f803 Fix 2015/endoh3/README.md
Fix dead link. Apout is no longer available at the location in the
README.md. Instead it's on GitHub. I checked it and it's the same
author, Warren Toomey of TUHS so I know it's good (or at least the
program is: not sure if the repo is owned by him).

Format fixes.

Fix ioccc.org link (though it shouldn't be necessary since mullender.c
is actually in the repo).
2023-03-25 11:34:43 -07:00
Cody Boone Ferguson a504951688 Update several of the files from 2015
With all README.md files I changed the copyright years to refer not to
2016 but 2015 as the year was 2015 and 2016 did not even have a contest.

I fixed formatting and some typos in a few of the README.md files but
mostly the changes are the copyright years.

As a reminder to myself I have only looked at (counting those of commit
fa31f80b39) burton, dogon, duble and part
of endoh1. The rest will come in a future commit or maybe commits.
2023-03-25 09:39:38 -07:00
Cody Boone Ferguson 7e0a25eb4a Add thank you to 1989/jar.2/README.md
Since I've done for most fixes I've made (and all for Yusuke Endoh) I
have referred to me as the one fixing this entry.
2023-03-25 09:31:25 -07:00