#48675: specenum generator Open Date: 2023-09-19 14:02 Last Update: 2023-10-05 15:03 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48675 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48675 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-10-05 15:03 Updated by: alienvalkyrie * Details Updated --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: (None) Component: Bootstrap Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Adjusting specenum values can take a lot of effort, and that need for effort is often multiplied by the number of branches to backport the patch as the big change is unlikely to apply cleanly. The main problem is that we have to number the entries in the sources. So adding or removing entries necessitate changing all the entries that follow. We could have just spec files describing the enum: ... VAL_FOO, "foo name" VAL_BAR, "bar name" ... and a python source generator script producing a C header with the specenum definitions like they now are maintained by hand. Subtickets: base implementation #48702 initial implementation (done) #48786 prefix (done) #48789 implicit count and zero identifiers (done) #48790 autogenerate user flags (done) fully new features #48792 is_*_user_flag() build system integration #48703 meson (in progress) #48806 autotools migration of existing enums TBD -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/48675 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48675