Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When using -lcurses, you also need -lterminfo. | 2010-02-06 | 1 | -3/+3 | |
| | | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies. | ||||
* | Close file when finished with it. Found by cppcheck. | 2010-01-17 | 1 | -2/+3 | |
| | |||||
* | sprinkle static | 2009-08-12 | 5 | -15/+14 | |
| | |||||
* | Simplify previous; suggested by Paul Goyette | 2009-03-15 | 1 | -4/+4 | |
| | |||||
* | Fix sign-compare problem that crept in due to working from an old tree. | 2009-03-15 | 1 | -3/+4 | |
| | | | Whoops. won't happen again... | ||||
* | Rework curses handling. | 2009-03-15 | 12 | -133/+688 | |
| | | | | | | | | | 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. | 2009-03-15 | 3 | -64/+89 | |
| | | | | 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. | 2009-03-15 | 3 | -43/+64 | |
| | |||||
* | Fix usage message | 2009-03-14 | 1 | -3/+3 | |
| | |||||
* | chdir to /var/games/sail while running, to simplify name handling. | 2009-03-14 | 3 | -19/+54 | |
| | |||||
* | Don't crosswire the two kinds of path names, and don't croak on | 2009-03-14 | 1 | -4/+4 | |
| | | | scenario numbers > 99. | ||||
* | Turns out the W_FILE message wasn't ever used. | 2009-03-14 | 2 | -19/+4 | |
| | |||||
* | Create some abstraction for sending messages. | 2009-03-14 | 16 | -341/+843 | |
| | | | | | 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. | ||||
* | Don't use perror() | 2009-03-14 | 3 | -12/+10 | |
| | |||||
* | constify the version string | 2009-03-14 | 2 | -5/+5 | |
| | |||||
* | Sprinkle some "bool". And don't use '\0' to mean 'false'. | 2009-03-14 | 5 | -20/+22 | |
| | |||||
* | Use \a instead of \7 for BEL. | 2009-03-14 | 2 | -7/+7 | |
| | |||||
* | Prune a comment referring to objects that (AFAICT) didn't even exist in -r1.1. | 2009-03-14 | 1 | -6/+2 | |
| | |||||
* | Don't cast the return value of calloc(). | 2009-03-14 | 2 | -6/+6 | |
| | |||||
* | Lines <= 80 chars, remove trailing whitespace, other formatting adjustments. | 2009-03-14 | 18 | -192/+253 | |
| | | | No functional change. | ||||
* | Remove some unnecessary casts. | 2009-03-14 | 4 | -17/+17 | |
| | |||||
* | String buffer cleanup. sprintf bad. | 2009-03-14 | 7 | -48/+53 | |
| | |||||
* | Don't use char for random state variables; use int or bool. | 2009-03-14 | 1 | -6/+7 | |
| | |||||
* | sprintf -> snprintf | 2009-03-09 | 1 | -5/+8 | |
| | |||||
* | Move HISTORY to proper place. | 2009-03-02 | 1 | -57/+58 | |
| | |||||
* | Edit. Sync with reality, at least partway. Bump date. | 2009-03-02 | 1 | -129/+173 | |
| | |||||
* | Sort options. End sentence with a dot. | 2009-03-02 | 1 | -8/+7 | |
| | |||||
* | mdocify. Partly merged from OpenBSD. Not by any means perfect yet. | 2009-03-02 | 1 | -410/+527 | |
| | |||||
* | More fixes from OpenBSD: use err instead of perror, don't hork on EOF | 2009-03-02 | 1 | -11/+15 | |
| | | | during the initial setup questions. | ||||
* | Check for failure of fgets when reading the captain's name, and don't | 2009-03-02 | 1 | -4/+5 | |
| | | | allow it to be empty. From OpenBSD. | ||||
* | Use errx() to send fatal error messages. From OpenBSD. | 2009-03-02 | 1 | -4/+4 | |
| | |||||
* | Use errx/warnx instead of printing to stderr. From OpenBSD. | 2009-03-02 | 1 | -5/+5 | |
| | |||||
* | Use err(3) and errx(3), not perror and fprintf to stderr. From OpenBSD. | 2009-03-02 | 1 | -6/+5 | |
| | |||||
* | Braces around a nested if, for clarity; suggested by diffing against OpenBSD. | 2009-03-02 | 1 | -4/+4 | |
| | |||||
* | Remove the \n and tabs from the __COPYRIGHT() strings. | 2008-07-20 | 1 | -4/+4 | |
| | |||||
* | Remove clause 3 and 4 from TNF licenses | 2008-04-28 | 2 | -16/+2 | |
| | |||||
* | Make the default WARNS for games 4. The only game that needs to set WARNS | 2008-01-28 | 1 | -2/+1 | |
| | | | to anything else now is rogue, so clear WARNS from the other makefiles. | ||||
* | Build with WARNS=4. Sort out the game's shadowing of its own variables, | 2008-01-28 | 7 | -66/+68 | |
| | | | which fixes at least one bug. | ||||
* | convert __attribute__s to applicable cdefs.h macros | 2007-12-15 | 2 | -7/+7 | |
| | |||||
* | don't try to switch a char and have a case of EOF - use an int. | 2006-05-18 | 1 | -3/+7 | |
| | |||||
* | fix buffer overflow (CVE-2006-1744), from Debian | 2006-04-20 | 1 | -3/+3 | |
| | |||||
* | Coverity CID 980: Prevent an impossible NULL point deref. | 2006-03-19 | 1 | -3/+3 | |
| | |||||
* | If none of the boarding parties are set do not fall off the end of the | 2006-03-18 | 2 | -5/+5 | |
| | | | | list. Addresses Coverity CID 1507. Also put pointers before shorts in a struct rather than mixing them up | ||||
* | Use standard AUTHORS section header. From YOMURA Masanori in private mail | 2005-09-15 | 1 | -2/+2 | |
| | | | Sort sections if necessary. Use more/better markup. | ||||
* | Add (unsigned char) cast to ctype functions | 2004-11-05 | 4 | -13/+12 | |
| | |||||
* | Replaced strncpy with strlcpy. Thanks to Peter Postma who | 2004-09-07 | 2 | -13/+9 | |
| | | | pointed them our in PR #25762. Approved by christos@NetBSD.org. | ||||
* | Use standard C abs function rather than local macro. | 2004-02-08 | 2 | -4/+4 | |
| | |||||
* | Include <sys/stat.h>. | 2004-01-27 | 1 | -2/+4 | |
| | |||||
* | Include <sys/types.h>. | 2004-01-27 | 1 | -1/+3 | |
| | |||||
* | Use int for wait status. | 2004-01-27 | 1 | -4/+4 | |
| |