Commit graph

343 commits

Author SHA1 Message Date
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
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
ebfe3e49fa Prepare for large goto elimination - whitesoace-only change. 2017-06-08 22:48:05 -04:00
Eric S. Raymond
e1176dbf9c Handler for SAY. 2017-06-08 18:49:36 -04:00
Eric S. Raymond
db29f53a9a More action handlers. 2017-06-08 18:24:15 -04:00
Eric S. Raymond
e7451b543d More handler refactoring. 2017-06-08 17:14:00 -04:00
Eric S. Raymond
ee20cd0861 More action handlers. Use consistent VO order. 2017-06-08 16:18:21 -04:00
Eric S. Raymond
1ca74bfc39 Beginning of actions1.c refactor. 2017-06-08 15:27:05 -04:00
Eric S. Raymond
7abe1c1784 Remove one last goto from actions2.c 2017-06-08 09:21:45 -04:00
Peje Nilsson
2ae280befb De-gotoified actions2.c functions. 2017-06-08 09:13:34 -04:00
Peje Nilsson
da76563f40 De-gotoize throw(). 2017-06-08 09:09:48 -04:00
Eric S. Raymond
e7576855df One more goto gone. 2017-06-08 08:26:10 -04:00
Eric S. Raymond
ecc6caab4e Factor out the croak() function for player death. 2017-06-08 08:15:35 -04:00
Eric S. Raymond
d48001d64c Yet more gotoectomy. 2017-06-08 08:02:55 -04:00
Eric S. Raymond
c9cc36c681 De-gotoize hint machine. 2017-06-08 07:49:27 -04:00
Eric S. Raymond
fc0c48f0f2 Factor out the state machine for hints. 2017-06-08 07:19:44 -04:00
Eric S. Raymond
75c2aa57aa Resolve a particularly gnarly foto in dwarfmove. 2017-06-08 06:44:25 -04:00
Eric S. Raymond
e3f3c86d1d Refactor of dwarfmove logic. 2017-06-08 06:25:52 -04:00
Eric S. Raymond
af453777d4 More gotoectomies. 2017-06-08 06:15:08 -04:00
Eric S. Raymond
897bb2cdb5 Clean up dwarfmove() 2017-06-08 05:52:32 -04:00
Eric S. Raymond
86e75219e3 Gotoectomy. 2017-06-08 05:21:20 -04:00
Eric S. Raymond
a8e8967814 More main.c cleanup. 2017-06-08 05:11:52 -04:00
Eric S. Raymond
30ac7894e7 De-gotoifying main.c 2017-06-08 05:01:51 -04:00
Eric S. Raymond
8bf31a9c19 Localize V1 and V2 in main.c 2017-06-08 04:31:06 -04:00