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: <http://gna.org/bugs/?13810> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev