chiark / gitweb /
progress printing and bugfixing and build system improvements
[ypp-sc-tools.db-test.git] / pctb / convert.c
index cd9c6521976385498e72311d84631432a5d10bbf..8b12f3a06c62f19214658dd2a1870e63bcbbe4a0 100644 (file)
@@ -90,6 +90,7 @@ int main(int argc, char **argv) {
 DEFINE_VWRAPPERF(, progress)
 DEFINE_VWRAPPERF(, progress_log)
 DEFINE_VWRAPPERF(, progress_spinner)
+DEFINE_VWRAPPERF(, warning)
 
 static int last_progress_len;
      
@@ -137,3 +138,10 @@ void vprogress_log(const char *fmt, va_list al) {
   putc('\n',stderr);
   fflush(stderr);
 }
+
+void vwarning(const char *fmt, va_list al) {
+  progress("");
+  fputs("warning: ",stderr);
+  vfprintf(stderr,fmt,al);
+  fflush(stderr);
+}