int i;
va_list args;
+ if (!entryFile)
+ return;
+
for (i = 0; i < uEntryLevel; i++)
{
putc(' ', entryFile);
{
int i;
+ if (!entryFile)
+ return;
+
uEntryLevel -= l;
if (uEntryLevel < 0)
uEntryLevel = 0;
int i;
va_list args;
+ if (!uDebugFile)
+ return;
+
for (i = (uDebugIndentLevel * uDebugIndentSize); i > 0; i--)
{
putc(' ', uDebugFile);
{
va_list args;
+ if (!uDebugFile)
+ return;
+
va_start(args, s);
vfprintf(uDebugFile, s, args);
va_end(args);
{
va_list args;
+ if (!errorFile)
+ return;
+
va_start(args, s);
vfprintf(errorFile, s, args);
va_end(args);
{
va_list args;
+ if (!errorFile)
+ return;
+
if (prefix != NULL)
fprintf(errorFile, "%s", prefix);
fprintf(errorFile, " ");
{
va_list args;
+ if (!errorFile)
+ return;
+
if ((outCount == 0) && (preMsg != NULL))
fprintf(errorFile, "%s\n", preMsg);
if (prefix != NULL)
{
va_list args;
+ if (!errorFile)
+ return;
+
if ((outCount == 0) && (preMsg != NULL))
fprintf(errorFile, "%s\n", preMsg);
if (prefix != NULL)
{
va_list args;
+ if (!errorFile)
+ return;
+
if ((outCount == 0) && (preMsg != NULL))
fprintf(errorFile, "%s\n", preMsg);
if (prefix != NULL)
{
va_list args;
+ if (!errorFile)
+ return;
+
if ((outCount == 0) && (preMsg != NULL))
fprintf(errorFile, "%s\n", preMsg);
if (prefix != NULL)
void
uFinishUp(void)
{
- if ((outCount > 0) && (postMsg != NULL))
+ if (errorFile && (outCount > 0) && (postMsg != NULL))
fprintf(errorFile, "%s\n", postMsg);
return;
}