De-duplicate __FILE__, __LINE__ plus some error reporting cleanup
The UNEXPECTED_ERROR and FATAL_ERROR macros seemed to be unnecessarily tedious to use, so I moved the __FILE__
and __LINE__
arguments into the macros. Then I added a couple of similar macros that include a message from strerror(). It also seemed useful to include __func__
in the error rubric.
Edited by Tony Finch