369 Commits
Author SHA1 Message Date
Cody Boone Ferguson 8896c22edb Format fixes in 1991/westley/README.md 2023-04-09 09:02:36 -07:00
Cody Boone Ferguson fcebc83dea Minor format fixes in 1991/rince/README.md 2023-04-09 08:34:42 -07:00
Cody Boone Ferguson acb80b981b Minor fixes to 1991/fine/README.md
I can now report that this file is more or less fine! :-)

... though I am sure I will check it at least once more ...
2023-04-09 08:32:03 -07:00
Cody Boone Ferguson b79d7276b3 Format fixes in 1991/dds/README.md 2023-04-09 08:29:29 -07:00
Cody Boone Ferguson 1c8452c4ed Format fixes to 1991/davidguy/README.md 2023-04-09 08:21:37 -07:00
Cody Boone Ferguson 1a15582979 Minor format fixes in 1991/cdupont/README.md 2023-04-09 08:13:39 -07:00
Cody Boone Ferguson be20d8bef4 Format fixes in 1991/buzzard/README.md 2023-04-09 08:11:57 -07:00
Cody Boone Ferguson 68c57a4bb1 Updates and fixes in 1991/brnstnd
Make sorta.README a markdown file (sorta.README.md) and update
formatting for it.

Typo fixes and formatting fixes in README.md.
2023-04-09 08:08:38 -07:00
Cody Boone Ferguson 637a43d841 Fixes in 1991/ant/README.md
Mostly formatting fixes but one spelling fix that I feel almost guilty
about.

Though programme is correct in most cases (except US English but the
author is from Canada) with computers it's actually program. It just
seems better to have this correct if I'm going to go through and look
for typos. Besides this is a programming contest so it makes sense that
it should be correct. Easy mistake to make but should it be fixed?
Maybe, maybe not but I chose to anyway.
2023-04-09 06:21:46 -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 64ff8b7c09 Improve fix on 1991/dds - add alt code
The dds.c now does return system(q-6); and the dds.alt.c does the return
system("make a");. This way those who have gcc (more people than not
most likely) they can use it like originally designed. Those with clang
can use the alt target in almost the same way only instead of a.out use
just a.

Updated the README>md to explain everything.

Updated the .gitignore with some globs that should have been there all
along ('a' and 'dds.alt' being the ones that are new).
2023-03-28 04:35:40 -07:00
Cody Boone Ferguson 56b31286d1 Fix 1991/dds
This was a fun one! There were up to three segfaults fixed and with
clang the generated file could not be compiled. The latter part was
fixed with (unfortunately) something of a hack. I explain below and in
the README.md how to change that part to use just cc if you have gcc
(macOS gcc is actually clang).

The first segfault which was always triggered was due to the code

     *q>' '&&(*q)--;

This seems odd at first glance but it's pointing to 's' which was
read-only memory as a char *s.  It's now a char s[]. The second and
third segfaults were caused if a file was not specified (or it the one
specified did not exist or couldn't be opened for some reason) and if
the output file could not be opened for writing. The allowing the
generated code to compile with clang is something of a hack
unfortunately. The code return system(q-6); ended up doing return
system("cc a.c"); but depending on the compiler this would trigger
errors due to no function prototype specified and also a case where
main() had a return; without any return value. Because the string s
is complicated and because I did not want to inadvertently mess
something up I changed that code to system("make a"); and then added
the right rule to the Makefile. Thus you now need both make and cc.
If you use gcc you may change the system() call to what was given in
this description to get a more authentic feel. If you do this you must
then run ./a.out not ./a!
2023-03-27 12:30: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 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 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 4614d2a4bb Fix Westley's entries (dead link, .gitignore)
The main link was dead but looking at the Internet Wayback Machine I
found that he changed domains and it's still valid. One entry had a
different URL but with a quick check I could not determine that it had
anything to do with him so I changed it to his own domain (which I
verified is his).

The 2001/westley/.gitignore was also updated as it has other source
files that are generated by the commands in the try section.
2023-03-20 08:52:19 -07:00
Cody Boone Ferguson 9c2c19582c Add to / fix formatting in 1991/ant/README.md
In the judges' comments add some humour.

Add a try section.

Note that a file is needed for the program to do anything (that is a
file that exists) - not specifying an arg will exit without doing
anything at all.

Explain how to enter form-feed as this is important.

Fix formatting.
2023-03-19 06:05:08 -07:00
Cody Boone Ferguson c91b3c5565 README.md and Makefile files from various years
These are mostly just formatting fixes but there might be some typos
here and there.

These years have not been checked thoroughly but I made fixes and want
them in for when I do work on them.

As far as the Makefiles go: notes were added that correspond to the
notes in the README.md files which is why I have put them in the same
commit.
2023-03-18 11:31:15 -07:00
Cody Boone Ferguson be60ae60ed Remove now invalid note in 1992/brnstnd/Makefile
As yesterday I fixed the entry to compile with modern systems the
Makefile does not need a note that it might not compile with modern
systems.
2023-03-18 08:40:54 -07:00
Cody Boone Ferguson 420ebd9d0f Add a git to 1991/ant/.gitignore :-)
The file hill was not in the .gitignore file and it should have been so
it now is.
2023-03-18 05:21:55 -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 6bbbd8bea9 Remove space added in brnstnd.c
When changing the macro use to the literal /= I added a space or two. I
did not do this with the other places this macro was used but it feels
like it should be as close to the original formatting as possible.
2023-03-17 12:46:36 -07:00
Cody Boone Ferguson 5a6d5ba067 Fix 1999/brnstnd
This was a fun one to fix. There were two invalid operands to binary
expression errors to fix which was resolved with the comma operator.
More fun was dealing with a C pre-processor change. The macro C was used
like e/C to do e/=G but this is no longer allowed. The solution was to
not use the C macro and instead just do the /= etc.
2023-03-17 12:44:30 -07:00
Cody Boone Ferguson 750255aded Roll back ad04d21fda
As was discussed with Landon this was a mistake even if it helped with
consistency. There was even a brilliant pun that was destroyed with that
commit which I think is worth pointing out:

    cp README.md hill
    ./ant hill

