chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progress printing and bugfixing and build system improvements
[ypp-sc-tools.main.git]
/
pctb
/
convert.c
diff --git
a/pctb/convert.c
b/pctb/convert.c
index cd9c6521976385498e72311d84631432a5d10bbf..8b12f3a06c62f19214658dd2a1870e63bcbbe4a0 100644
(file)
--- a/
pctb/convert.c
+++ b/
pctb/convert.c
@@
-90,6
+90,7
@@
int main(int argc, char **argv) {
DEFINE_VWRAPPERF(, progress)
DEFINE_VWRAPPERF(, progress_log)
DEFINE_VWRAPPERF(, progress_spinner)
DEFINE_VWRAPPERF(, progress)
DEFINE_VWRAPPERF(, progress_log)
DEFINE_VWRAPPERF(, progress_spinner)
+DEFINE_VWRAPPERF(, warning)
static int last_progress_len;
static int last_progress_len;
@@
-137,3
+138,10
@@
void vprogress_log(const char *fmt, va_list al) {
putc('\n',stderr);
fflush(stderr);
}
putc('\n',stderr);
fflush(stderr);
}
+
+void vwarning(const char *fmt, va_list al) {
+ progress("");
+ fputs("warning: ",stderr);
+ vfprintf(stderr,fmt,al);
+ fflush(stderr);
+}