drochner
0fa7059102
define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
2009-04-20 16:05:29 +00:00
wiz
6d5f9e9307
Sort sections.
2009-04-12 18:31:47 +00:00
joerg
b0c28ab299
Don't nest displays.
2009-04-12 16:58:57 +00:00
joerg
fdd399fcf8
Convert to mdoc markup. With input from wiz.
2009-04-12 16:57:02 +00:00
joerg
f10218e541
\@ is not a valid escape sequence.
2009-04-09 03:52:54 +00:00
christos
6fb300657f
Avoid hardcoded "too large" constant that caused FPE on the vax.
...
XXX: Should pullup to 5.0
2009-03-31 18:48:16 +00:00
dholland
d7038c0ebc
Simplify previous; suggested by Paul Goyette
2009-03-15 22:19:23 +00:00
dholland
b2008ab5d1
Fix sign-compare problem that crept in due to working from an old tree.
...
Whoops. won't happen again...
2009-03-15 20:11:24 +00:00
jnemeth
fbf3f5b411
grammar fix
2009-03-15 05:44:57 +00:00
dholland
87d1d157b3
Rework curses handling.
...
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.
2009-03-15 03:33:56 +00:00
dholland
5368eaecca
Move newturn() from pl_7 to pl_2.
...
pl_7 was mostly curses/display stuff, is going to be all display stuff.
pl_2 is where the main loop lives.
2009-03-15 00:50:47 +00:00
dholland
842019525c
Move all curses bits to pl_7.c.
2009-03-15 00:35:42 +00:00
dholland
81060ec63a
Fix usage message
2009-03-14 23:51:35 +00:00
dholland
cb17dc26ee
chdir to /var/games/sail while running, to simplify name handling.
2009-03-14 23:47:18 +00:00
dholland
86056f1213
Don't crosswire the two kinds of path names, and don't croak on
...
scenario numbers > 99.
2009-03-14 23:12:20 +00:00
dholland
0c94ee2110
Turns out the W_FILE message wasn't ever used.
2009-03-14 22:54:05 +00:00
dholland
e544d2b874
Create some abstraction for sending messages.
...
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.
2009-03-14 22:52:52 +00:00
dholland
32aeef110b
Don't use perror()
2009-03-14 20:14:56 +00:00
dholland
2a767ad336
constify the version string
2009-03-14 20:10:43 +00:00
dholland
49bf5e73fa
Sprinkle some "bool". And don't use '\0' to mean 'false'.
2009-03-14 20:04:43 +00:00
dholland
ac571eb080
Use \a instead of \7 for BEL.
2009-03-14 19:57:14 +00:00
dholland
4c26b16462
Prune a comment referring to objects that (AFAICT) didn't even exist in -r1.1.
2009-03-14 19:55:16 +00:00
dholland
3b67879708
Don't cast the return value of calloc().
2009-03-14 19:36:42 +00:00
dholland
b8c43a1f9c
Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.
...
No functional change.
2009-03-14 19:35:13 +00:00
dholland
9a83480957
Remove some unnecessary casts.
2009-03-14 18:41:21 +00:00
dholland
25e9926383
String buffer cleanup. sprintf bad.
2009-03-14 18:32:47 +00:00
dholland
1bb89ee28f
Don't use char for random state variables; use int or bool.
2009-03-14 17:10:01 +00:00
joerg
6ffb688fd8
Fix list markup. Use .Ic for key as suggested by wiz.
2009-03-11 16:37:06 +00:00
joerg
aee82d7c52
Fix preamble
2009-03-11 13:06:10 +00:00
joerg
a62737a7d9
Remove redundant .br
2009-03-11 13:05:59 +00:00
joerg
c173c17186
Fix markup
2009-03-11 13:05:46 +00:00
joerg
25e7748736
Fix preamble
2009-03-11 13:01:49 +00:00
joerg
e8103a8e17
Fix markup
2009-03-11 13:00:37 +00:00
dholland
265bf6cfdf
sprintf -> snprintf
2009-03-09 04:38:39 +00:00
dholland
6b7874a086
Move HISTORY to proper place.
2009-03-02 10:16:54 +00:00
dholland
442e8c0016
Edit. Sync with reality, at least partway. Bump date.
2009-03-02 10:14:41 +00:00
wiz
a14b6c39ff
Sort options. End sentence with a dot.
2009-03-02 09:39:10 +00:00
dholland
3a16d1fa6d
mdocify. Partly merged from OpenBSD. Not by any means perfect yet.
2009-03-02 09:23:57 +00:00
dholland
f521abdfac
More fixes from OpenBSD: use err instead of perror, don't hork on EOF
...
during the initial setup questions.
2009-03-02 07:33:30 +00:00
dholland
53cddab9f9
Check for failure of fgets when reading the captain's name, and don't
...
allow it to be empty. From OpenBSD.
2009-03-02 07:21:56 +00:00
dholland
51cc47ce79
Use errx() to send fatal error messages. From OpenBSD.
2009-03-02 07:17:24 +00:00
dholland
ffb1e863de
Use errx/warnx instead of printing to stderr. From OpenBSD.
2009-03-02 06:54:01 +00:00
dholland
96e08ad443
Use err(3) and errx(3), not perror and fprintf to stderr. From OpenBSD.
2009-03-02 06:44:22 +00:00
dholland
da767c0864
Braces around a nested if, for clarity; suggested by diffing against OpenBSD.
2009-03-02 06:43:53 +00:00
dholland
b34a85f960
Fix bogus conditional caught by today's make. It looks as if MKHIDEGAME
...
has never worked since it was introduced in 2002... clearly a lot of
people care about that.
It should work now, but because it's evidently never been tested it
may also require setlist adjustments.
2009-01-18 20:22:45 +00:00
tnn
f341bbffe8
use %zu to print size_t
2009-01-18 13:30:33 +00:00
lukem
c6144e484f
fix -Wsign-compare issues
2009-01-18 00:24:29 +00:00
wiz
a3fb1878ab
Fix fiance/fiancee confusion. Fix another typo.
...
Jason McIntyre <jmc@kerhand.co.uk>.
2008-12-02 14:21:26 +00:00
wiz
999da72c23
Fix insure -> ensure confusion. From Jason McIntyre <jmc@kerhand.co.uk>.
2008-12-02 14:21:02 +00:00
christos
e62c26811d
PR/39923: Valery Ushakov: trek(6) can spin, consuming 100% CPU on powerpc
...
On systems where char is unsigned the number of black holes can end up being
very large (instead of negative).
2008-11-14 21:10:44 +00:00