Commit graph

37 commits

Author SHA1 Message Date
Eric S. Raymond
8bf31a9c19 Localize V1 and V2 in main.c 2017-06-08 04:31:06 -04:00
Eric S. Raymond
46cd836df0 Abolish funcs.h. 2017-06-08 04:25:20 -04:00
Eric S. Raymond
1386d2b157 De-gotoify carry(). 2017-06-08 02:43:40 -04:00
Eric S. Raymond
ff36dff18f Attempt to repair GitLab build breakage. 2017-06-07 21:26:45 -04:00
Eric S. Raymond
ed80d6dd2f Move MAXDIE computation to dungeonmaker. 2017-06-07 15:33:22 -04:00
Eric S. Raymond
7555eb7de3 Global-variable elimination. 2017-06-07 14:45:30 -04:00
Eric S. Raymond
14fee6b979 Eliminate globals. 2017-06-07 14:03:33 -04:00
Eric S. Raymond
2deb1b9f7f Localize TK. 2017-06-07 10:38:18 -04:00
Eric S. Raymond
8a256a6e37 Narrow the scope of IGO. 2017-06-07 10:33:38 -04:00
Eric S. Raymond
48363ba536 Localize K2. 2017-06-07 10:25:59 -04:00
Eric S. Raymond
dad1df9796 Localize KK. 2017-06-07 10:23:06 -04:00
Eric S. Raymond
8d90b03ee4 Fully localize VERB. 2017-06-07 10:06:14 -04:00
Eric S. Raymond
cc618146e8 Localize a variable. 2017-06-07 09:46:25 -04:00
Eric S. Raymond
b2c85b36f8 OBJ is completely localized. 2017-06-07 09:03:14 -04:00
Eric S. Raymond
4fe6286cc6 LOC pulled into game structure block. 2017-06-07 07:50:09 -04:00
Eric S. Raymond
a38b61638c Global LL becomes local to command interpreter toplevel...
...and doesn't have to be saved.
2017-06-07 07:30:56 -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
c1f1f2f79f Magic-number cleanup. 2017-06-07 06:24:18 -04:00
Eric S. Raymond
461575ef4c Bite the bullet - size siymbols have to be shared.
Otherwise we end up duplicating magic sizes and tey can drift apart.
2017-06-07 05:45:51 -04:00
Eric S. Raymond
7f4cff1188 Bring SETUP variable into game state block
Saved separately because the kogic around this variable looks
a bit dubious and may need review.
2017-06-07 05:24:48 -04:00
Eric S. Raymond
dda636bbc1 Pull more globals into the game state block. 2017-06-07 05:10:20 -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
bb78ca96ce Capture clock variables into the game-state block. 2017-06-07 00:15:31 -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
ab04fe4d41 More more globals into the game state block. 2017-06-06 21:46:17 -04:00
Eric S. Raymond
07c0020a7a First step in game state encapsulation: the dwarf & pirate locations. 2017-06-06 21:34:11 -04:00
Eric S. Raymond
3b8122ae3a Magic-number elimination. 2017-06-06 21:06:16 -04:00
Eric S. Raymond
4e1ab63322 Semantic types. 2017-06-06 18:22:24 -04:00
Eric S. Raymond
c1ee521f73 Begin to split undifferentiated longs into semantic types. 2017-06-06 14:28:27 -04:00
Eric S. Raymond
978168523a Magic-number elimination. 2017-06-06 11:12:00 -04:00
Eric S. Raymond
4d6078d8a8 Replace homebrew IABS() with C kubrary labs(3). 2017-06-06 09:21:46 -04:00
Jason S. Ninneman
83048ee832 Remove a disused function, thereby upping the code coverage. 2017-06-04 08:58:43 -07:00
Eric S. Raymond
aef609291d Simplify bitmask test/set from FORTRANish to actual C. 2017-06-02 16:40:29 -04:00
Eric S. Raymond
63f53c026d Macro elimination - easy cases first. No logic changes. 2017-06-02 16:20:40 -04:00
Eric S. Raymond
d402e09411 Header consolidation - main.h, misc.h, and share.h merge to advent.h.
For a project this small size with a small type ontology, it's better
C style to have one header where all the assumptions about types and
structures are immediately visible.

This is a first step towards turning all that global state into a handful
of structures - probably just two, one saveable as a binary game state.
2017-06-02 15:06:33 -04:00
Renamed from misc.h (Browse further)