Commit graph

434 commits

Author SHA1 Message Date
Jason S. Ninneman
6b75d87797 Remove some hard-coded array dimensions. Generate CLSSES at compile time.
(How did this ever even work without 'extern'?)
2017-06-12 21:36:07 +00: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
a02b387999 FORTRAN line numbers returned from action() become action symbols. 2017-06-12 14:42:04 -04:00
Eric S. Raymond
d85ef403af Refactor main command loop to eliminate L2000. 2017-06-12 09:42:43 -04:00
Eric S. Raymond
1c4097314a Eliminare L8 label. 2017-06-12 09:28:11 -04:00
Eric S. Raymond
b560b0f597 Eliminate L8 label. 2017-06-12 09:24:11 -04:00
Eric S. Raymond
57f2dfb28f Factor out logic for listing objects at present location. 2017-06-12 09:01:21 -04:00
Eric S. Raymond
d7ae7efd30 Refactor hinting logic to pull more code out of mainline. 2017-06-12 08:31:32 -04:00
Eric S. Raymond
bd6e402512 Closing-time check factored out. 2017-06-12 08:15:58 -04:00
Eric S. Raymond
73d5310839 Reformat for readability. 2017-06-12 08:07:49 -04:00
Eric S. Raymond
b0eb54b125 More goto elimination. 2017-06-12 08:03:10 -04:00
Eric S. Raymond
c04fa7e446 Goto elimination. 2017-06-12 07:58:24 -04:00
Eric S. Raymond
696779d337 K successfully localized. 2017-06-12 06:47:10 -04:00
Eric S. Raymond
95f1548a10 Allow direct object to persist across turns. 2017-06-12 06:26:58 -04:00
Eric S. Raymond
c0a450c4d6 Localize K. 2017-06-12 06:13:00 -04:00
Eric S. Raymond
5535c509eb Narrow scope of K. 2017-06-12 06:09:34 -04:00
Eric S. Raymond
cfcb1a6ec6 Fix uninitialized-variable warning. 2017-06-12 05:28:28 -04:00
Eric S. Raymond
e723b7e462 SPK is abolished. 2017-06-12 02:10:14 -04:00
Eric S. Raymond
ac88b9c7e1 More SPK localization. 2017-06-12 01:45:01 -04:00
Eric S. Raymond
a101fc8679 SPK localization. 2017-06-12 01:28:20 -04:00
Eric S. Raymond
d80abbce02 K localization. 2017-06-12 00:30:45 -04:00
Eric S. Raymond
80c0c10221 Localize K to main.c 2017-06-12 00:21:14 -04:00
Eric S. Raymond
1f7a1bc8fd Localization moves for K. 2017-06-12 00:10:07 -04:00
Eric S. Raymond
04db837075 Update TODO. 2017-06-11 22:07:12 -04:00
Eric S. Raymond
a062d43079 SPK is no longer global. 2017-06-11 22:04:14 -04:00
Eric S. Raymond
e2ebc24114 Continue localization of SPK (not yet complete). 2017-06-11 21:58:21 -04:00
Eric S. Raymond
7485a8a1e1 Limit visibility of ugly globals. 2017-06-11 21:07:53 -04:00
Eric S. Raymond
32b04f190e Clean up compiler warnings. 2017-06-11 18:57:07 -04:00
Jason S. Ninneman
4ae8585802 Massive whitespace update to the test output.
(With one minor exception: the 'pillow' problem.)
2017-06-11 15:43:38 -07:00
Jason S. Ninneman
5ed0cc0fe9 Change 'drop pillow' to 'drop pillo' to make the test pass while we sort out a minor bug. 2017-06-11 15:42:25 -07: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
8a18f2f19f Fix spacing problem. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
e81bd6de8f Add missing function prototypes. 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
15ff262d17 More retrofitting. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
3178f5d994 Retrofit main.c for the new database and 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
291ec54462 Check in dropped file. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
43032763cd Compile in the new (partial) database. 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
Eric S. Raymond
d6c707f6ac Test for the "break" verb. 2017-06-11 18:24:35 -04:00
Eric S. Raymond
b9eccc7aa2 Increase test coverage. 2017-06-11 17:41:29 -04:00
Eric S. Raymond
5a33ce3937 More test coverage. 2017-06-11 16:50:55 -04:00