From 3ebe43eb75806990a402aafd5858de615d5c1cca Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 2 Jun 2022 01:26:45 +0100 Subject: Solve the error logging situation --- TODO/.errmsg | 6 ++++++ TODO/errmsg | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 TODO/.errmsg delete mode 100644 TODO/errmsg (limited to 'TODO') diff --git a/TODO/.errmsg b/TODO/.errmsg new file mode 100644 index 0000000..aefe3fc --- /dev/null +++ b/TODO/.errmsg @@ -0,0 +1,6 @@ +Come up with a better error logging abstraction +==== +This is done, see errmsg.h. + +Because it's all format string nonsense to talk to the engine, it's mostly a +pile of macros, which is kind of wacky. But hey, it works. diff --git a/TODO/errmsg b/TODO/errmsg deleted file mode 100644 index 51b8aae..0000000 --- a/TODO/errmsg +++ /dev/null @@ -1,11 +0,0 @@ -Come up with a better error logging abstraction -==== -Something like the BSD err/warn/errx/warnx maybe, although taking into account -all the stupid Windows GetLastError differences too. As it stands, different -source files have different ways of prefixing messages, a lot of strings are -pretty redundant (would maybe be nice to have something closer to the DJB-style -concatenated string messages to solve that problem?), and almost nothing bothers -to include the actual system error string because doing so is currently doing -annoying. - -pls fix -- cgit v1.2.3