405 Commits
Author SHA1 Message Date
Cody Boone Ferguson f5da61e033 Dedication fixes in my entries 2023-04-17 05:48:09 -07:00
Cody Boone Ferguson d664871317 Move 2018/ferguson/prog-simple.c to prog.alt.c
This is to match the rest of the repo as this truly is an alt version,
not a supplementary program.

Updated README.md to have an 'Alternate code' section as well.

A number of files had to be changed as numerous files referred to
prog-simple.c.
2023-04-12 03:07:15 -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
Landon Curt Noll 5c01b7c1b5 improve make clobber for 2018/burton2 2023-04-09 15:05:09 -07:00
Landon Curt Noll cadeb443ef fix .gitignore for 2018/burton2 2023-04-09 14:58:37 -07:00
Cody Boone Ferguson fb40965b4b Restore missing 2018/README.md from 2018 preview
For some reason this was missing from the repository. I was certain that
there was one so I looked at my archive and found in the winner preview
repo for 2018 that there was indeed a README file (README.markdown).
This has been added as 2018/README.md. It felt important that this was
added back.

I did NOT update the 2018 archive tarball as I'm not sure what to even
call it - perhaps just README.markdown - but also because I'm not sure
what the status is of my archive/2018 is.

I fixed the formatting to match the style that is being used in this
repo.
2023-04-08 08:55:08 -07:00
Cody Boone Ferguson c59ebbb6c8 Undo NULL file protection in 2018/algmyr
As part of the redefinition of INABIAF the entry no longer has the fix
applied.
2023-04-07 10:25:31 -07:00
Cody Boone Ferguson c23e0acab1 Fix shebang in 2018/ferguson/test.sh
Make it a bit more portable (assuming env is under /usr/bin):

    #!/usr/bin/env bash

instead of

    #!/bin/bash

