429 Commits
Author SHA1 Message Date
Cody Boone Ferguson b6431931e1 Add & fix author provided alt code for 1992/westley
I fixed the segfault that was in the main entry and I made it work for
clang as well.

Also fixed the README.md file (formatting etc.).
2023-03-29 12:10:12 -07:00
Cody Boone Ferguson c1d602e0cf Fix 1992/vern/README.md 2023-03-29 11:57:33 -07:00
Cody Boone Ferguson fd3da07ecc Fix 1992/marangon/README.md 2023-03-29 10:11:16 -07:00
Cody Boone Ferguson b65ebbe3cd Fix 1992/kivinen/README.md 2023-03-29 10:08:38 -07:00
Cody Boone Ferguson 66ef567bc0 Change -ggdb3 to -O3 in 1992/gson/Makefile
This was accidentally committed. Before looking more closely at the code
I was hoping to find via the debugger where m was set up with a specific
size. This turned out to not be necessary after looking at the code but
nevertheless I enabled debug symbols and disabled the optimiser but this
was supposed to be temporary.
2023-03-29 10:03:21 -07:00
Cody Boone Ferguson 888b3b91a6 Make 1992/gson not use gets() + update README.md
In the case of 1992/gson it was not as simple to change it to use
fgets() due to how the char * is set up. First it's set to argv (see
README.md for the more correct details) and then it's set to h which
was of size 256. Since the program requires the input be from the
command line I simply changed the buffer size to ARG_MAX+1 (which might
already be more than enough).

Fixed formatting in README.md.

Changed in Makefile the og to ag to match the description (and in the
places where og was used in the README.md I changed it to ag).

.gitignore also now has ag not og.

Possibly typos were fixed but I'm not sure now.
2023-03-29 09:59:05 -07:00
Cody Boone Ferguson 07b69a677b Format and typo fixes in 1992/buzzard.1/README.md 2023-03-29 08:27:47 -07:00
Cody Boone Ferguson 85ddf1a25a Fixes in 1992/buzzard.2/README.md
Typo/spelling fixes and formatting fixes.
2023-03-28 08:22:51 -07:00
Cody Boone Ferguson b2ff5f15fa Minor fixes in 1992/ant
Format fixes in README.md.

Typo fix in ant.test.mk.
2023-03-28 08:10:52 -07:00
Cody Boone Ferguson 4c566f06ad Minor update to 1992/lush/README.md 2023-03-28 08:04:03 -07:00
Cody Boone Ferguson b945ec015f Get 1992/lush to work with gcc - won't with clang
I used a patch from Yusuke Endoh to get it to work with gcc. Due to the
different messages with different compilers it's expected that this
won't work with every compiler.

I provided a 'runme.sh' script to run the command in the correct way.

I made the entry use fgets() not gets().

I updated bugs.md pointing out that it does not work with clang and
alternative code is welcome.
2023-03-28 07:42:07 -07:00
Cody Boone Ferguson 3865049bde Format and typo fixes in several README.md files 2023-03-28 05:28:46 -07:00
Cody Boone Ferguson 449a93567f Formatting fixes in 1992/imc/README.md 2023-03-28 04:55:56 -07:00
Cody Boone Ferguson d76ae5ece9 Minor fixes to 1992/albert/README.md
Formatting and add 'try' section.
2023-03-28 04:43:26 -07:00
Cody Boone Ferguson 59c95a86d5 Make 1992/adrian use fgets() not gets()
There was only one call to gets() and one call to fgets(). gets() reads
from stdin so the fgets() call has to as well. But why was it using
gets() and not fgets()? My guess is because fgets() stores the final
newline which means that the output had extra lines. The entry was
relying on this string NOT having a newline printed after the line
matched! Having a newline in turn broke the generation of some output
like that of adhead.c. Thus if fgets() != NULL we trim off the trailing
newline first. This allows the entry and all generated code to compile
successfully (adhead.c ended up having a multi-line macro messed up
because of an empty line after the \ at the end of the line). Since
gets() does not store the final newline and since we trim that off the
code is functionally equivalent but now safer.
2023-03-28 04:17:43 -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
Cody Boone Ferguson d1d5289a0c Slightly improve formatting of 1992/westley
Attempt to make it more like the world like it was prior to commit
04b2b59797.
2023-03-26 15:08:33 -07:00
Cody Boone Ferguson 04b2b59797 Fix segfault in 1992/westley without enough args 2023-03-26 15:07:35 -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
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 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 9ac70905d3 Fix 1992/westley to compile with clang
Since the third and fourth args of main() were being used as ints I have
made them ints inside main() as clang does not allow the second, third
or fourth args to main() to be anything but char **. An important note
(which the author noted but which I put in the Makefile as well as under
the 'To run:' section) is that the terminal must wrap at 80 columns in
order for this to work right. I had to shrink down the terminal size to
get to show that this change worked okay - it was the simplest way I
could think of to do it.
2023-03-17 11:12:45 -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 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 c47fd06321 fix 1992/buzzard.2 Makefile 2023-03-13 02:41:56 -07:00
Landon Curt Noll 16e4bb2abf sync years.html with the current fileset 2023-03-13 02:29:03 -07:00
Landon Curt Noll 129ffa9fb5 fix how alt code it used in 1992/buzzard.2 2023-03-08 02:17:10 -08:00
Landon Curt Noll 6a92346e1d restore pre-fixed code to 1992/albert
It appears that the archive contained the code
that was there before Leo's fix.

Moved Leo's note into the README.md file.

The alt code is now the pre-fixed code.
2023-03-08 02:12:09 -08:00
Cody Boone Ferguson 8a1025d63b Fixes in 1992/nathan/README.md
Restore absent-minded change of make all to make nathan.

Fix typos.

Fix formatting (the text in the sections is indented which makes it all
code blocks). This problem is probably because originally the file was
not README.md (though it was still considered markdown). Many other
README.md files have this problem which I will fix in time.
2023-03-05 04:59:27 -08:00
Cody Boone Ferguson 2a40fe10a9 Add original before unseen 1992/nathan/nathan.c
It has been deemed that this should be okay now so we decided to add the
code.

This required a minor change in 2020/ferguson2 which I have made here as
well in this commit.
2023-03-04 12:09:35 -08:00
Cody Boone Ferguson f4e3dbdc21 Typo fixes in 1992/nathan
In nathan.c there was also a typo fix but since it's not the original
entry (or any thing like it) it's okay to do this. This is actually the
subject of a discussion to be had on GitHub which I'll be addressing in
a bit.

In README.md there was also a typo fixed.
2023-03-03 04:21:20 -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 34960fc5a0 update 1992 Makefile variable set 2023-02-26 17:23:58 -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