Initialize dwarf locations in YAML, not C.

Minimizes magic numbers.
This commit is contained in:
Eric S. Raymond 2024-01-02 10:32:23 -05:00
parent 1f9f39d789
commit b247359d7f
5 changed files with 28 additions and 8 deletions

View file

@ -35,6 +35,10 @@ SPDX-License-Identifier: BSD-2-Clause
#define COND_HOGRE 20 /* Trying to deal with ogre */
#define COND_HJADE 21 /* Found all treasures except jade */
/* Count of dwarf starting locations */
#define NDWARFLOCS {ndwarflocs}
extern const int dwarflocs[NDWARFLOCS];
typedef struct {{
const char** strs;
const int n;