Follow-up Comment #3, bug #13807 (project freeciv):
> If you are worried that you cannot use static initializers
> with unions, you need not be, since you can use the
> syntax:
>
> union foo {
> int i;
> const char *s;
> bool b;
> };
>
> union foo f1 = { .b = TRUE };
> union foo f2 = { .s = "hi" };
This will help! The 'static initializers' error message was
the reason for me to try it with a function. Is an union portable to win,
...?
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13807>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev