366 Commits
Author SHA1 Message Date
Cody Boone Ferguson 7ee4f426d5 Fixes in 1998/schweikh1/README.md
This includes the up to date URL. More commits will be made for this as
well.
2023-04-18 08:42:44 -07:00
Cody Boone Ferguson 5b25b77c9b Add colon to 'To run' lines
Or else add an ostomy :-).

Some README.md files have severe ulcerative colitis and will need a
colectomies but others are missing colons. These will be discovered and
fixed in time. In the meantime I've restored some functionality for
these poor README.md files by giving them an ostomy.
2023-04-14 06:37:31 -07:00
Cody Boone Ferguson 9e323d8392 Remove colon at end of award in README.md files
As in

    sgit -e '1s/:$//g' '*README.md'
2023-04-11 08:43:41 -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 3958bbdb04 Reapply segfault fixes in 1998/schnitzi
After discussing it with Landon it was recommended that these fixes be
reapplied.

Updated bugs.md wrt this.

README.md has had formatting fixes as well.

Updated URL for author as it has changed. It's very little on his page
and the only page that suggests it is his is the ioccc.html page. I
couldn't find anything else.
2023-04-10 06:32:28 -07:00
Cody Boone Ferguson be7815388c Minor update to 1998/schweikh1/README.md
Point out that skipping a file that cannot be opened lets the entry work
right. I no longer remember the exact details.
2023-04-07 11:17:13 -07:00
Cody Boone Ferguson 94bdc82d32 Move author info to first column in 1998/chaos 2023-04-07 11:16:24 -07:00
Cody Boone Ferguson ad9efe502a Undo two checks in 1998/schnitzi
As part of the redefinition of INABIAF two segfault fixes were undone.
These are noted in the Makefile and README.md file.

One fix was necessary and that has been left alone.
2023-04-07 10:46:28 -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 1f6e7f2aa0 Fix another segfault in 1998/schnitzi
The program would also crash if the arg had any character that's not a
digit or if the arg had only 0s in it (it would work if it had 0
followed by a digit other than 0). In other words if it is converted to
0 it would segfault.

The bugs.md file has been updated as well to note what's also now in the
README.md file: even a relatively small number can cause a substantial
amount of lines of output. For instance the number 9 causes 771999 lines
(!!) of output.
2023-03-29 11:46:03 -07:00
Cody Boone Ferguson 504e25a9e8 Format fix in 1998/schweikh1/README.md 2023-03-28 09:53:16 -07:00
Cody Boone Ferguson fb49513760 Formatting fixes in 1998/schweikh2/README.md 2023-03-28 05:21:57 -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 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
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 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
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 b2f853a95f Add schweikh2.alt to 1998/schweikh2/.gitignore 2023-03-25 05:41:52 -07:00
Cody Boone Ferguson dea5b4d5f1 Force -trigraphs in 1998/schweikh2/Makefile 2023-03-24 09:52:42 -07:00
Cody Boone Ferguson dac1049403 Update 1998/dorssel/README.md
Formatting and add 'try' section (with some additional commands to try
that were not in the 'to run' section).
2023-03-24 09:49:45 -07:00
Cody Boone Ferguson 3753b22365 Minor fix in 1998/chaos - restore terminal at exit
The problem with not calling 'endwin()' is that echo will be disabled
which is a problem for the user if they don't know to type stty echo or
reset or stty sane.
2023-03-24 09:41:25 -07:00
Cody Boone Ferguson b6635064ea Update bugs/README for 1998/schnitzi
I removed from bugs.md the suggestion that it does not work for macOS as
I fixed that. I also slightly reworded the entry in bugs.md (about
warnings to ignore).

