Home | History | Annotate | Download | only in monop
History log of /src/games/monop/cards.c
RevisionDateAuthorComments
 1.27  29-Dec-2014  jnemeth PR/49513 - Henning Petersen -- tyop
 1.26  29-Dec-2014  jnemeth PR/49513 - Henning Petersen -- tyop
 1.25  19-Jun-2012  dholland WARNS=5
 1.24  26-Sep-2010  dholland branches: 1.24.6;
Avoid undefined behavior, from Chris Spiegel in PR 43860.
 1.23  24-Feb-2008  christos fix some lint
 1.22  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.21  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.20  23-Feb-2008  dholland Improve the behavior of get-out-of-jail-free cards by returning them to
the bottom of the deck when used. There are still a few other problems.
From OpenBSD.
 1.19  23-Feb-2008  dholland Rename ->last_card to ->top_card to match OpenBSD (and also to make
somewhat more sense...)
 1.18  23-Feb-2008  dholland Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.
 1.17  19-Feb-2008  dholland branches: 1.17.2;
KNF/whitespace nits. No functional changes.
 1.16  19-Feb-2008  dholland Don't use perror(); use err/warn instead.
Suggested by diffing against OpenBSD.
 1.15  28-Jan-2008  dholland Make this build with WARNS=4.
 1.14  27-Jan-2004  jsm branches: 1.14.22;
Remove uses of __P.
 1.13  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.12  12-Aug-2002  itojun calloc() arg mistake. it's (nelem, size). from openbsd
 1.11  30-Dec-1999  simonb Don't use <err.h>. Use ANSI prototypes (no dependance on the __P()
macro). Add new fwrite_be_offt() function which writes out a big-endian
64bit number regards of the size of off_t on the host machine.

Also fix ``bug'' in previous - even though the off_t pointers were
stored big-endian, the individual card lenghs were in host-order. The
cards.pck files are now identical when make on a big- or little-endian
machine.

Now builds a correct cards.pck file on non-NetBSD machines as well
- tested on Ultrix and Solaris (but Solaris needs -lsocket to get
htonl()).
 1.10  09-Sep-1999  jsm Check for failure of malloc() and calloc() at various places in the games.
 1.9  08-Sep-1999  jsm Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
 1.8  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.7  21-Aug-1999  simonb Convert to something resembling KNF.
 1.6  21-Aug-1999  simonb Instead of writing out a structure that contains pointers as the header
of the card decks file, just write out the number of cards for each
deck. Also use "off_t" for offsets into the file (that are stored after
the number of cards) instead of "long".
/usr/share/games/cards.pck is now MI.
 1.5  30-Aug-1998  veego Add braces to make the new egcs happy.
 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.14.22.1  23-Mar-2008  matt sync with HEAD
 1.17.2.1  24-Mar-2008  keiichi sync with head.
 1.24.6.1  30-Oct-2012  yamt sync with head

RSS XML Feed