Home | History | Annotate | Download | only in sail
History log of /src/games/sail/pl_main.c
RevisionDateAuthorComments
 1.27  06-Aug-2010  dholland Rework the game startup so it uses curses nicely. There are now menus
and stuff for picking scenarios and ships and all that.
 1.26  15-Mar-2009  dholland Rework curses handling.

The most visible change is that the scrolling buffer of messages now
actually scrolls and keeps history, and you type on the bottom line only.
For now you can page through the history with ^P/^N; that's not ideal but
one can't fix everything all at once.

Use resizeable array code (roughly the same that I floated a while ago
in connection with make) to hold the scroll.
 1.25  14-Mar-2009  dholland Create some abstraction for sending messages.
Make a send and receive function for each possible message.
Make these have useful argument signatures.
Hide the list of message codes inside sync.c.
 1.24  14-Mar-2009  dholland Don't use perror()
 1.23  14-Mar-2009  dholland Don't cast the return value of calloc().
 1.22  14-Mar-2009  dholland Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.
No functional change.
 1.21  14-Mar-2009  dholland Remove some unnecessary casts.
 1.20  14-Mar-2009  dholland String buffer cleanup. sprintf bad.
 1.19  02-Mar-2009  dholland More fixes from OpenBSD: use err instead of perror, don't hork on EOF
during the initial setup questions.
 1.18  02-Mar-2009  dholland Check for failure of fgets when reading the captain's name, and don't
allow it to be empty. From OpenBSD.
 1.17  20-Apr-2006  drochner branches: 1.17.28;
fix buffer overflow (CVE-2006-1744), from Debian
 1.16  07-Aug-2003  agc branches: 1.16.2; 1.16.4; 1.16.6; 1.16.8; 1.16.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.15  05-Feb-2001  christos remove redundant decls.
 1.14  04-Jan-2001  jwise Break out curses display-related globals into a new header file, so that
<curses.h> doesn't have to be included all over the place.
 1.13  04-Jan-2001  jwise More rationalization of include files:

a.) Don't include a zillion system headers from "extern.h" (actually, don't
include any).
b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't
have to be pulled in everywhere (it's only used in two places).

The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
 1.12  04-Jan-2001  jwise Rationalize inclusion of header files: cut down on `include everything
everywhere' a little (more to go), and as per KNF, local includes after
system includes.
 1.11  04-Jan-2001  jwise Second half of static-ization of local funcs.
 1.10  04-Jan-2001  jwise De-`register'
 1.9  01-Jan-2001  jwise Missed commit -- ANSIfy in preparation for further work.
 1.8  31-Jan-2000  jsm Don't initialise curses until after the initial non-curses setup (the
choice of scenario uses puts() rather than curses functions).
 1.7  10-Feb-1999  hubertf The game sail(6) has a function Write() which is used both with
integer arguments and with string arguments (cast to long, and in one
place to int). The patch here cleans this up, making it into two
separate functions; this allows for the game to be made const-correct
in future and improves portability.

The patch also contains two other fragments: a change to use the
symbolic constant SEEK_END with fseek(), and a change to use snprintf
in one place to avoid a buffer overrun.

Via PR 6569 by Joseph Myers <jsm28@cam.ac.uk>.
 1.6  13-Oct-1997  christos Warns fixes:
use varargs properly
use unsigned chars where appropriate
fix typos
eliminate gcc warnings
 1.5  24-Apr-1995  cgd Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
 1.4  22-Apr-1995  cgd clean up import, NetBSD RCS IDs
 1.3  13-Jan-1994  glass fixed to use fgets()
 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  22-Apr-1995  cgd src/games/sail from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.10.1  25-Apr-2006  snj Pull up following revision(s) (requested by drochner in ticket #1289):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
 1.16.8.1  26-Apr-2006  snj Pull up following revision(s) (requested by drochner in ticket #10504):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
 1.16.6.1  25-Apr-2006  snj Pull up following revision(s) (requested by drochner in ticket #1289):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
 1.16.4.1  25-Apr-2006  snj Pull up following revision(s) (requested by drochner in ticket #10504):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
 1.16.2.1  26-Apr-2006  snj Pull up following revision(s) (requested by drochner in ticket #10504):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
 1.17.28.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed