Follow-up Comment #2, patch #1252 (project freeciv):
> How should the functions in registry.c be changed to send a
> message to the clients? An extra argument 'char *err_msg' could
> be added to each of these functions. It would be NULL if there
> is no error, else it would contain the error message which will
> be send to the client.
That would mean this patch only replaces need to check min/max values (at
calling side) with need to check for returned error message.
I would use callback function that handles error messages. In case of ruleset
loading ruleset_error() could be passed as such a callback function.
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1252>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev