summaryrefslogtreecommitdiffstats
path: root/sail/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* Use __deadjoerg2011-08-291-2/+2
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-11/+8
|
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-061-10/+19
| | | and stuff for picking scenarios and ships and all that.
* sprinkle staticdholland2009-08-121-3/+1
|
* Rework curses handling.dholland2009-03-151-8/+2
| | | | | | | | | 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.
* Turns out the W_FILE message wasn't ever used.dholland2009-03-141-2/+1
|
* Create some abstraction for sending messages.dholland2009-03-141-43/+41
| | | | | 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.
* Sprinkle some "bool". And don't use '\0' to mean 'false'.dholland2009-03-141-3/+4
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-141-83/+84
| | | No functional change.
* String buffer cleanup. sprintf bad.dholland2009-03-141-2/+2
|
* If none of the boarding parties are set do not fall off the end of theabs2006-03-181-2/+2
| | | | list. Addresses Coverity CID 1507. Also put pointers before shorts in a struct rather than mixing them up
* Use standard C abs function rather than local macro.jsm2004-02-081-2/+1
|
* Include <sys/types.h>.jsm2004-01-271-1/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-6/+2
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Normalize signature of ship handling functions -- struct ship * from andjwise2001-01-041-3/+3
| | | struct ship * to are now always the first two args.
* Various stylistic nits.jwise2001-01-041-5/+5
|
* More rationalization of include files:jwise2001-01-041-8/+1
| | | | | | | | 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.
* Second half of static-ization of local funcs.jwise2001-01-041-9/+1
|
* G/C undocumented and unimplemented `-D' (debug) option.jwise2001-01-041-2/+1
|
* First half of static-ization of local funcs.jwise2001-01-041-12/+1
|
* ANSIfy in preparation for further work.jwise2001-01-011-4/+4
|
* Use random() instead of rand(), and seed from time(3) instead of from getpid().jwise2000-11-301-2/+2
|
* Change the macro to roll a six-sided die from die() to dieroll() (forjwise2000-11-301-2/+2
| | | obvious reasons of convention).
* ANSIfy in preparation for changes.jwise2000-11-301-99/+99
|
* Fix insecure /tmp usage in sail.jsm2000-02-091-2/+4
| | | | | 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.
* Use separate definitions and extern declarations of variables ratherjsm1999-12-281-26/+26
| | | than linker commons.
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-301-4/+4
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-2/+2
| | | | | | | | | | | | 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).
* Add use of `const' where appropriate to the games.jsm1999-09-081-24/+24
| | | | | | | | | 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.
* The game sail(6) has a function Write() which is used both withhubertf1999-02-101-3/+4
| | | | | | | | | | | | 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>.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* Rename internal move() to move_ship(), as per PR 5841 byhubertf1998-07-251-2/+2
| | | Joseph Myers <jsm@octomino.demon.co.uk>.
* add missing extern to several variables.mrg1998-03-291-10/+10
|
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-4/+9
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-23/+145
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* Change the riggings to ints, so that comparisons against negativethorpej1997-04-191-5/+5
| | | values works as expected on systems with unsigned chars.
* Sync to 4.4BSD-Lite2tls1997-01-071-0/+3
|
* Import from 4.4BSD-Lite2tls1996-12-281-0/+310