Follow-up Comment #1, bug #13810 (project freeciv):

Why not using the union like:
union {
  struct {
    bool *value;
    const bool default_value;
    const bool_validate_func_t validate;
  } boolean;
  struct {
    int *value;
    const int default_value;
    const int min_value;
    const int max_value;
    const int_validate_func_t validate;
  } integer;
  struct {
    char *value;
    const size_t value_size;
    const char *default_value;
    const string_validate_func_t validate;
  } string;

It looks really better and understandable to me. More over, it should take
the minimal size of the whole structure, and not an addition of all of them.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to