Quote:
Code:

...
else
TXT_Printf(stderr, SEV_ERROR, "Unknown error.\n");
exit(result.errorCode);


Tsk, always brace, could be a macro!

Shouldn't matter, if the macro writer knew what they were doing.
Code:
#define TXT_Printf(X,Y...) do { stmt; stmt; stmt; } while (0)


If the macro is defined in such a way that it doesn't act as a single statement, then IMO the definition is at fault, not the lack of braces at the use site.

Peter