]> granicus.if.org Git - yasm/commitdiff
Properly count errors and warnings triggered by ErrorAt() and WarningAt().
authorPeter Johnson <peter@tortall.net>
Thu, 2 May 2002 03:34:10 +0000 (03:34 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 2 May 2002 03:34:10 +0000 (03:34 -0000)
svn path=/trunk/yasm/; revision=617

libyasm/errwarn.c
src/errwarn.c

index 1cd9577eef8dcc683af663b38d96db4308a83b98..5f66d43b139feb6985b289a92a59bcd5bac463c6 100644 (file)
@@ -275,6 +275,8 @@ ErrorAt(unsigned long lindex, const char *fmt, ...)
     vfprintf(stderr, fmt, ap);
     va_end(ap);
     fprintf(stderr, "\n");
+
+    error_count++;
 }
 
 void
@@ -295,6 +297,8 @@ WarningAt(unsigned long lindex, const char *fmt, ...)
     vfprintf(stderr, fmt, ap);
     va_end(ap);
     fprintf(stderr, "\n");
+
+    warning_count++;
 }
 
 /* Output all previously stored errors and warnings to stderr. */
index 1cd9577eef8dcc683af663b38d96db4308a83b98..5f66d43b139feb6985b289a92a59bcd5bac463c6 100644 (file)
@@ -275,6 +275,8 @@ ErrorAt(unsigned long lindex, const char *fmt, ...)
     vfprintf(stderr, fmt, ap);
     va_end(ap);
     fprintf(stderr, "\n");
+
+    error_count++;
 }
 
 void
@@ -295,6 +297,8 @@ WarningAt(unsigned long lindex, const char *fmt, ...)
     vfprintf(stderr, fmt, ap);
     va_end(ap);
     fprintf(stderr, "\n");
+
+    warning_count++;
 }
 
 /* Output all previously stored errors and warnings to stderr. */