Commit 434fdc66 authored by Niels Möller's avatar Niels Möller

(werror_progress): New function.

Rev: src/werror.c:1.64
Rev: src/werror.h:1.30
parent 9bd82ddd
......@@ -562,6 +562,16 @@ werror(const char *format, ...)
}
}
void
werror_progress(const char *string)
{
if (verbose_flag && !quiet_flag)
{
werror_write(strlen(string), string);
werror_flush();
}
}
void
trace(const char *format, ...)
{
......
......@@ -80,6 +80,10 @@ void trace(const char *format, ...);
void debug(const char *format, ...);
void verbose(const char *format, ...);
/* Displays the string with no prefix or new-line or buffering.
* Suitable for progress indication. */
void werror_progress(const char *string);
void fatal(const char *format, ...) NORETURN;
#endif /* LSH_ERROR_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment