424 Commits
Author SHA1 Message Date
Cody Boone Ferguson bb7736cb2b Update 2001/anonymous/Makefile - add cpp rule
This compiles the C pre-processed version as it seems like this will be
useful to any person crazy (by which I mean bold) enough to try and fix
it (and I give much respect to them!).

It is compiled by make all: maybe this is a mistake but it seems like
it's going to be useful if anyone is to fix it. This part can be undone
of course.
2023-04-21 05:58:13 -07:00
Cody Boone Ferguson 56a0711630 2001/anonymous updates
Format fix in README.md.

Add cpp.c which is the C pre-processed version cleaned up and somewhat
commented as it heavily (ab)uses the ternary operator and recursion.
Probably futile but it gave me something to do even if it was a waste of
time (could have worked on other README.md files or a host of other
things). This did indeed take a long time and a lot of effort!

Updated bugs.md with more hints about this entry. I explained here how I
came up with the C pre-processed version as it involves something of a
hack because of the complicated build instructions.

Updated anonymous.ten.c: #include <stdio.h>

Added anonymous.ten rule to Makefile.

Also disabled optimising level as the author stated that this makes it
slower.

I observed that the author is anonymous and yet the author information
shows the country. I'm not sure if this is intended or not.
2023-04-21 05:46:10 -07:00
Cody Boone Ferguson de0ad77672 Fixes in 2001/cheong (URL, format, other things)
Format fix 2001/cheong/README.md.

Roll back one of the fixes. INABIAF :-) The only fix necessary is
letting it work with clang. The feature is in bugs.md (will likely crash
without an arg).

Update dead link in README.md, winners.html and winners.csv. He has his
own domain now (was at university). I was able to verify it's his
website even though he didn't mention the IOCCC because he also referred
to the university he went to which we knew.

No longer refer to the university in the README.md file either.
2023-04-21 03:11:19 -07:00
Cody Boone Ferguson 85842bfc7c Really fix segfault in 2001/bellard.otccex.c
The segfault fix (that prevented it from working at all) that I made a
while back was not actually complete. It should work fine now (famous
last words but it does appear to work now with different values where it
crashed). Some ints were used as pointers (including a function
pointer).

It should be noted again that 2000/bellard itself does not work but
having this program bug fixed will be helpful for anyone who might want
a crack at fixing bellard.c (see bugs.md).
2023-04-20 13:41:57 -07:00
Cody Boone Ferguson 9a516dbcbe 2001/bellard updates
README.md format fixes.

Update bugs.md with a note that the author used gcc 2.95.2 with a link
to the download of that version at the GNU gcc website. This was also
added to the top of the README.md file.
2023-04-15 03:51:41 -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 ae19b676a6 Slightly reword thank you in 2001/ctk 2023-04-07 10:52:46 -07:00
Cody Boone Ferguson 6c852f33f5 Typo fix in 2001/ctk/README.md 2023-04-06 06:58:50 -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
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 13fb787f0e Fix segfault without arg in 2001/cheong 2023-03-26 13:07: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 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
Cody Boone Ferguson e8016a5ac8 Partially fix 2001/bellard
This still crashes and may very well not work even if it doesn't but I
cannot determine that. I just fixed the initial segfault when opening
the file. I believe it will take much debugging, a 32-bit system to test
it on and also a knowledge of the ELF format. There might be other
things but I believe those are the minimum requirements.

I did fix the supplementary program bellard.otccex.c so it does not
segfault and seemingly it works too (I didn't really evaluate that the
output is correct but it does process the args anyway).

I updated bugs.md to note that this entry does not work and any help
would be appreciated.
2023-03-25 05:24:48 -07:00
Cody Boone Ferguson c61904ca4f Minor fixes in 2001
Add to anonymous/.gitignore 'anonymous.ten' as that's the example
program to be used for the entry (to those who want to try and fix it).

Minor fixes to three README.md files.
2023-03-22 11:33:49 -07:00
Cody Boone Ferguson c486290171 Fixes to 2001/anonymous
This unfortunately does not include making this work in modern systems.
I have used the cpp and I have had some ideas but I don't have a system
where I can test any fixes so it's probably not going to be done by me.

Nevertheless I have fixed the formatting of README.md, noted that it
doesn't seem to work (Yusuke Endoh came to the same conclusion) and also
fixed a typo in anonymous.ten.c (which 'sings' the wonderful English
counting song Ten Green Bottles .. or at least the theory is it's
English).

This entry has been added to the bugs.md file and I have provided a
number of hints that might (or then again might not) help for anyone who
is brave enough to try fixing it.

