6909 Commits
Author SHA1 Message Date
Landon Curt Noll 0b57f4d7fb fix Makefile and README.md for 2006/hamre 2023-03-22 17:37:26 -07:00
Landon Curt Noll 0e0be24748 fix Makefile and README.md for 2006/grothe 2023-03-22 17:34:22 -07:00
Landon Curt Noll 5ff2e8d215 fix Makefile and README.md for 2006/borsanyi 2023-03-22 17:29:06 -07:00
Landon Curt Noll cb5c2c8648 fix Makefile and README.md for 2006/birken 2023-03-22 16:55:49 -07:00
Landon Curt Noll 1d611fa97a Merge pull request #121 from xexyl/2005 2023-03-22 12:41:29 -07:00
Landon Curt Noll a7caaf0572 Merge pull request #120 from xexyl/2001 2023-03-22 12:41:02 -07:00
Landon Curt Noll afb4b933d7 Merge pull request #119 from xexyl/2001-anonymous 2023-03-22 12:40:33 -07:00
Landon Curt Noll a3b03735d3 Merge pull request #118 from xexyl/2000 2023-03-22 12:39:23 -07:00
Landon Curt Noll 5e32cf672b Merge pull request #117 from xexyl/2000-jarijyrki 2023-03-22 12:38:54 -07:00
Landon Curt Noll c5444910bc Merge pull request #116 from xexyl/2000-anderson 2023-03-22 12:38:11 -07:00
Landon Curt Noll 09841e519d Merge pull request #115 from xexyl/2004-vik2 2023-03-22 12:37:06 -07:00
Cody Boone Ferguson c0e68805d0 Fix commit 96cfbda5 2023-03-22 12:36:14 -07:00
Landon Curt Noll 840461ec05 Merge pull request #114 from xexyl/2004-burley 2023-03-22 12:35:46 -07:00
Landon Curt Noll 813f88c223 Merge pull request #113 from xexyl/hints 2023-03-22 12:34:53 -07:00
Landon Curt Noll 0560f235fe Merge pull request #112 from xexyl/2004-newbern 2023-03-22 12:34:07 -07:00
Cody Boone Ferguson 96cfbda5ec Minor fixes in 2005
Typo fixes in 2005/sykes/README.md.

In chia/chia.c I changed uber to über to be correct (ueber also would
have been okay). It's in a comment so I don't see it as a problem but
let's just say that if it is I'm above it! :-)
2023-03-22 12:32:07 -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
Cody Boone Ferguson a93878611a Typo fixes in two README.md files in 2000/
... not 2000 README.md files! :-)
2023-03-22 10:46:59 -07:00
Cody Boone Ferguson ca35488581 Make 2000/jarijyrki compile without -I option
The includes for the X11 header files omitted the X11 and this means
running make will fail even if one has the files in a place that's in
the include path (default or via -I option).

