summaryrefslogtreecommitdiffstats
path: root/monop/execute.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=5dholland2012-06-191-9/+7
|
* Don't crash if we're asked to restore from /dev/null. (woops)dholland2008-02-241-2/+13
|
* Fix some more lint. (There's plenty to go around.)dholland2008-02-241-17/+19
| | | | | If we try to load a game and it bombs, keep prompting for another one, because if we try to continue with a half-loaded game we'll probably end up in trouble.
* fix some lintchristos2008-02-241-4/+4
|
* Abolish the initdeck program and the weird little binary file it generates.dholland2008-02-241-7/+12
| | | | | | | | The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.)
* Source files should be named *.c or *.h, not random other things.dholland2008-02-241-3/+5
| | | | | | | | Fold monop.ext (which was extern data decls) into monop.h and deck.h. Fold monop.def (which had definitions for the extern data) into monop.c. Fold brd.dat/mon.dat/prop.dat (which were array initializers for some of the data) into monop.c. Rearrange includes accordingly. No functional change.
* Remove last traces of old save/load code. We no longer need a privatedholland2008-02-241-3/+2
| | | copy of malloc.
* New save/load code. Related to (but not the same as) the new save/loaddholland2008-02-241-33/+501
| | | | | | | | | | code in OpenBSD. Note: this breaks compatibility with old save files. However, the old save files were missing critical information, had a completely insane format, and didn't work anyway. I will be riding this breakage with another breakage within a day or two when I fix the insanity in the card deck handling.
* KNF/whitespace nits. No functional changes.dholland2008-02-191-18/+23
|
* Don't use perror(); use err/warn instead.dholland2008-02-191-6/+5
| | | Suggested by diffing against OpenBSD.
* Make this build with WARNS=4.dholland2008-01-281-6/+6
|
* Remove uses of __P.jsm2004-01-271-3/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* PR/8247: Simon Burge: monop(6) save/restore doesn't work.christos2003-04-211-4/+5
| | | | | | 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.
* Include <time.h> for declarations the Single Unix Specification saysjsm2001-08-291-2/+3
| | | are there but not in <sys/time.h>.
* Add use of `const' where appropriate to the games.jsm1999-09-081-3/+3
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* Convert to something resembling KNF.simonb1999-08-211-28/+27
|
* use symbolic constants for signals & open(2), as per PR#5867hubertf1998-09-111-3/+3
|
* WARNSifychristos1997-10-121-40/+47
|
* merge with Lite, new RCS id conventions, etc.cgd1995-03-231-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+262