In parser.l (at least) stderr is used to log errors.
Unfortunately stderr is not available in Windows GUI applications.
So it would be helpful for portability to have a logging API that would output to stderr on most platforms, but could also be directed elsewhere (for example, memory), at least at compile time.
In
parser.l
(at least)stderr
is used to log errors. Unfortunately stderr is not available in Windows GUI applications.So it would be helpful for portability to have a logging API that would output to stderr on most platforms, but could also be directed elsewhere (for example, memory), at least at compile time.