As far as the change to anonymous.c itself: I simply added some #includes
for functions that are used.
2023-03-22 11:24:04 -07:00
Landon Curt Noll 7e5cff3783 cleanup README.md for 2001/kev and 2001/westley 2023-03-21 16:17:07 -07:00
Landon Curt Noll 9235da35b8 fix top level Makefile for 2001 2023-03-21 16:14:48 -07:00
Landon Curt Noll 2996d7dd71 fix Makefile and README.md for 2001/williams 2023-03-21 16:14:00 -07:00
Landon Curt Noll 768250a5f2 fix Makefile and README.md for 2001/westley 2023-03-21 16:10:34 -07:00
Landon Curt Noll 2706f3fc52 fix Makefile and README.md for 2001/schweikh 2023-03-21 16:06:21 -07:00
Landon Curt Noll c181c0446a fix Makefile and README.md for 2001/rosten 2023-03-21 16:02:52 -07:00
Landon Curt Noll 7630f0b135 fix Makefile and README.md for 2001/ollinger 2023-03-21 15:59:17 -07:00
Landon Curt Noll 62450844d1 fix Makefile and README.md for 2001/kev 2023-03-21 15:55:44 -07:00
Landon Curt Noll e6d578660b Merge pull request #103 from xexyl/2001-coupard 2023-03-20 19:48:17 -07:00
Landon Curt Noll be822d909f Merge pull request #96 from xexyl/westley 2023-03-20 19:43:01 -07:00
Landon Curt Noll ba9a5c663b Merge pull request #93 from xexyl/2001-herrmann2 2023-03-20 19:41:03 -07:00
Cody Boone Ferguson df07b963e8 Add how to use 2001/coupard for macOS
Thanks go to Yusuke Endoh who happened to provide a proper command line
in his 2013/endoh3 entry.
2023-03-20 11:50: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 f86ab4571f Fix 2001/herrmann2 for clang
This was done by changing the types of the args in main() to be int and
char ** respectively and (where necessary) casting the argv (V) to int
which was the previous type.

I also noted that prior to and after the fix certain invocations
segfaulted though Yusuke Endoh did not have this problem (I linked to
his analysis of the entry).
2023-03-20 05:34:17 -07:00
Cody Boone Ferguson 509f72233c Actually fix 2001/ctk
It became obvious when I actually looked at the code (though I suspected
from output that it was using ANSI) that it was just no longer valid
ANSI escape sequences. Yusuke Endoh made a patch which I used (I have
used ANSI before but it's been a long while). Yusuke guessed it was a
linux thing (reasonable guess) but this also works for macOS. Thank you
Yusuke for your assistance!
2023-03-19 11:47:04 -07:00
Cody Boone Ferguson 228f293b79 Update 2001/ctk/README.md with note about macOS
It unfortunately does not work well with the macOS default terminal
emulator (didn't test others). I also noted how one should use 'q' to
quit or else the terminal will be insane after you exit (which often
goes - I did say how to restore the terminal sanity too).
2023-03-19 11:34:02 -07:00
Cody Boone Ferguson 0e9d78e7c9 Fix 2001/cheong to work with clang
I had to make a new function (also four letter word to match the
formatting) that is allowed to have an int as the third arg to it. I
chose the word pain :-) as it's a pain that clang is this way without
providing any option to disable it.

Note that the arg must be an even number of digits. This threw me off
until I read the README.md because on different systems I got different
results for odd number of digits args despite the fact there should be
no difference here as the diff shows.
2023-03-19 11:30:34 -07:00
Landon Curt Noll 80bd54903c Fix Makefile and README.md for 2001/jason 2023-03-18 11:01:35 -07:00
Landon Curt Noll 83ff856bc9 fix Makefile README.md for 2001/herrmann2 2023-03-17 15:20:06 -07:00
Landon Curt Noll bad0cd868f fix Makefile, README.md and bash script for 2001/herrmann1 2023-03-17 15:11:42 -07:00
Landon Curt Noll 7621291e2f fix Makefile and README.md for 2001/dgbeards 2023-03-17 15:04:17 -07:00
Landon Curt Noll 5ec473f7e9 fix Makefile and READMD.md for 2001/ctk 2023-03-17 14:59:58 -07:00
Landon Curt Noll e64580a245 fix Makefile and README.md for 2001/coupard 2023-03-17 14:56:39 -07:00
Landon Curt Noll 38d4092abe fix Makefile and README.md for 2001/cheong 2023-03-17 14:51:55 -07:00
Landon Curt Noll b006b7a79c fix Makefile and README.md for 2001/bellard 2023-03-17 14:47:33 -07:00
Landon Curt Noll 93aa8d79f2 fix Makefile and README.md for 2001/anonymous
Attempt to address the problem of main type and args.
2023-03-17 14:36:23 -07:00