Follow-up Comment #1, patch #1652 (project freeciv):

> This will be needed for the ruleset/savegame.

For me, it isn't a right way to use specenum. To original is to removes enum
hard-coded dependence. Converting magic numbers to a string with 0 and 1 is
not an improvement. Bitwise enumerators should be saved into a string vector
like:

value="value0", "value5", "value98"

You can see such examples in warclient, saving and restoring the filter
options.

Probably a macro secfile_insert_enum() is the solution to connect all the
specenum functions that a secfile_insert_enum_full() would use.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1652>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to