Properly count errors and warnings triggered by ErrorAt() and WarningAt().

svn path=/trunk/yasm/; revision=617
0.3
Peter Johnson 23 years ago
parent c7dee53ad5
commit 4fc6605a56
  1. 4
      libyasm/errwarn.c
  2. 4
      src/errwarn.c

@ -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. */

@ -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. */

Loading…
Cancel
Save