in 1991/ant ... even if it's technically 'anthill'.

I hope that I got all links fixed in years.html and winners.html. As
well I tried to make sure I got all handles fixed in all/summary.txt.
Nevertheless these should be checked. For some handles they were never
updated (at least in the html files - though maybe summary.txt too, not
sure) in the first place so there was nothing to do.

Typo fixes like references to *.hint when it should be README.md. There
probably are others that need to be fixed but haven't been located yet.
2023-03-17 08:27:55 -07:00
Cody Boone Ferguson d4ef163cc4 Various README.md files updated
Mostly formatting fixes but some typos were fixed as well. This commit
is being made now so I can roll back
ad04d21fda as it seems to have been a
mistake to do. Another way to more easily identify same authors will
have to be figured out, perhaps in future files that are yet to be
generated. This upcoming commit will hopefully not cause any problems
but if there are any they will be worked out.

Landon and I both came to the same conclusion that although the renaming
directories seemed to have been warranted in theory they shouldn't have
been renamed after all. This was briefly discussed in issue #3. Anyway
this is why different years are in this commit: to get them out of the
way and since they're only README.md files this seems okay to do.
2023-03-17 07:17:10 -07:00
Cody Boone Ferguson dbbdedd30b Fix in 1991/westley/ttt.sh
Don't assume '.' is in the path.

I note that at least under macOS this game does not work. I'll be
looking at the entries of this year at another time. I just need this
commit in to make some other changes unrelated.

The README.md was also updated - formatting fixes to turn it into a
markdown file proper.
2023-03-17 07:13:34 -07:00
Cody Boone Ferguson ad04d21fda Rename wrongly named author/winner handles
There were many files renamed in this commit and I hope I got all the
references to the old names changed to the new names. To explain this
commit there were some older entries that had the wrong directory name:
not the surname but something else.

Very possibly there are other directories that need to be renamed and I
am actually aware of one right now but since it's in 2005 (which is
close to being worked on) I am not changing that now but just noting it:
2005/anon should be changed to 2005/anonymous (unless there's a very
good reason I am unaware of). But like I said since 2005 will be worked
on soon I have not touched it.

The Makefiles, .gitignore, the all/summary.txt, years.html and
winners.html files as well as the directories and the files under the
renamed directories have all been updated.

This is a rather big update and it might be that there are conflicts. If
so I will fix them. I will have to update 2005/anon later on to try and
prevent this from happening but very possibly there will be conflicts
here. It's also possible I missed some changes in years.html and/or
winners.html and/or summary/all.txt but I think I got them all. These
should be verified later on.
2023-03-14 05:06:16 -07:00
Landon Curt Noll 1dc1b2ff62 remove orig Makefiles for years 1984 thru 1998 2023-02-28 23:57:24 -08: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 b2105f43e9 fix may vs. might README/Makefile issues in years 1984 thru 1998 2023-02-28 21:49:25 -08:00
Landon Curt Noll c4f93bf8f4 use var.mk in year level Makefiles for 1984 thru 1995 2023-02-27 00:36:56 -08:00
Landon Curt Noll 07e198a52d change Makefiles for 1984 thru 1995 to use var.mk
Instead of including the same long list Makefile
variables, include a common var.mk from the top
directory level.
2023-02-27 00:00:52 -08:00
Landon Curt Noll fe8e27a511 update 1991 Makefile variable set 2023-02-26 17:03:23 -08:00
Cody Boone Ferguson aa77adb0c3 Rename */rules to */rules.txt 2023-02-23 04:42:16 -08:00
Cody Boone Ferguson 11bb36ac8c Fix conflicts with recent commits (I think/hope)
Some commits this week caused some conflicts with some open pull
requests made last week. I believe and hope that I fixed the conflicts.
2023-02-22 05:44:55 -08:00
Landon Curt Noll b449cb503c update year level README files
Move copyright notice to the end.

Add a standard comment about the newly added `README.md` files.

Clean up trailing whitespace.

Fixed a few minor typos.
2023-02-21 22:16:49 -08:00
Landon Curt Noll 5552243c7b improve 1991 Makefiles 2023-02-21 20:52:22 -08:00
Landon Curt Noll 536f5ea156 replace 1991/brnstnd/brnstnd_ansi with brnstnd_ansi.c 2023-02-21 20:33:47 -08:00
Landon Curt Noll e86100b024 add initial .gitignore files per entry
chmod +x 2014/sinon/glock.sh 2014/sinon/hecate.sh
2023-02-21 14:16:46 -08:00
Landon Curt Noll ebac0b0cdc fix 1991/westley Makefile, README.md, ttt.sh 2023-02-21 13:06:49 -08:00
Landon Curt Noll 6fca374adb fix 1991/rince Makefile, README.md, and source 2023-02-21 11:49:38 -08:00