Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | sprintf -> snprintf | 2009-05-26 | 3 | -18/+26 | ||
| | ||||||
* | attribute noreturn -> __dead | 2009-05-25 | 1 | -3/+3 | ||
| | ||||||
* | We don't need a private #define "unsgn" for "unsigned", especially since | 2009-05-25 | 2 | -5/+4 | ||
| | | | it was used exactly once. | |||||
* | Use the time to call srandom(), not getpid(). | 2009-05-25 | 1 | -3/+4 | ||
| | ||||||
* | KNF/whitespace: format preprocessor directives correctly. | 2009-05-25 | 11 | -147/+147 | ||
| | ||||||
* | ANSIfy function declarations. Object file diffs checked. | 2009-05-25 | 12 | -88/+64 | ||
| | ||||||
* | sprintf -> snprintf | 2009-05-25 | 5 | -16/+24 | ||
| | ||||||
* | ANSIfy function declarations. Object file diffs cross-checked. | 2009-05-25 | 7 | -128/+79 | ||
| | ||||||
* | attribute noreturn -> __dead | 2009-05-25 | 1 | -2/+2 | ||
| | ||||||
* | Clean up scorefile handling. | 2009-05-25 | 2 | -36/+556 | ||
| | | | | | | | | | | | | | | | | | | | | | | This was writing time_t to disk. Worse, the time_t member was at an unaligned offset in the structure in question, so after the time_t change the structure layout depended on compiler-inserted structure padding. This gives three legacy formats: one with 32-bit time, one with 64-bit time, and one with 64-bit time and 4 bytes of structure padding. And of course the file didn't have a header or version coding or anything. The new code writes a structure of well-defined size that should not receive unexpected padding, and gives the file a header and version number. It reads that format and any of the three legacy formats, figuring out which one it's dealing with by inspecting the file contents. For good measure, it also now handles opposite-endian files, doesn't bail out unceremoniously unless necessary, and won't croak if the file is corrupt and e.g. contains unterminated strings. (Was it worth going to this length? Maybe not. But it didn't seem right to just leave it, and it's not clear where to stop halfway.) | |||||
* | ANSIfy function declarations. | 2009-05-25 | 6 | -58/+34 | ||
| | | | | | Some object file diffs, but they are harmless. (Mostly they seem to come from internal counters in gcc... and in one case the order of two instructions was harmlessly swapped, which is odd and annoying.) | |||||
* | Remove description of -a option and optional log file name, since | 2009-05-25 | 1 | -8/+10 | ||
| | | | | | | | neither has done anything in a long long time. Add previously undocumented -s/-f (slow vs. fast) options, although I question the utility thereof and suspect they should just be removed. Bump date (first time since 1993) | |||||
* | sprintf -> snprintf | 2009-05-25 | 1 | -2/+2 | ||
| | ||||||
* | sprintf -> snprintf. | 2009-05-25 | 2 | -7/+9 | ||
| | ||||||
* | "abbreviation" has two Bs. | 2009-05-25 | 5 | -20/+20 | ||
| | ||||||
* | Use random() instead of rand(), so we get something like random | 2009-05-25 | 3 | -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. | 2009-05-25 | 1 | -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. | 2009-05-25 | 1 | -15/+14 | ||
| | ||||||
* | Remove last traces of undocumented -p option (apparently related to | 2009-05-25 | 1 | -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. | 2009-05-25 | 1 | -9/+2 | ||
| | ||||||
* | __attribute__((__noreturn__)) -> __dead | 2009-05-25 | 1 | -5/+5 | ||
| | ||||||
* | Null for pointers, not 0. | 2009-05-25 | 1 | -3/+4 | ||
| | ||||||
* | Fix score printing so columns line up. | 2009-05-25 | 1 | -26/+37 | ||
| | ||||||
* | Abolish cgetc(). It contained one line of code, which was wrong. | 2009-05-24 | 6 | -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. | 2009-05-24 | 1 | -3/+3 | ||
| | ||||||
* | Sprinkle some blank lines for readability. | 2009-05-24 | 1 | -2/+15 | ||
| | ||||||
* | Split up lines > 80 chars. Object files unchanged. | 2009-05-24 | 27 | -166/+280 | ||
| | ||||||
* | Don't use literal ^G's in string constants. Use \a. | 2009-05-24 | 2 | -7/+7 | ||
| | ||||||
* | KNF: brace and comment placement. Object files identical. | 2009-05-24 | 43 | -734/+440 | ||
| | ||||||
* | whitespace | 2009-05-24 | 1 | -6/+7 | ||
| | ||||||
* | KNF: fix formatting of preprocessor directives | 2009-05-24 | 12 | -133/+133 | ||
| | ||||||
* | ANSIfy function declarations. No object file diffs except for two functions | 2009-05-24 | 46 | -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. | 2009-05-24 | 1 | -7/+7 | ||
| | ||||||
* | Change getdate() to getdatestr() since the former maybe present on systems | 2009-05-06 | 3 | -8/+8 | ||
| | | | | supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict. | |||||
* | Remove trailing whitespace. | 2009-05-04 | 1 | -2/+2 | ||
| | ||||||
* | define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 | 2009-04-20 | 1 | -2/+2 | ||
| | ||||||
* | Sort sections. | 2009-04-12 | 1 | -6/+6 | ||
| | ||||||
* | Don't nest displays. | 2009-04-12 | 1 | -2/+2 | ||
| | ||||||
* | Convert to mdoc markup. With input from wiz. | 2009-04-12 | 1 | -182/+181 | ||
| | ||||||
* | \@ is not a valid escape sequence. | 2009-04-09 | 1 | -2/+2 | ||
| | ||||||
* | Avoid hardcoded "too large" constant that caused FPE on the vax. | 2009-03-31 | 5 | -13/+19 | ||
| | | | XXX: Should pullup to 5.0 | |||||
* | 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... | |||||
* | grammar fix | 2009-03-15 | 1 | -1/+1 | ||
| | ||||||
* | 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. |