History log of /openbsd-current/games/mille/move.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.17 08-Jan-2016 mestre

ANSIfy mille(6)

OK tb@


# 1.16 08-Jan-2016 mestre

Headers cleanup and also the following:

mille.h:
#define CTRL locally, which is used by move.c and misc.c, to avoid including
termios.h or sys/ttydefaults.h where it's actually defined

varpush.c:
Change _PATH_DEVNULL to "/dev/null" since other systems may not have it defined
but also avoids including <paths.h>

Included a few sugestions from tb@ who also gave his OK


# 1.15 04-Nov-2015 tedu

replace setbuf with setvbuf, from Frederic Nowak


# 1.14 24-Oct-2015 mmcc

Cast ctype functions' arguments to unsigned char.

ok guenther@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 16-Nov-2014 guenther

Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,
and <sys/ttydefaults.h>
Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX
Pull in <limits.h> where needed
Prefer sizeof(var) over MAXFOO or FOO_MAX

ok deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.12 10-Dec-2009 beck

fix potential bugs spotted by parfait
ok millert@ pjanzen@


# 1.11 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.10 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 03-Sep-2001 pjanzen

Tidying, some from NetBSD.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.8 05-Aug-2000 pjanzen

Remove a little redundant and slightly wrong code


Revision tags: OPENBSD_2_7_BASE
# 1.7 25-Nov-1999 pjanzen

Fix an obscure bug involving misidentified coup fourres.


Revision tags: OPENBSD_2_6_BASE
# 1.6 30-Sep-1999 pjanzen

Disallow "Go" after "Right of Way" and change Battle Pile status to "Go" when
appropriate when playing "Right of Way".


# 1.5 25-Sep-1999 pjanzen

Tidying and minor changes from or based on jsm28@cam.ac.uk's work for the
Linux bsd-games package and NetBSD. Mainly using 'const'.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.4 22-Sep-1998 pjanzen

NetBSD changes and further fixes (reformatted man page, better handling of
user input).


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 01-Apr-1997 rahnds

Changes from NetBSD to compile games without warnings due to short being
unsigned on some archs, PowerPC, ROMP.


Revision tags: OPENBSD_2_0_BASE
# 1.2 02-Jun-1996 tholo

Update for modern curses implementation


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision