summaryrefslogtreecommitdiffstats
path: root/monop/trade.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=5dholland2012-06-191-12/+9
|
* Source files should be named *.c or *.h, not random other things.dholland2008-02-241-3/+3
| | | | | | | | 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.
* Sort out the memory leak fix properly.dholland2008-02-241-5/+3
|
* Fixes from OpenBSD.dholland2008-02-231-4/+10
| | | | | | | | | | - If a player goes bankrupt buying a property (which shouldn't be allowed, but I guess it is), don't cause them to resign to themselves. - Use "NULL", not "0", for pointers. - Avoid undefined behavior adjusting the current player after resigning. - Don't leak the memory used to store player names. The last of these is disabled for the moment because we have the pointers in question tagged const. Will see to this when I'm finished merging.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* KNF/whitespace nits. No functional changes.dholland2008-02-191-5/+5
|
* Make this build with WARNS=4.dholland2008-01-281-8/+8
|
* Remove uses of __P.jsm2004-01-271-7/+7
|
* 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.
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-301-3/+3
|
* 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-29/+28
|
* WARNSifychristos1997-10-121-29/+50
|
* 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/+306