Home | History | Annotate | Download | only in monop
History log of /src/games/monop/execute.c
RevisionDateAuthorComments
 1.22  19-Jun-2012  dholland WARNS=5
 1.21  24-Feb-2008  dholland branches: 1.21.6;
Don't crash if we're asked to restore from /dev/null. (woops)
 1.20  24-Feb-2008  dholland Fix some more lint. (There's plenty to go around.)

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.
 1.19  24-Feb-2008  christos fix some lint
 1.18  24-Feb-2008  dholland Abolish the initdeck program and the weird little binary file it generates.
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.)
 1.17  24-Feb-2008  dholland Source files should be named *.c or *.h, not random other things.

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.
 1.16  24-Feb-2008  dholland Remove last traces of old save/load code. We no longer need a private
copy of malloc.
 1.15  24-Feb-2008  dholland New save/load code. Related to (but not the same as) the new save/load
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.
 1.14  19-Feb-2008  dholland branches: 1.14.2;
KNF/whitespace nits. No functional changes.
 1.13  19-Feb-2008  dholland Don't use perror(); use err/warn instead.
Suggested by diffing against OpenBSD.
 1.12  28-Jan-2008  dholland Make this build with WARNS=4.
 1.11  27-Jan-2004  jsm branches: 1.11.22;
Remove uses of __P.
 1.10  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.9  21-Apr-2003  christos PR/8247: Simon Burge: monop(6) save/restore doesn't work.
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.
 1.8  29-Aug-2001  jsm Include <time.h> for declarations the Single Unix Specification says
are there but not in <sys/time.h>.
 1.7  08-Sep-1999  jsm Add use of `const' where appropriate to the games.

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.
 1.6  21-Aug-1999  simonb Convert to something resembling KNF.
 1.5  11-Sep-1998  hubertf use symbolic constants for signals & open(2), as per PR#5867
 1.4  12-Oct-1997  christos WARNSify
 1.3  23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  21-Mar-1995  cgd from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.22.1  23-Mar-2008  matt sync with HEAD
 1.14.2.1  24-Mar-2008  keiichi sync with head.
 1.21.6.1  30-Oct-2012  yamt sync with head

RSS XML Feed