Commit graph

416 commits

Author SHA1 Message Date
Jason S. Ninneman
a4da53086b Zero-index the lookup tables and the code that references them. 2017-06-10 15:34:21 -07:00
Jason S. Ninneman
e7906b4ca3 Replace advent character constants with lookups. 2017-06-10 15:27:38 -07:00
Jason S. Ninneman
b905b5fb0f Keep ascii_to_advent[] numeric. Using char literals was misleading. 2017-06-10 14:31:50 -07:00
Jason S. Ninneman
e586f7c61f Add missing common.c. 2017-06-10 13:52:50 -07:00
Jason S. Ninneman
1173a9a265 Use a header/source set common to both advent and the dungeon builder. 2017-06-10 13:37:26 -07:00
Eric S. Raymond
0e160a665e Documentaion polishing. 2017-06-10 14:55:48 -04:00
Eric S. Raymond
dd2a949730 Structuring move. 2017-06-10 14:24:34 -04:00
Eric S. Raymond
d3e84846d3 Readability fix. 2017-06-10 13:58:18 -04:00
Eric S. Raymond
b92fb66c44 Last goto removed from actions.c 2017-06-10 13:43:17 -04:00
Eric S. Raymond
f6da31f689 Just one label left in actions.c. 2017-06-10 13:31:48 -04:00
Eric S. Raymond
e6f183ba7f Use C idioms for increment/decrement. 2017-06-10 12:38:40 -04:00
Eric S. Raymond
d8e30c69c7 Date typo fix. 2017-06-10 07:20:26 -04:00
Eric S. Raymond
62e1fddd1d Cosmetic fix: blank line before filename prompt...
...in the style of the original.
2017-06-10 07:19:26 -04:00
Eric S. Raymond
9e8e0893dc Rewrite save/resume in idiomatic C. Savefile version bumped to 26. 2017-06-10 07:13:23 -04:00
Eric S. Raymond
3af993abca Isolate the grotty save/resume code. Most of it will soon go away. 2017-06-10 05:38:47 -04:00
Eric S. Raymond
4c5474121f Unbreak the tests.
linenoise doesn't eco its prompt to stdout, which messed them up.
2017-06-10 05:35:35 -04:00
Eric S. Raymond
63e971fc4c Enable input editing with the linenoise library. 2017-06-10 05:11:29 -04:00
Eric S. Raymond
037f1df7dd Change NAPLIN signature - prepration for linenoise. 2017-06-10 01:42:53 -04:00
Eric S. Raymond
9bac28878d Replace magic linenumbers with a clearer enum. 2017-06-10 00:23:28 -04:00
Eric S. Raymond
b22d6a65b9 More goto eliminations. 2017-06-09 17:22:20 -04:00
Eric S. Raymond
6319d27481 Whitespace fixes. 2017-06-09 17:14:18 -04:00
Eric S. Raymond
058e566e60 Whuirespace-only change. 2017-06-09 16:53:15 -04:00
Eric S. Raymond
b425de4f28 Continuing gotoicide. 2017-06-09 14:18:09 -04:00
Eric S. Raymond
c8ebabdf3b Still more gotoicides. 2017-06-09 13:49:19 -04:00
Eric S. Raymond
3c053367a5 Factor out player movement logic. 2017-06-09 13:36:39 -04:00
Eric S. Raymond
6862a92650 Another gotoicide. 2017-06-09 13:36:39 -04:00
Eric S. Raymond
d23235e902 Another gotoicide. 2017-06-09 13:36:39 -04:00
Jason S. Ninneman
bea58f2682 Render the ascii<->advent character code mappings to lookup tables. 2017-06-09 09:16:35 -07:00
Eric S. Raymond
2c33a29cf1 Replace an unstructured goto with a two-level break. 2017-06-09 12:09:47 -04:00
Eric S. Raymond
733312bdc7 Label and global-variable elimination. 2017-06-09 12:04:45 -04:00
Eric S. Raymond
64897f132e Abolish global variable I. 2017-06-09 11:53:02 -04:00
Eric S. Raymond
fd2155b2f2 Localize I. 2017-06-09 11:47:55 -04:00
Eric S. Raymond
db8dc40b84 Abolish a silly layer of macros. 2017-06-09 11:36:49 -04:00
Eric S. Raymond
b1fafc4d4d Eliminate an unused global. 2017-06-09 11:23:04 -04:00
Eric S. Raymond
0a4325ce45 Eliminate a global variable. 2017-06-09 11:19:47 -04:00
Eric S. Raymond
42b339a1b6 Abolish global variable L. 2017-06-09 11:14:04 -04:00
Eric S. Raymond
4df8fac952 Abolish global variable J. 2017-06-09 11:13:03 -04:00
Eric S. Raymond
2606284916 Remove objectioonable uses of global variables. 2017-06-09 10:39:12 -04:00
Eric S. Raymond
37117f20e0 Eliminate objectionable use of global. 2017-06-09 10:17:13 -04:00
Eric S. Raymond
9ecbfa2ca8 Reformat actions.c, no code changes. 2017-06-09 10:00:28 -04:00
Eric S. Raymond
54d22714d9 Suspend/resume handler. 2017-06-09 09:54:23 -04:00
Eric S. Raymond
652e4ed733 Mass goto removal. Switch now calls handlers directly. 2017-06-09 09:04:26 -04:00
Eric S. Raymond
dd9bbe1f00 Because (almost) everything is done in handlers now, merge the action files. 2017-06-09 08:54:03 -04:00
Eric S. Raymond
2abc833504 read() and reservoir() handlers. 2017-06-09 08:38:11 -04:00
Eric S. Raymond
f47745a7c4 Yet more action handlers. 2017-06-09 08:21:14 -04:00
Eric S. Raymond
08ed2af230 Action handler light(). 2017-06-09 07:55:55 -04:00
Eric S. Raymond
21adfe0807 More vocabulary handlers. 2017-06-09 02:12:59 -04:00
Eric S. Raymond
ff66456cb0 Add lock() handler. 2017-06-09 02:04:01 -04:00
Eric S. Raymond
50b30d0144 Handler for transitive extinguish. 2017-06-09 01:39:41 -04:00
John Boyle
dbe2acd864 Reassure compiler ("control may reach end of non-void function") 2017-06-08 22:50:48 -04:00