summaryrefslogtreecommitdiffstats
path: root/sail/pl_5.c
Commit message (Collapse)AuthorAgeFilesLines
* Build with WARNS=4. Sort out the game's shadowing of its own variables,dholland2008-01-281-5/+6
| | | which fixes at least one bug.
* If none of the boarding parties are set do not fall off the end of theabs2006-03-181-3/+3
| | | | list. Addresses Coverity CID 1507. Also put pointers before shorts in a struct rather than mixing them up
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-3/+3
|
* 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.
* remove redundant decls.christos2001-02-051-4/+2
|
* need string.h for prototype (checked with alpha)itojun2001-01-041-2/+3
|
* Normalize signature of ship handling functions -- struct ship * from andjwise2001-01-041-7/+7
| | | struct ship * to are now always the first two args.
* Break out curses display-related globals into a new header file, so thatjwise2001-01-041-2/+5
| | | <curses.h> doesn't have to be included all over the place.
* More rationalization of include files:jwise2001-01-041-2/+4
| | | | | | | | 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.
* Rationalize inclusion of header files: cut down on `include everythingjwise2001-01-041-2/+3
| | | | everywhere' a little (more to go), and as per KNF, local includes after system includes.
* Second half of static-ization of local funcs.jwise2001-01-041-3/+7
|
* ANSIfy in preparation for further work.jwise2001-01-011-21/+17
|
* The game sail(6) has a function Write() which is used both withhubertf1999-02-101-6/+6
| | | | | | | | | | | | 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>.
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-7/+6
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-27/+26
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-3/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, NetBSD RCS IDscgd1995-04-221-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+254