Of course if one has X11 include files in a non-standard location (or
where the compiler doesn't look) they'll still have to use the -I
option.
2023-03-22 10:43:41 -07:00
Cody Boone Ferguson 2946cf1982 Make 2000/anderson use fgets() not gets()
I tried to keep the format similar to the original. The only difference
is that there are more lines now.
2023-03-22 10:20:35 -07:00
Cody Boone Ferguson 601596d1be Remove duplicate rules in 2004/vik2/Makefile 2023-03-22 06:38:34 -07:00
Cody Boone Ferguson c8c1dd403d 2004/burley compiles with clang + try fixing it
main() had one arg, a char *, and this is against clang requirements.

There was no inclusion of setjmp.h and so the longjmp() function
implicitly returned int and was allowed to take the wrong number of
args. It should return void however and this caused a problem with
binary expressions. The comma operator has been used for this but it
might be a problem in that by having ,1 after each it will make
expressions that could turn out to be false to be incorrect.

The longjmp() was being called with one arg which was an element of an
int[4][1000]. This is obviously incorrect but at some point it worked.
Without the prototype this is not a problem but both before (gcc) and
after the compiler fix (with gcc and clang) it did not work with linux
(in this case fedora) or macOS. The code as it now stands has the same
problem as it did before the compilation fix: it lets you input a bet
but then it does not accept any input after that; it prints nothing more
but it should print a new hand. This issue has been put in bugs.md.

My guess (in my tired head) is it has to do with the abuse of the
longjmp() and/or the comma operator making the expressions always 1 (at
least that side of the expression, thus if it gets to the longjmp() part
it will always be 1). Perhaps it should be ,0? I don't know but I might
try that next (I would guess it should be whatever an implicit int would
return without a return statement but that's just a guess). But given
that it stops working at the same spot perhaps it's not the comma
operator. Maybe the function needs to be broken up into several but I
don't know and that might or might not be worth the effort.

Finally it returned main() itself but now it returns poke() which has
the body of what main used to be.

See bugs.md for more details.
2023-03-22 06:30:03 -07:00
Cody Boone Ferguson 41d2d7fb6a Add missing file to commit 005fd7
I meant to commit with that commit 2020/ferguson2/README.md as this file
used to refer to a hint file from another entry but it should be a
README.md.
2023-03-22 03:57:45 -07:00
Cody Boone Ferguson e1cb96107d Further fix 2004/newbern
Landon and I both individually fixed it to work with clang. It appears
that both work just as well but I made it so that the argv (now ll, was
l) in main() is not the name of a function that is defined earlier in
the file. Although Landon's fix worked this felt like a better idea
especially as it seems like the argv he made was not referenced in
main() but it should be.
2023-03-22 03:52:23 -07:00
Landon Curt Noll fe6d6abb02 minor improvements to bugs.md
Added double whitespace around level 1, 2 and 3 markdown headers
to make it easier to see different sections and entries.

Made a few minor edits.
2023-03-22 02:14:48 -07:00
Landon Curt Noll 7e6e156ddc fix top level Makefile for 2005 2023-03-22 01:32:12 -07:00
Landon Curt Noll 8041d7b76b fix .gitignorem Makefile, README.md for 2005/vince 2023-03-22 01:31:10 -07:00
Landon Curt Noll e78bc95816 fix .gitignore, Makefile, README.md for 2005/vik 2023-03-22 01:21:47 -07:00
Landon Curt Noll 4ccf154691 fix .gitignore, Makefile, README.md, and code for 2005/toledo 2023-03-22 01:16:49 -07:00
Landon Curt Noll 70ac78b3dc fix .gitignore, Makefile, README.md and code for 2005/timwi 2023-03-22 00:47:37 -07:00
Landon Curt Noll 231ff28268 fix Makefile and README.md for 2005/sykes 2023-03-22 00:35:46 -07:00
Landon Curt Noll 81a1f2c862 fix .gitignore, Makefile, README.md for 2005/persano 2023-03-22 00:31:48 -07:00
Landon Curt Noll ae80956aa6 fix .gitignore, Makefile, README.md for 2005/mynx 2023-03-21 23:53:09 -07:00
Landon Curt Noll a904f25d2a fix .gitignore, Makefile, README.md for 2005/mikeash 2023-03-21 23:42:16 -07:00
Landon Curt Noll e8d651b111 fix Makefile, README.md for 2005/klausler 2023-03-21 23:37:15 -07:00
Landon Curt Noll a2b7200e13 fix .gitignore, Makefile, README.md for 2005/jetro 2023-03-21 23:32:21 -07:00
Landon Curt Noll 6ce3b77d8e fix .gitignore, Makefile, README.md and code for 2005/giljade 2023-03-21 23:28:44 -07:00
Landon Curt Noll dbbef3126b fix .gitignore, Makefile, README.md for 2005/chia 2023-03-21 23:13:05 -07:00
Landon Curt Noll 12f5c26937 fix Makefile and README.md for 2005/boutines 2023-03-21 23:09:54 -07:00
Landon Curt Noll aafccbca69 fix Makefile, README.md, .gitignore for 2005/anon 2023-03-21 23:02:53 -07:00
Landon Curt Noll 8cbb84c78b fix .gitignore, Makefile, README.md and scripts for 2005/aidan 2023-03-21 22:50:29 -07:00
Landon Curt Noll 3ab7b300fc fix top level Makefile for 2004 2023-03-21 22:17:53 -07:00
Landon Curt Noll 5213854070 fix Makefile, README.md and .gitignore for 2004/vik2 2023-03-21 22:16:26 -07:00
Landon Curt Noll d5d41c4bc7 fix Makefile and README.md for 2004/vik1 2023-03-21 22:09:35 -07:00
Landon Curt Noll 319a2cc31d fix Makefile and README.md for 2004/sds 2023-03-21 22:05:17 -07:00
Landon Curt Noll ececae490e fix Makefile and README.md for 2004/schnitzi 2023-03-21 22:00:05 -07:00
Landon Curt Noll afc233f95b fix Makefile and README.md for 2004/omoikane 2023-03-21 21:55:20 -07:00
Landon Curt Noll 3b238069e4 fix Makefile, README.md and code for 2004/newbern 2023-03-21 21:51:24 -07:00
Landon Curt Noll 49630a3dc0 fix Makefile and README.md for 2004/kopczynski 2023-03-21 21:32:43 -07:00