#if STDC_HEADERS || _LIBC
# include <stdlib.h>
# include <string.h>
-#else
-void exit ();
#endif
#include "complain.h"
# endif /* HAVE_STRERROR */
#endif /* not _LIBC */
-/* This variable is incremented each time `warn' is called. */
-unsigned int warn_message_count;
+/* This variable is set each time `warn' is called. */
+bool warning_issued;
-/* This variable is incremented each time `complain' is called. */
-unsigned int complain_message_count;
+/* This variable is set each time `complain' is called. */
+bool complaint_issued;
\f
/*--------------------------------.
vfprintf (stderr, message, args);
va_end (args);
- ++warn_message_count;
+ warning_issued = true;
putc ('\n', stderr);
fflush (stderr);
}
vfprintf (stderr, message, args);
va_end (args);
- ++warn_message_count;
+ warning_issued = true;
putc ('\n', stderr);
fflush (stderr);
}
vfprintf (stderr, message, args);
va_end (args);
- ++complain_message_count;
+ complaint_issued = true;
putc ('\n', stderr);
fflush (stderr);
}
vfprintf (stderr, message, args);
va_end (args);
- ++complain_message_count;
+ complaint_issued = true;
putc ('\n', stderr);
fflush (stderr);
}
va_end (args);
putc ('\n', stderr);
fflush (stderr);
- exit (1);
+ exit (EXIT_FAILURE);
}
void
va_end (args);
putc ('\n', stderr);
fflush (stderr);
- exit (1);
+ exit (EXIT_FAILURE);
}