Add to README.md summary of problem.
2023-03-24 08:48:53 -07:00
Cody Boone Ferguson a6f8fd4d53 Add sort.c to 1998/schnitzi/.gitignore
It was not being shown in the git status because earlier updated
.git/info/exclude which included the file sort.c.
2023-03-24 08:17:44 -07:00
Cody Boone Ferguson 930bec4bd6 Add sort to 1998/schnitzi/.gitignore
This because the commands in the try section of the README.md create it.
2023-03-24 08:16:35 -07:00
Cody Boone Ferguson 39b1e26947 Fix 1998/schnitzi for macOS too
It no longer segfaults and works as expected in both linux and macOS!
2023-03-24 08:14:07 -07:00
Cody Boone Ferguson 5506ea989d Fix 1998/schnitzi for linux
It segfaulted due to wrong type of a variable.

It still crashes under macOS which I will be looking at in the near
future but it at least works for linux.

I noted in the bugs.md a compiler warning that should not be changed as
it's not a bug and in fact 'fixing' it will introduce a bug.
2023-03-24 05:30:33 -07:00
Cody Boone Ferguson a68a5d4d18 Many README.md files updated
Formatting and other notes. Many more need to be checked for this but I
wanted these changes out of the way of git status to try and clean my
working changes.
2023-03-24 04:40:30 -07:00
Cody Boone Ferguson c61776796a Update 1998/schweikh3/README + add dupe file
The formatting of README.md has been changed.

Added a try section and a duplicate file to the directory (copy of
samefile.1) so that the users can see how it looks. The copy is
samefile1.1.dupe. Yes dupe means to deceive and also a victim of being
deception but it also means duplicate. For the IOCCC though it actually
makes sense if a file (in fact all the source files :-) and thus you're
a dupe! :-)
2023-03-24 04:22:41 -07:00
Cody Boone Ferguson a31ef00105 Add -lm to Makefile in 1998/banks
Some systems need it to link in libm. Fedora comes to mind as an
example; macOS has no problem with it though running this entry under
macOS is another matter entirely.
2023-03-21 10:52:21 -07:00
Cody Boone Ferguson 005fd79916 Address references to *.hint with some exceptions
In years < 2001 (with the exception of ferguson2/) that still have
reference to *.hint files they have been changed to README.md with the
following exception: in 1998/dorssel there was a dorssel.hint2. This was
changed to dorssel.hint since the dorssel.hint was changed to README.md
a while back. The references to dorssel.hint2 were changed to without
the 2.

There was an out of date reference in faq.html file to a .hint file as
well that was updated to README.md; the dorssel2.hint in years.html was
changed to the new name.

With that the only files that have to be updated are those that are >=
2001. I still have to check for hint.* however.
2023-03-21 09:56:39 -07:00
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
Landon Curt Noll e78febe55a remove Historical Makefile NOTEs from years 1984 thru 1998 2023-02-28 23:36:45 -08:00
Landon Curt Noll d0ddf3d2de remove Historical Makefile NOTE from 1984 to 1998 year Makefiles 2023-02-28 23:33:21 -08:00
Landon Curt Noll 1e54ca86aa remove banks.alt.c from 1998/banks
This file was not an alternate copy, but rather an
original version of the winning code that was
later bug fixed.
2023-02-28 23:15:08 -08:00
Landon Curt Noll 37b80374df fix 1998 Makefiles 2023-02-27 15:11:50 -08:00
Landon Curt Noll f615bba21e undo intermediate Makefile changes of 1996 to 2020
The commit 00ae59cd47 had a
mistake that introduces changes to Makefiles for 1996 thru 2020
that should not have been included.

This change reverses these intermediate changes until
the given year's Makefiles are ready.
2023-02-26 23:31:00 -08:00
Landon Curt Noll 00ae59cd47 fix 1995 Makefile comment line 2023-02-26 21:52:15 -08:00
Landon Curt Noll ab9b77b1c9 reverse bad commit 223b1a3f94
The commit 223b1a3f94 was a mistake,
so we reverse both commit 5f7cf0b60d
and commit 223b1a3f94 for now.
2023-02-26 17:21:30 -08:00
Landon Curt Noll 223b1a3f94 update 1992 Makefile variable set 2023-02-26 17:05:50 -08:00