Commit graph

108 commits

Author SHA1 Message Date
Jason S. Ninneman
bfa06be62d Fix all the simple compiler warnings. 2017-06-13 11:19:58 -07:00
Eric S. Raymond
34db08ce06 Typo fixes. 2017-06-13 12:25:19 -04:00
Eric S. Raymond
fa74e8054b Explain the prompting logic more fully. 2017-06-13 12:18:46 -04:00
Eric S. Raymond
9a2618963f Fix a minor bug in -l operation. Explain the input logic. 2017-06-13 11:59:49 -04:00
Eric S. Raymond
760e2e3282 Remove more unused code. 2017-06-13 09:42:18 -04:00
Eric S. Raymond
fb93f9d67e Remove now-unused code. 2017-06-13 09:35:39 -04:00
Eric S. Raymond
6a6d9ca14e Address GitLab issue #10: Spurious '>' characters appearing in console output
The prompt logic has become unpleasantly complicated.
2017-06-13 08:03:27 -04:00
Jason S. Ninneman
90b9b84797 Clean up function argument. 2017-06-12 21:36:06 +00:00
Jason S. Ninneman
ca0e042952 Use strdup() instead of strncpy(). 2017-06-12 21:36:06 +00:00
Eric S. Raymond
a044f10411 Turn MOD from function to macro.
I experimented with expanding it to ((N % M) everywhere, but in context
the MOD(N, M) notation seems easier to read.
2017-06-12 17:33:21 -04:00
Eric S. Raymond
66c22301ed Add -s option.
Re-enables pasting multiline sequences to the > prompt (for making checkfiles).
2017-06-12 16:51:35 -04:00
Eric S. Raymond
32b04f190e Clean up compiler warnings. 2017-06-11 18:57:07 -04:00
Jason S. Ninneman
bcfecca1a1 Fix broken unpacking algorithm.
Also trim trailing whitespace.
2017-06-11 15:42:25 -07:00
Jason S. Ninneman
a2e0c55fb4 Abolish SPEAK(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
25d98f6dab Working first draft of newspeak(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
f715091db6 Get plural replacement working. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
5de9c7132d Partially-working newspeak(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
c7ca4ee73c Retrofit RSPEAK() and PSPEAK(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
cdf6993a51 First crude version of newspeak(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
639eff8b0b Remove handlers for disused advent format specifiers. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
3ed8b91eb7 More SPEAK() hardening. 2017-06-10 19:00:54 -07:00
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
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
e6f183ba7f Use C idioms for increment/decrement. 2017-06-10 12:38:40 -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
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
db8dc40b84 Abolish a silly layer of macros. 2017-06-09 11:36:49 -04:00
John Boyle
c8a2312755 Correct the definition of SETBIT.
The semantics were first changed in aef60929 (technically broken
in that commit as well).  Luckily, it seems not to be used much.
2017-06-08 22:50:48 -04:00
Eric S. Raymond
46cd836df0 Abolish funcs.h. 2017-06-08 04:25:20 -04:00
Jason S. Ninneman
7e1ef875fc Use linenoise to get the save file name. 2017-06-08 00:15:03 -07:00
Eric S. Raymond
a418ebb38c misc.c is goto-free. 2017-06-08 01:35:50 -04:00
Eric S. Raymond
3425c712c7 Yet more gotoectomy. 2017-06-07 22:59:55 -04:00
Eric S. Raymond
680788eb97 The continuing cleanup of misc.c 2017-06-07 22:34:06 -04:00
Eric S. Raymond
ff36dff18f Attempt to repair GitLab build breakage. 2017-06-07 21:26:45 -04:00
Eric S. Raymond
a45f297dc7 Still more gotoectomy. 2017-06-07 19:22:41 -04:00
Eric S. Raymond
19b3ac4ccd More goto removal. 2017-06-07 19:10:39 -04:00
Eric S. Raymond
da5976dc8c More goto elimination in misc.c 2017-06-07 18:34:08 -04:00
Eric S. Raymond
7fa8757ad4 More misc.c cleanup. 2017-06-07 18:00:12 -04:00
Eric S. Raymond
beac8d7f41 Continuing cleanup of misc.c. 2017-06-07 16:39:59 -04:00
Eric S. Raymond
1d3a087c39 Partial misc.c gotoectomy. 2017-06-07 16:30:51 -04:00
Eric S. Raymond
2d95c3f4f5 Finish moving state arrays into game structure block. 2017-06-07 07:10:07 -04:00
Eric S. Raymond
0b02763bf0 More collecting of globals. 2017-06-07 06:38:40 -04:00
Eric S. Raymond
91ad0185ff Move more globals into the game state block. 2017-06-07 01:12:49 -04:00
Eric S. Raymond
62ee15c892 Pack more globals into the game block structure. 2017-06-07 00:41:51 -04:00
Eric S. Raymond
c68b92d9da More magic-number elimination, and some information hiding. 2017-06-07 00:05:03 -04:00
Eric S. Raymond
07c0020a7a First step in game state encapsulation: the dwarf & pirate locations. 2017-06-06 21:34:11 -04:00