summaryrefslogtreecommitdiffstats
path: root/sail/pl_7.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-4/+4
|
* add printf attributes.christos2011-08-251-4/+4
|
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-061-6/+882
| | | and stuff for picking scenarios and ships and all that.
* Don't define esc-[ as a custom key sequence because it steps on vtdholland2010-08-061-3/+5
| | | function keys.
* sprinkle staticdholland2009-08-121-4/+4
|
* Simplify previous; suggested by Paul Goyettedholland2009-03-151-4/+4
|
* Fix sign-compare problem that crept in due to working from an old tree.dholland2009-03-151-3/+4
| | | Whoops. won't happen again...
* Rework curses handling.dholland2009-03-151-68/+245
| | | | | | | | | 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.
* Move newturn() from pl_7 to pl_2.dholland2009-03-151-61/+27
| | | | pl_7 was mostly curses/display stuff, is going to be all display stuff. pl_2 is where the main loop lives.
* Move all curses bits to pl_7.c.dholland2009-03-151-10/+53
|
* Create some abstraction for sending messages.dholland2009-03-141-6/+6
| | | | | 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.
* Use \a instead of \7 for BEL.dholland2009-03-141-4/+4
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-141-5/+5
| | | No functional change.
* Use errx() to send fatal error messages. From OpenBSD.dholland2009-03-021-4/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-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.
* 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.
* remove redundant decls.christos2001-02-051-23/+2
|
* include stdlib.h for prototypes (typically for exit()).cgd2001-01-161-2/+3
|
* need string.h for prototype (checked with alpha)itojun2001-01-041-2/+3
|
* Various stylistic nits.jwise2001-01-041-7/+9
|
* 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/+3
| | | | | | | | 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-9/+4
| | | | 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-8/+28
|
* ANSIfy in preparation for further work.jwise2001-01-011-166/+133
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+3
|
* Don't initialise curses until after the initial non-curses setup (thejsm2000-01-311-2/+6
| | | choice of scenario uses puts() rather than curses functions).
* Use separate definitions and extern declarations of variables ratherjsm1999-12-281-2/+18
| | | than linker commons.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+3
| | | | | | | | | | | | 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-12/+12
| | | | | | | | | 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-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>.
* Add braces to make the new egcs happy.veego1998-08-301-4/+6
|
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-11/+6
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-20/+89
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* clean up import, NetBSD RCS IDscgd1995-04-221-4/+11
|
* new cursescgd1993-11-101-18/+1
|
* Use '\a', not CTRL('g').mycroft1993-08-101-2/+2
|
* Pass the signal number to tstp().mycroft1993-08-101-2/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+481