summaryrefslogtreecommitdiffstats
path: root/sail
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-1/+1
|
* Use PREFIX nowCameron Katri2021-03-282-6/+8
|
* Get all the games compiling for iOSCameron Katri2021-02-222-7/+22
|
* - enlarge buffer to avoid snprintf() truncationmrg2019-02-031-3/+3
|
* - add or adjust /* FALLTHROUGH */ where appropriatemrg2019-02-031-2/+3
| | | | - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
* temp is a pointer, and tempmax, not sizeof(temp), is the length ofapb2014-03-281-3/+3
| | | the buffer that it points to. Adjust a strlcat() call to suit.
* fix unused variable warningschristos2013-10-191-4/+3
|
* Use __deadjoerg2011-08-291-2/+2
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-262-15/+12
|
* add printf attributes.christos2011-08-251-4/+4
|
* Uses non-literal format stringsjoerg2011-08-251-1/+4
|
* avoid non-literal format stringchristos2011-08-161-8/+8
|
* Don't use variables as format string.joerg2011-05-231-4/+4
|
* Use __c99inline from sys/cdefs.hjoerg2010-12-082-42/+1
|
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-067-200/+1125
| | | 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.
* When using -lcurses, you also need -lterminfo.he2010-02-061-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.wiz2010-01-171-2/+3
|
* sprinkle staticdholland2009-08-125-15/+14
|
* 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-1512-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.dholland2009-03-153-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.dholland2009-03-153-43/+64
|
* Fix usage messagedholland2009-03-141-3/+3
|
* chdir to /var/games/sail while running, to simplify name handling.dholland2009-03-143-19/+54
|
* Don't crosswire the two kinds of path names, and don't croak ondholland2009-03-141-4/+4
| | | scenario numbers > 99.
* Turns out the W_FILE message wasn't ever used.dholland2009-03-142-19/+4
|
* Create some abstraction for sending messages.dholland2009-03-1416-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()dholland2009-03-143-12/+10
|
* constify the version stringdholland2009-03-142-5/+5
|
* Sprinkle some "bool". And don't use '\0' to mean 'false'.dholland2009-03-145-20/+22
|
* Use \a instead of \7 for BEL.dholland2009-03-142-7/+7
|
* Prune a comment referring to objects that (AFAICT) didn't even exist in -r1.1.dholland2009-03-141-6/+2
|
* Don't cast the return value of calloc().dholland2009-03-142-6/+6
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-1418-192/+253
| | | No functional change.
* Remove some unnecessary casts.dholland2009-03-144-17/+17
|
* String buffer cleanup. sprintf bad.dholland2009-03-147-48/+53
|
* Don't use char for random state variables; use int or bool.dholland2009-03-141-6/+7
|
* sprintf -> snprintfdholland2009-03-091-5/+8
|
* Move HISTORY to proper place.dholland2009-03-021-57/+58
|
* Edit. Sync with reality, at least partway. Bump date.dholland2009-03-021-129/+173
|
* Sort options. End sentence with a dot.wiz2009-03-021-8/+7
|
* mdocify. Partly merged from OpenBSD. Not by any means perfect yet.dholland2009-03-021-410/+527
|
* More fixes from OpenBSD: use err instead of perror, don't hork on EOFdholland2009-03-021-11/+15
| | | during the initial setup questions.
* Check for failure of fgets when reading the captain's name, and don'tdholland2009-03-021-4/+5
| | | allow it to be empty. From OpenBSD.
* Use errx() to send fatal error messages. From OpenBSD.dholland2009-03-021-4/+4
|
* Use errx/warnx instead of printing to stderr. From OpenBSD.dholland2009-03-021-5/+5
|
* Use err(3) and errx(3), not perror and fprintf to stderr. From OpenBSD.dholland2009-03-021-6/+5
|
* Braces around a nested if, for clarity; suggested by diffing against OpenBSD.dholland2009-03-021-4/+4
|