summaryrefslogtreecommitdiffstats
path: root/monop
Commit message (Collapse)AuthorAgeFilesLines
* Sanity fixes for input buffer handling. From OpenBSDdholland2008-02-231-11/+7
|
* Improve the behavior of get-out-of-jail-free cards by returning them todholland2008-02-231-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 makedholland2008-02-232-7/+7
| | | somewhat more sense...)
* Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.dholland2008-02-232-19/+19
|
* A few more whitespace/KNF. I keep hoping I've found them all...dholland2008-02-204-17/+14
|
* Add the sizes to the extern array declarations. This may not bedholland2008-02-201-6/+6
| | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD.
* Use random() rather than rand(). Suggested by diffing against OpenBSD.dholland2008-02-202-6/+7
|
* Remove unused swap() macro.dholland2008-02-201-6/+1
|
* Don't misuse random strings as printf formats, even where it's harmless.dholland2008-02-201-3/+3
| | | Found by diffing against OpenBSD.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* getinp() no longer magically treats the prompt arg as a printf format, sodholland2008-02-191-3/+3
| | | don't escape % as %%. From OpenBSD.
* Move function heading comments to something vaguely like the right place.dholland2008-02-191-7/+22
|
* KNF/whitespace nits. No functional changes.dholland2008-02-199-49/+53
|
* Fix bugs in debug printouts. From OpenBSD.dholland2008-02-191-8/+9
|
* Don't use sprintf; use snprintf.dholland2008-02-192-8/+10
|
* Don't use perror(); use err/warn instead.dholland2008-02-192-12/+9
| | | Suggested by diffing against OpenBSD.
* Fix capitalization of street names. from pjanzen@openbsddholland2008-02-191-21/+21
|
* More typo fixesdholland2008-02-192-4/+4
|
* Fix formatting bug apparently introduced when the page was mdoc'd. (Haddholland2008-02-191-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, anddholland2008-02-191-15/+14
| | | finish dealing with some local variables that shadow a global. (hi dholland)
* Fix (another) typo in commentdholland2008-02-191-3/+3
|
* Fix typo in commentdholland2008-02-191-3/+3
|
* Make this build with WARNS=4.dholland2008-01-289-70/+78
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* A terrible kludge: don't compile/link malloc.c if arch=sun2. My apologiesdogcow2007-11-171-2/+6
| | | | to the legions of sun2 monop fans who will probably be unable to save/restore games.
* Coverity CID 998: Possible NULL pointer deref. Actually this was a bugchristos2006-03-191-5/+6
| | | | where a house to be sold would be skipped. Change the sell loop to be like the buy side loop.
* fix typochristos2006-03-191-3/+3
|
* Coverity CID 1004: Fix NULL deref.christos2006-03-191-2/+4
|
* Coverity CID 1005: Fix NULL deref and incorrect variable use.christos2006-03-191-11/+16
|
* better handle ^d in getinp(), so we dont loop endlessly.elad2006-01-201-6/+5
| | | i have no idea why i wanted to play this game.
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-3/+3
| | | Sort sections if necessary. Use more/better markup.
* Convert from libc/threadlib-style mutex protection to pthread style.nathanw2004-12-141-13/+13
| | | (XXX this game totally does not need a thread-safe malloc)
* Add (unsigned char) cast to ctype functionsdsl2004-11-052-9/+8
|
* Remove uses of __P.jsm2004-01-2713-100/+100
|
* Rename yn to yncoms to avoid conflict with GCC 3.4 built-in XSIjsm2004-01-263-7/+7
| | | function.
* Improve how various "simple" host tools are built and invoked.lukem2003-11-161-4/+4
|
* Rework how MAKEVERBOSE operates:lukem2003-10-211-5/+3
| | | | | | | | | | * Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
* rework to use the newer _MKMSGCREATE (et al) macroslukem2003-10-191-3/+3
|
* Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)lukem2003-10-191-1/+5
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0725-166/+66
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Quote question mark.wiz2003-06-271-2/+2
|
* Fix some nits, do not mark up i.e. too much. From jmc@openbsd.wiz2003-04-261-10/+8
|
* PR/8247: Simon Burge: monop(6) save/restore doesn't work.christos2003-04-212-6/+9
| | | | | | With the advent of elf and mmaping malloc, assumptions that the code made before about location and contents of the data segment broke. We supplied an sbrk() only malloc, and recorded the break point at the beginning of the program, so now save and restore works, in the traditional monop style.
* use an sbrk() only malloc() because save and restore depends on savingchristos2003-04-212-3/+500
| | | the data segment only. Maybe we should make libbsdmalloc?
* interrupt with two rs.wiz2003-01-061-3/+3
|
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-8/+10
|
* New sentences begin on new lines.wiz2002-09-261-3/+5
| | | Patch from Richard Elz, slightly improved by yours truly.
* calloc() arg mistake. it's (nelem, size). from openbsditojun2002-08-121-3/+3
|
* de-registerwiz2002-06-021-4/+2
|
* No need to reference .OBJDIR here.thorpej2002-03-051-2/+2
|