Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Sanity fixes for input handling. Suggested by OpenBSD, but different code. | 2008-02-23 | 1 | -19/+17 | ||
| | ||||||
* | A first stab at supporting the housing shortage rules. From OpenBSD. | 2008-02-23 | 2 | -10/+94 | ||
| | | | (note: this is not fully correct - I will fix it when I finish merging) | |||||
* | Don't increment booleans. From OpenBSD | 2008-02-23 | 1 | -6/+6 | ||
| | ||||||
* | Sanity fixes for input buffer handling. From OpenBSD | 2008-02-23 | 1 | -11/+7 | ||
| | ||||||
* | Improve the behavior of get-out-of-jail-free cards by returning them to | 2008-02-23 | 1 | -5/+38 | ||
| | | | | the bottom of the deck when used. There are still a few other problems. From OpenBSD. | |||||
* | Rename ->last_card to ->top_card to match OpenBSD (and also to make | 2008-02-23 | 2 | -7/+7 | ||
| | | | somewhat more sense...) | |||||
* | Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD. | 2008-02-23 | 2 | -19/+19 | ||
| | ||||||
* | A few more whitespace/KNF. I keep hoping I've found them all... | 2008-02-20 | 4 | -17/+14 | ||
| | ||||||
* | Add the sizes to the extern array declarations. This may not be | 2008-02-20 | 1 | -6/+6 | ||
| | | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD. | |||||
* | Use random() rather than rand(). Suggested by diffing against OpenBSD. | 2008-02-20 | 2 | -6/+7 | ||
| | ||||||
* | Remove unused swap() macro. | 2008-02-20 | 1 | -6/+1 | ||
| | ||||||
* | Don't misuse random strings as printf formats, even where it's harmless. | 2008-02-20 | 1 | -3/+3 | ||
| | | | Found by diffing against OpenBSD. | |||||
* | One more (hopefully the last) whitespace fix. | 2008-02-19 | 1 | -3/+3 | ||
| | ||||||
* | getinp() no longer magically treats the prompt arg as a printf format, so | 2008-02-19 | 1 | -3/+3 | ||
| | | | don't escape % as %%. From OpenBSD. | |||||
* | Move function heading comments to something vaguely like the right place. | 2008-02-19 | 1 | -7/+22 | ||
| | ||||||
* | KNF/whitespace nits. No functional changes. | 2008-02-19 | 9 | -49/+53 | ||
| | ||||||
* | Fix bugs in debug printouts. From OpenBSD. | 2008-02-19 | 1 | -8/+9 | ||
| | ||||||
* | Don't use sprintf; use snprintf. | 2008-02-19 | 2 | -8/+10 | ||
| | ||||||
* | Don't use perror(); use err/warn instead. | 2008-02-19 | 2 | -12/+9 | ||
| | | | Suggested by diffing against OpenBSD. | |||||
* | Fix capitalization of street names. from pjanzen@openbsd | 2008-02-19 | 1 | -21/+21 | ||
| | ||||||
* | More typo fixes | 2008-02-19 | 2 | -4/+4 | ||
| | ||||||
* | Fix formatting bug apparently introduced when the page was mdoc'd. (Had | 2008-02-19 | 1 | -3/+3 | ||
| | | | | | | .Nm, should have been .Pp.) Also bump date; for some reason this hadn't been done since the original import. | |||||
* | Remove transient thingy that wasn't supposed to see the light of day, and | 2008-02-19 | 1 | -15/+14 | ||
| | | | finish dealing with some local variables that shadow a global. (hi dholland) | |||||
* | Fix (another) typo in comment | 2008-02-19 | 1 | -3/+3 | ||
| | ||||||
* | Fix typo in comment | 2008-02-19 | 1 | -3/+3 | ||
| | ||||||
* | Split some code from moreobj.c into action.c, as per larn 12.2. | 2008-02-19 | 4 | -185/+332 | ||
| | ||||||
* | Typo correction: s/than/that/ in one instance. | 2008-02-15 | 1 | -1/+1 | ||
| | ||||||
* | More assorted cleanup merged from larn 12.2. | 2008-02-04 | 5 | -175/+78 | ||
| | ||||||
* | Once upon a time, larn 12.0 had functions named getchar() and putchar() | 2008-02-03 | 9 | -89/+89 | ||
| | | | | | | | that conflicted with libc. We changed them to lgetchar() and xputchar() respectively; larn 12.2 changed them to ttgetch() and ttputch(). After reflecting on this for a while I've decided to adopt the larn 12.2 names; not so much for compatibility but for consistency going forward. So, massrename them. Also make ttputch() static. | |||||
* | Don't create files mode 666 in /var. (The code in question is not enabled | 2008-02-03 | 1 | -3/+3 | ||
| | | | by default, though.) | |||||
* | Larn does not need its own private versions of functions from <ctype.h>. | 2008-02-03 | 7 | -96/+17 | ||
| | | | Also, remove the function gettokstr(), which is not used. From larn 12.2. | |||||
* | A long time ago, larn had code to prohibit playing it during work hours. | 2008-02-03 | 3 | -89/+8 | ||
| | | | | | | | | | Most of this code was removed ages ago, probably when dm(6) was invented; long before -r1.1 in the NetBSD tree in any event. Now remove the last fragment of it. Also nuke the file of US holidays 1987-1993 that we've been carrying around for no reason. | |||||
* | Some assorted minor cleanups, from larn 12.2. | 2008-02-03 | 4 | -26/+31 | ||
| | ||||||
* | Make a bunch of functions static. Merged from larn 12.2. | 2008-02-03 | 8 | -68/+80 | ||
| | ||||||
* | Use mkstemp to make the temporary files used when you win. | 2008-02-03 | 1 | -5/+5 | ||
| | ||||||
* | Since games are (now) setgid, not setuid, it is no longer necessary to | 2008-02-03 | 3 | -30/+30 | ||
| | | | manipulate the effective uid, only the effective gid. | |||||
* | Document -d. | 2008-02-03 | 1 | -2/+8 | ||
| | ||||||
* | Add a -d flag so that primes will print the difference between the current | 2008-02-02 | 1 | -14/+31 | ||
| | | | | | prime and the previous prime. [I needed that for some reason I don't recall and these changes lying about. Since they might be useful/interesting to someone, I might as well as commit them.] | |||||
* | Fix typo: sive -> sieve. | 2008-02-02 | 1 | -3/+3 | ||
| | ||||||
* | Pedanticism about time_t (not really a bug, but now it won't show up when | 2008-01-31 | 1 | -3/+3 | ||
| | | | audited.) | |||||
* | Fix y2038 bug: time_t != int. | 2008-01-31 | 3 | -10/+13 | ||
| | ||||||
* | Make the default WARNS for games 4. The only game that needs to set WARNS | 2008-01-28 | 12 | -30/+13 | ||
| | | | to anything else now is rogue, so clear WARNS from the other makefiles. | |||||
* | build with WARNS=4 | 2008-01-28 | 1 | -6/+6 | ||
| | ||||||
* | Make hack build with WARNS=4. | 2008-01-28 | 18 | -94/+102 | ||
| | ||||||
* | Make this build with WARNS=4 by not reusing names from <math.h>. | 2008-01-28 | 1 | -5/+5 | ||
| | ||||||
* | Make this build with WARNS=4 by not reusing names from ctype.h. | 2008-01-28 | 1 | -9/+9 | ||
| | ||||||
* | Make this build with WARNS=4. | 2008-01-28 | 9 | -70/+78 | ||
| | ||||||
* | make mille build with WARNS=4 | 2008-01-28 | 1 | -6/+6 | ||
| | ||||||
* | Call srandom() as well as initializing the private random generator | 2008-01-28 | 1 | -2/+3 | ||
| | | | | (which is crappy and should be removed, but that's for another day...) This way e.g. fortune cookies no longer appear always in the same order. | |||||
* | Larn now builds with WARNS=4. | 2008-01-28 | 21 | -306/+296 | ||
| |