- make config files format more readable / self-explanatory
-- get rid of the useless "internal error code" in error messages
-
SERVER:
- implement field of view / line of sight and obstacles for those on the map
{
msg = "Details unknown.";
}
- printf("Aborted program due to error. %s\n"
- "Internal error code: %d\n",
- msg, err);
+ printf("Aborted program due to error. %s\n", msg);
if (0 != errno)
{
perror("errno states");
extern void set_cleanup_func(void (* f)());
/* If "err" == 0, do nothing. Else, clean up and exit with an error message that
- * consists, first, of "msg" or (if "msg" is a NULL pointer) a generic "Details
- * unknown", secondly of "err" as the "internal error code", and thirdly of
- * errno if it is non-zero.
+ * consists of "msg" or (if "msg" is NULL pointer) a generic "Details unknown"
+ * and of errno's content (if it is non-zero).
*/
extern void exit_err(int err, char * msg);