summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sprintf -> snprintf.dholland2009-05-252-7/+9
|
* "abbreviation" has two Bs.dholland2009-05-255-20/+20
|
* Use random() instead of rand(), so we get something like randomdholland2009-05-253-20/+10
| | | | | | | | | numbers out. This changes the "tournament codes"; that is, the same code will give you a different game now from what it used to. (This is because the codes are basically random seeds.) I really really doubt anyone cares about this, especially since the tournament feature appears to be undocumented.
* Remove obviously botched test for "fast mode" based on terminal speed.dholland2009-05-251-8/+5
| | | | | Default to "fast mode" as ~nobody has a 300 baud terminal any more. ("Fast mode" apparently controls whether short-range scans are printed by default at certain times.)
* Use getopt to handle the remaining (all currently undocumented) options.dholland2009-05-251-15/+14
|
* Remove last traces of undocumented -p option (apparently related todholland2009-05-251-19/+2
| | | | process priority) and documented -a option, neither of which have done anything since CSRG days.
* Don't give special privileges to uid 13107.dholland2009-05-251-9/+2
|
* __attribute__((__noreturn__)) -> __deaddholland2009-05-251-5/+5
|
* Null for pointers, not 0.dholland2009-05-251-3/+4
|
* Fix score printing so columns line up.dholland2009-05-251-26/+37
|
* Abolish cgetc(). It contained one line of code, which was wrong.dholland2009-05-246-77/+35
| | | | Call getchar() directly, and handle EOF properly instead of looping (in some cases) or pretending that EOF is 0 (which it isn't).
* Remove unnecessary initialization that silenced a compiler warning in 1997.dholland2009-05-241-3/+3
|
* Sprinkle some blank lines for readability.dholland2009-05-241-2/+15
|
* Split up lines > 80 chars. Object files unchanged.dholland2009-05-2427-166/+280
|
* Don't use literal ^G's in string constants. Use \a.dholland2009-05-242-7/+7
|
* KNF: brace and comment placement. Object files identical.dholland2009-05-2443-734/+440
|
* whitespacedholland2009-05-241-6/+7
|
* KNF: fix formatting of preprocessor directivesdholland2009-05-2412-133/+133
|
* ANSIfy function declarations. No object file diffs except for two functionsdholland2009-05-2446-251/+187
| | | | whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
* KNF. No change to .o file.dholland2009-05-241-7/+7
|
* Change getdate() to getdatestr() since the former maybe present on systemsginsbach2009-05-063-8/+8
| | | | supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
* Remove trailing whitespace.wiz2009-05-041-2/+2
|
* define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160drochner2009-04-201-2/+2
|
* Sort sections.wiz2009-04-121-6/+6
|
* Don't nest displays.joerg2009-04-121-2/+2
|
* Convert to mdoc markup. With input from wiz.joerg2009-04-121-182/+181
|
* \@ is not a valid escape sequence.joerg2009-04-091-2/+2
|
* Avoid hardcoded "too large" constant that caused FPE on the vax.christos2009-03-315-13/+19
| | | XXX: Should pullup to 5.0
* 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...
* grammar fixjnemeth2009-03-151-1/+1
|
* 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
|
* Fix list markup. Use .Ic for key as suggested by wiz.joerg2009-03-111-15/+16
|