And although Landon suggested that I will never be done with changes in
my entries (which is probably true I confess ... :-) ) I suggest that in
this case this is rather useful (in fact I should do this for
2020/ferguson1 as there are several scripts there .. maybe
2020/ferguson2 but I don't know for sure).
2023-04-07 04:25:30 -07:00
Cody Boone Ferguson 21fa5e707c Format fix in 2018/bellard 2023-04-07 04:19:36 -07:00
Cody Boone Ferguson 73b240a1b5 Update 2018/algmyr/.gitignore 2023-04-06 06:42:55 -07:00
Cody Boone Ferguson 0f52b84bc8 Fix 2018/algmyr to not segfault on NULL file
Now it just exits 1 if a file cannot be opened. I do have a concern with
this type of fix which I will bring up on GitHub but it seems better
anyway to not crash with invalid input unless the entry should crash.
The fact the author noted that invalid paths as a limitation suggests in
this case that it is reasonable to fix. There are other limitations /
bugs the author mentions but perhaps those should not be fixed. That
remains to be seen I guess.

I can also now confirm that this entry does indeed work as expected; I
could not test it with commit ced8177ef9
but I had to test it here to make sure the changes did not affect the
functionality.

The original source, which has a really nice layout, can be found in
prog.alt.c and is referenced in the README.md. It can be built by make
alt.
2023-04-06 06:31:30 -07:00
Cody Boone Ferguson eda1054a19 Minor fixes in 2018/poikola/README.md
Move author information to first column.

Slight rewording and formatting.
2023-04-06 05:28:26 -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 ced8177ef9 Minor fixes in 2018/algmyr
Typo / formatting fixes.

I did not run the command to see if it works because I had a cat
sleeping between my legs. He just got up but I need to do other things
now, having finished for the first pass the year 2018.

The author noted a segfault on invalid files and I might look at
addressing this but this will come later if I do (likely but probably
will move the original source to prog.alt.c as I love the format so
much).
2023-04-01 07:03:09 -07:00
Cody Boone Ferguson 20ea1eac81 Minor fixes to 2018/anderson/README.md
Move author information to first column.

Format fixes / adjustments.

Add link to prog.c and prog.alt.c when referred to in normal text.

Typo fix (well not really a typo: c99 etc. becomes C99 and so on).
2023-04-01 06:51:53 -07:00
Cody Boone Ferguson 48d3653ff8 Fix author format in 2018/bellard/README.md
Should be on the first column. Many other README.md files have this
problem and will be fixed in time.
2023-04-01 06:45:59 -07:00
Cody Boone Ferguson 94f1d659ba Fixes in 2018/bellard
Fix command in README.md for macOS:

    -preview lena.ppm # On MacOS
    +open -a Preview lena.ppm # On macOS

Move warning that the program does not protect against invalid input to
the top of the author's comments (seems the best place).

Format fixes.

Add to .gitignore files that are generated by suggested commands.
2023-04-01 06:43:47 -07:00
Cody Boone Ferguson 51939ecc17 Fixes to 2018/burton1
Add links to script in entry when referred to in README.md.

Fix scripthd to refer to not prog but ./prog.

Fix dead link in README.html.

Formatting and possible typo fixes.
2023-04-01 06:34:26 -07:00
Cody Boone Ferguson 1b225f6b73 Fixes in 2018/burton2
Formatting fixes in README.md.

Add links where reasonable instead of just backticks.

Rename discrepancies to discrepancies.md and make markdown format. Fix a
typo there.

Rename manpage to manpage.sh.

Rename tokenfix tokenfix.sh.

Make sure scripts were +x permissions.

Fixed path in README.md for manpage invocation.

Possibly typo fixes in README.md.
2023-04-01 06:15:46 -07:00
Cody Boone Ferguson 467ec02317 Fixes in 2018/ciura/README.md + Makefile
Formatting fixes and possibly typos (but mostly formatting).

On bold code blocks: I removed the bold because it appeared that some of
the formatting was messed up. I think this is okay though rather than
trying to fix the formatting of bold code blocks.

Set alt related target variables in Makefile so that make alt actually
works.
2023-04-01 05:30:16 -07:00
Cody Boone Ferguson 8185163247 Add author comments to 2018/endoh2/README.md
These were found on Yusuke Endoh's analysis of all the IOCCC winning
entries. I kept the ASCII art he had for the comments but his comments
for the entry seem like a good idea to include especially as he wrote
them himself and they add to the entry itself.
2023-04-01 05:16:53 -07:00
Cody Boone Ferguson b7d2b9e5fd Minor note added to 2018/endoh2/README.md
The try section actually triggers a long (or infinite? .. didn't check)
loop so I note this and also say how to break out of it (though most
would probably know how).
2023-03-31 12:32:23 -07:00
Cody Boone Ferguson 513422054b Update 2018/giles + faq.md
Mostly this update is about SDL and SDL2 and how to compile and run
entries that make use of it. But I first saw reference to this idea in
2018/giles/README.md.

I added to macOS section MacPorts which is another very popular package
manager for macOS (I personally don't like Homebrew and I use MacPorts
instead).

Minor fixes in 2018/giles/README.md (formatting plus make a URL an
actual link).
2023-03-31 12:27:07 -07:00
Cody Boone Ferguson 90e852c7a7 Minor adjustments to 2018/hou
Formatting fixes in README.md.

Add entry to bugs.md as it will abort due to assertion failure. But this
is expected and the entry works fine (open the html file and you'll see
that). So INABIAF.
2023-03-31 10:50:36 -07:00
Cody Boone Ferguson cdbf616f1e Fixes to 2018/mills/README.md
Typo fixes, formatting fixes and other things.

Updated faq.md with a note that this entry can also be used to run
1984/mullender.
2023-03-31 10:40:52 -07:00
Cody Boone Ferguson d31c6adf4e Fixes in 2018/poikola
I had put in the README.md that the entry needs XQuartz for macOS
because it uses X11 but this is not true (I should have known as this
was my favourite entry that year in the preview and it still is). The
point was that Terminal.app of macOS might not work. This has been
corrected.

As it happens it appears to work fine for me which I noted in the
README.md.

Formatting fixes, slight improvements and possibly typo fixes.

Add missing make rule docs that was referred to in the README.md but was
missing from the Makefile. It was found in the
archive/2020/poikola/Makefile.
2023-03-31 09:46:50 -07:00
Cody Boone Ferguson 5ab7e5b07e Fixes in 2018/yang
Update .gitignore with files created by the commands in the README.md
(and some that can be with the right combinations that are not noted).

Typo and formatting fixes in README.md.
2023-03-31 09:36:13 -07:00
Cody Boone Ferguson 69d2e09da4 Minor fixes to 2018/vokes/README.md 2023-03-31 09:27:39 -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 db90bf6a86 Minor updates to several README.md files
Just some formatting fixes and in some cases add links to XQuartz for
macOS Mountain Lion and beyond. More entries (probably many more) have
to have that link added but those will be found and fixed in time.
2023-03-31 06:37:18 -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 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
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 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
Cody Boone Ferguson 99768d592a 2018/ferguson fixes and minor updates
Fix test.sh for shellcheck.

Minor fixes to README.md including moving the author information (that
is my information :-) ) to the first column of the file as not having it
prevents links from being generated right. This is a problem for the
other README.md files too and I'll be noting it on GitHub.

Some humour with html <del>..</del>.

Modified portability section to make it a bit simpler and suggest that I
won't be updating the list. I only include the original systems tested
for historical purposes. I won't be updating the list over time as that
would be annoying to do and would just make the already very long
document needlessly longer. It's already been almost 5 years since it
was updated.

Add a string to test-strings.txt.

Warning: these are most likely not the final fixes or updates for my
entries as Landon has pointed out :-) but there shouldn't be many more
for now or hopefully for a long time. Unless I see something I won't
feel the need to fix anything.

Update 2018/burton2/README.md to have my middle name.
2023-03-25 04:03:38 -07:00
Landon Curt Noll f6c91fe25e fix top level Makefile for 2018 2023-03-25 01:27:48 -07:00
Landon Curt Noll e229c77499 fix Makefile and README.md for 2018/yang 2023-03-25 01:26:44 -07:00
Landon Curt Noll ca38477b1a fix Makefile and README.md for 2018/vokes 2023-03-25 01:14:03 -07:00
Landon Curt Noll e728d738cf fix Makefile and README.md for 2018/poikola 2023-03-25 01:09:48 -07:00