Home | History | Annotate | Download | only in sail
History log of /src/games/sail/extern.h
RevisionDateAuthorComments
 1.38  29-Aug-2011  joerg Use __dead
 1.37  26-Aug-2011  dholland Use __dead and __printflike instead of __attribute__.
 1.36  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.35  12-Aug-2009  dholland sprinkle static
 1.34  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.33  14-Mar-2009  dholland Turns out the W_FILE message wasn't ever used.
 1.32  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.31  14-Mar-2009  dholland Sprinkle some "bool". And don't use '\0' to mean 'false'.
 1.30  14-Mar-2009  dholland Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.
No functional change.
 1.29  14-Mar-2009  dholland String buffer cleanup. sprintf bad.
 1.28  18-Mar-2006  abs branches: 1.28.28;
If none of the boarding parties are set do not fall off the end of the
list. Addresses Coverity CID 1507. Also put pointers before shorts in
a struct rather than mixing them up
 1.27  08-Feb-2004  jsm Use standard C abs function rather than local macro.
 1.26  27-Jan-2004  jsm Include <sys/types.h>.
 1.25  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.24  04-Jan-2001  jwise Normalize signature of ship handling functions -- struct ship * from and
struct ship * to are now always the first two args.
 1.23  04-Jan-2001  jwise Various stylistic nits.
 1.22  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.21  04-Jan-2001  jwise Second half of static-ization of local funcs.
 1.20  04-Jan-2001  jwise G/C undocumented and unimplemented `-D' (debug) option.
 1.19  04-Jan-2001  jwise First half of static-ization of local funcs.
 1.18  01-Jan-2001  jwise ANSIfy in preparation for further work.
 1.17  30-Nov-2000  jwise Use random() instead of rand(), and seed from time(3) instead of from getpid().
 1.16  30-Nov-2000  jwise Change the macro to roll a six-sided die from die() to dieroll() (for
obvious reasons of convention).
 1.15  30-Nov-2000  jwise ANSIfy in preparation for changes.
 1.14  09-Feb-2000  jsm Fix insecure /tmp usage in sail.

Essentially concludes the merge into NetBSD of those changes in the
Linux port of the NetBSD games which it is fairly clear to me should
be so merged.
 1.13  28-Dec-1999  jsm branches: 1.13.2;
Use separate definitions and extern declarations of variables rather
than linker commons.
 1.12  30-Sep-1999  jsm Fix uses of namespaces reserved by ISO C or POSIX.1.
 1.11  08-Sep-1999  jsm branches: 1.11.2;
Add `__noreturn__' and `__unused__' attributes 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).

Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082. Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
 1.10  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.9  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.8  13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.7  25-Jul-1998  hubertf Rename internal move() to move_ship(), as per PR 5841 by
Joseph Myers <jsm@octomino.demon.co.uk>.
 1.6  29-Mar-1998  mrg add missing extern to several variables.
 1.5  13-Oct-1997  christos - make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
 1.4  13-Oct-1997  christos Warns fixes:
use varargs properly
use unsigned chars where appropriate
fix typos
eliminate gcc warnings
 1.3  19-Apr-1997  thorpej Change the riggings to ints, so that comparisons against negative
values works as expected on systems with unsigned chars.
 1.2  07-Jan-1997  tls Sync to 4.4BSD-Lite2
 1.1  28-Dec-1996  tls branches: 1.1.1;
Initial revision
 1.1.1.1  28-Dec-1996  tls Import from 4.4BSD-Lite2
 1.11.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.13.2.1  21-Jan-2000  jdc Update for SUS v2 curses - printw takes `char *format' not `const char *format'
 1.28.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