Commit graph

1648 commits

Author SHA1 Message Date
Eric S. Raymond
258b7703f2 Simplify SPDX copyright lines to the shortest canonical form...
...because if we leave them longer than 80 chars, reflow is going to
mess them up.
2024-01-28 07:14:46 -05:00
Eric S. Raymond
83c6a66887 Typo fix. 2024-01-15 05:10:46 -05:00
Eric S. Raymond
3c09c25cc3 Update tapview and tapdiffer. 2024-01-15 05:03:53 -05:00
Eric S. Raymond
f26514b5dd Fix SPDX headers. 2024-01-15 04:58:21 -05:00
Eric S. Raymond
cf7ea0cd89 Remove debugging debris. 2024-01-15 04:57:47 -05:00
Eric S. Raymond
2db3bed3f1 Fix up copyright notices. SPDX wants only one per file. 2024-01-03 06:30:40 -05:00
Eric S. Raymond
a6ec8a9595 Simplify some dependencies. 2024-01-03 06:15:04 -05:00
Eric S. Raymond
75bc031b46 Reduce include complexity. 2024-01-03 05:55:57 -05:00
Eric S. Raymond
dd65960ec5 Ready to ship 1.17. 2024-01-02 21:58:14 -05:00
Eric S. Raymond
90f96a25da pylint cleanup. 2024-01-02 21:53:23 -05:00
Eric S. Raymond
c10e9694e3 Corrected fix, and test, for #67. 2024-01-02 17:19:42 -05:00
Eric S. Raymond
11d966f349 Add -a option to synopsis. 2024-01-02 16:57:15 -05:00
Eric S. Raymond
e1a17fd442 NEWS update. 2024-01-02 16:38:59 -05:00
Eric S. Raymond
eb63994931 Better explanation of backwards compatibility with 4.30. 2024-01-02 16:34:54 -05:00
Eric S. Raymond
0b82afa5c1 Commit a test script. 2024-01-02 16:03:30 -05:00
Eric S. Raymond
b247359d7f Initialize dwarf locations in YAML, not C.
Minimizes magic numbers.
2024-01-02 12:12:32 -05:00
Eric S. Raymond
1f9f39d789 Address GitLab issue #67: saying Z'ZZZ at the reservoir causes the water to part/crash together 2024-01-02 10:42:11 -05:00
Eric S. Raymond
2582e240bd Fix defective copyright notices. 2024-01-02 09:46:09 -05:00
Eric S. Raymond
9fbd603f8d Typo fix. 2024-01-02 09:28:39 -05:00
Nicola Smaniotto
5016978156
saveresume.c: add missing semicolon
Fixes compilation when ADVENT_NOSAVE is set
2023-11-27 17:41:26 +01:00
Eric S. Raymond
7d4dd78679 Apply black to move Python style to standard form. 2023-09-17 16:17:30 -04:00
Eric S. Raymond
ab4653b89c Comment polishing. 2023-05-10 20:08:10 -04:00
Torbjörn Andersson
b28eb66868 Spelling fixes. 2023-04-18 18:44:08 +02:00
Eric S. Raymond
f0119f8431 Comment rtpo fix. 2023-04-18 08:02:14 -04:00
Eric S. Raymond
5075c63cf4 Add some map tags. 2023-04-18 07:51:55 -04:00
Eric S. Raymond
ebf3e389c0 Add exolanatory comment. 2023-04-17 09:19:26 -04:00
Eric S. Raymond
6cef68cda5 Use fixed-lwength types to make the save format more portable 2023-04-17 07:24:51 -04:00
Eric S. Raymond
234da6b468 Remove unnecessary code duplication. 2023-04-17 07:06:56 -04:00
Eric S. Raymond
adbb5c1204 Ready to ship 1.16. 2023-04-15 14:44:20 -04:00
Eric S. Raymond
869c53d1b1 Comment polishing. 2023-04-15 10:00:23 -04:00
Eric S. Raymond
ef78c36ddb Improve state-macro encapsulation. 2023-04-15 09:29:28 -04:00
Eric S. Raymond
5d3205e1e9 Add explanatory comments. 2023-04-15 06:29:59 -04:00
Eric S. Raymond
a6b41fdb8f Simplify initialization code. All tests pass, 100% coverage. 2023-04-14 08:24:51 -04:00
Eric S. Raymond
9ff036d789 Make build with conditional compilation easier. 2023-04-14 06:16:29 -04:00
Eric S. Raymond
88feaab0c0 Remove a remnant line number. 2023-04-10 19:29:11 -04:00
Eric S. Raymond
4d4e8dce96 Magic-number elimination. 2023-04-10 19:27:07 -04:00
Eric S. Raymond
82c3ae5e65 Condition in alternative state-management macros.
These do not entirely work yet. #define FOUNDBOOL to enable them.

All tests pass, 100% coverage.
2023-04-10 19:26:18 -04:00
Eric S. Raymond
1af01ff91f Confine use of STATE_NOTFOUND to macros. 2023-04-08 23:04:34 -04:00
Eric S. Raymond
9e9731d59b Turn an odd test into a macro disjunction.
Was game.objects[i].prop > STATE_NOTFOUND.

This finishes off all the statec comparisons we want to macroize.
2023-04-08 21:17:55 -04:00
Eric S. Raymond
191d3cb043 More nontrivial macro abstraction of state checks.
game.prop < 0 becomes an alternation of macros.
2023-04-08 20:32:04 -04:00
Eric S. Raymond
c82d1214fa First nontrivial replacement of object state test by macro.
Test was game.objects[i].prop >= 0, but we know that state -1
(STATE_NOTFOUND) can't occiur here because the object is in
a lit room.
2023-04-08 20:02:27 -04:00
Eric S. Raymond
02987d0330 Encapsulate object-state state tests and setttings in macros.
This isn't a complete refwctoring, just the part than can be done with
transparetly correct capture of inlinre logic into macros.

No logic changes. Tests pass, 100% coverage.
2023-04-08 19:35:41 -04:00
Eric S. Raymond
9cd7c53d78 Refactor put() function and calls. 2023-04-07 13:19:51 -04:00
Eric S. Raymond
ab2779cd93 Remove unneeded use of put(). 2023-04-07 13:09:57 -04:00
Eric S. Raymond
819aed5c4e Add test for behavior of stashed objects in endgame. 2023-04-07 12:33:52 -04:00
Eric S. Raymond
8d4d64fafb Structurization of hints. 2023-04-07 10:52:16 -04:00
Eric S. Raymond
eebc87f889 Structurize object info. 2023-04-07 10:35:13 -04:00
Eric S. Raymond
8fe07c8bf3 Structurize locatiuon info. 2023-04-07 09:30:33 -04:00
Eric S. Raymond
ff9c73a37d Structurize the informaruin about dwarves. 2023-04-07 09:15:20 -04:00
Eric S. Raymond
195e6e149b Apply loc_t type. 2023-04-07 08:18:50 -04:00