summaryrefslogtreecommitdiffstats
path: root/sail
Commit message (Collapse)AuthorAgeFilesLines
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0729-197/+81
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* PDP-11 instead of PDP 11. Igor Sobrado in PR 19678.wiz2003-03-301-2/+2
|
* Mdoc nits -- unneeded ".wiz2002-09-261-2/+2
|
* Ispell.wiz2002-09-261-3/+2
|
* New sentences begin on new lines.wiz2002-09-261-191/+271
| | | Patch from Richard Elz, slightly improved by yours truly.
* Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross2002-02-081-6/+6
|
* Changed deprecated curses call to new equivalent.blymn2001-12-061-3/+3
|
* va_{start,end} audit:wiz2001-09-241-4/+4
| | | | | | | | | | | | | Make sure that each va_start has one and only one matching va_end, especially in error cases. If the va_list is used multiple times, do multiple va_starts/va_ends. If a function gets va_list as argument, don't let it use va_end (since it's the callers responsibility). Improved by comments from enami and christos -- thanks! Heimdal/krb4/KAME changes already fed back, rest to follow. Inspired by, but not not based on, OpenBSD.
* Include <time.h> for declarations the Single Unix Specification saysjsm2001-08-291-2/+3
| | | are there but not in <sys/time.h>.
* Whitespace and/or punctuation fixes.wiz2001-04-021-32/+32
|
* remove redundant decls.christos2001-02-0520-132/+40
|
* include stdlib.h for prototypes (typically for exit()).cgd2001-01-163-6/+9
|
* need string.h for prototype (checked with alpha)itojun2001-01-043-6/+9
|
* Normalize signature of ship handling functions -- struct ship * from andjwise2001-01-048-54/+54
| | | struct ship * to are now always the first two args.
* Various stylistic nits.jwise2001-01-048-36/+40
|
* Use License templates from localsrc for license on new files.jwise2001-01-042-4/+18
|
* Break out curses display-related globals into a new header file, so thatjwise2001-01-0410-32/+73
| | | <curses.h> doesn't have to be included all over the place.
* More rationalization of include files:jwise2001-01-0421-46/+100
| | | | | | | | 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-0416-67/+61
| | | | 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-0412-42/+104
|
* G/C undocumented and unimplemented `-D' (debug) option.jwise2001-01-043-11/+6
|
* First half of static-ization of local funcs.jwise2001-01-049-40/+69
|
* De-`register'jwise2001-01-041-5/+5
|
* Fix getopt usage (again) in case where user does not choose a scenario onjwise2001-01-011-2/+5
| | | the command line.
* Missed commit -- ANSIfy in preparation for further work.jwise2001-01-011-27/+27
|
* Fix getopt() usage.jwise2001-01-011-3/+3
|
* ANSIfy in preparation for further work.jwise2001-01-0121-481/+328
|
* Fix warning.jwise2000-11-301-3/+3
|
* Use random() instead of rand(), and seed from time(3) instead of from getpid().jwise2000-11-302-5/+5
|
* Change the macro to roll a six-sided die from die() to dieroll() (forjwise2000-11-308-33/+32
| | | obvious reasons of convention).
* ANSIfy in preparation for changes.jwise2000-11-301-99/+99
|
* Use getopt(3) for flag processing.jwise2000-11-301-5/+11
|
* Fix style nit.jwise2000-11-301-3/+3
|
* ANSIfy in preparation for other changes.jwise2000-11-301-6/+4
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-033-6/+9
|
* Don't make /var/games/sail here.mycroft2000-06-111-8/+1
|
* avoid failure on "make install" when /var/games/sail already exists.itojun2000-02-121-2/+2
|
* Fix insecure /tmp usage in sail.jsm2000-02-098-29/+72
| | | | | 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.
* Don't initialise curses until after the initial non-curses setup (thejsm2000-01-312-8/+8
| | | choice of scenario uses puts() rather than curses functions).
* Use separate definitions and extern declarations of variables ratherjsm1999-12-284-45/+82
| | | than linker commons.
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-304-22/+22
|
* Fix some uses of NULL as non-pointer and 0 for null pointer.jsm1999-09-171-3/+4
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+3
| | | are used.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-3/+3
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-083-9/+9
| | | | | | | | | | | | 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-0810-81/+85
| | | | | | | | | 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.
* initscr() returns a pointer, compare return value with NULL and notsimonb1999-04-181-3/+3
| | | | an int. Compatible with other versions of curses.
* The game sail(6) has a function Write() which is used both withhubertf1999-02-1016-123/+141
| | | | | | | | | | | | 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
|
* remove unused files (PR#6083 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-134-20/+0
|