From 65898f6263fde17f3df3c3df27a4a2099c25f539 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 1 Oct 2023 23:41:35 +0300 Subject: [PATCH 47/47] Turn enum manuals as specenum See osdn #48785 Signed-off-by: Marko Lindqvist --- tools/manual/fc_manual.h | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/tools/manual/fc_manual.h b/tools/manual/fc_manual.h index c1d6dc342d..e17cec4baf 100644 --- a/tools/manual/fc_manual.h +++ b/tools/manual/fc_manual.h @@ -22,18 +22,25 @@ extern "C" { /* utility */ #include "support.h" - -enum manuals { - MANUAL_SETTINGS, - MANUAL_COMMANDS, - MANUAL_TERRAIN, - MANUAL_BUILDINGS, - MANUAL_WONDERS, - MANUAL_GOVS, - MANUAL_UNITS, - MANUAL_TECHS, - MANUAL_COUNT -}; +#define SPECENUM_NAME manuals +#define SPECENUM_VALUE0 MANUAL_SETTINGS +#define SPECENUM_VALUE0NAME "Settings" +#define SPECENUM_VALUE1 MANUAL_COMMANDS +#define SPECENUM_VALUE1NAME "Commands" +#define SPECENUM_VALUE2 MANUAL_TERRAIN +#define SPECENUM_VALUE2NAME "Terrain" +#define SPECENUM_VALUE3 MANUAL_BUILDINGS +#define SPECENUM_VALUE3NAME "Buildings" +#define SPECENUM_VALUE4 MANUAL_WONDERS +#define SPECENUM_VALUE4NAME "Wonders" +#define SPECENUM_VALUE5 MANUAL_GOVS +#define SPECENUM_VALUE5NAME "Governments" +#define SPECENUM_VALUE6 MANUAL_UNITS +#define SPECENUM_VALUE6NAME "Units" +#define SPECENUM_VALUE7 MANUAL_TECHS +#define SPECENUM_VALUE7NAME "Techs" +#define SPECENUM_COUNT MANUAL_COUNT +#include "specenum_gen.h" struct tag_types { const char *file_ext; -- 2.40.1