Follow-up Comment #3, bug #17846 (project freeciv):
> This pattern and the one I proposed can't really coexist.
Oh, I suppose they could, with something like
char *astr_to_str(struct astr *astr) {
char *str = astr->str;
*astr = zero_astr;
return str;
}
This destroys the astring and returns a string with a lifetime of its own.
Maybe I'll add this.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17846>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev