static unsigned char Start_html_string;
int Line_number;
static char *InputFile;
+static int agmaxerr;
static void
storeFileName (char* fname, int len)
TokenBuf = N_NEW(LineBufSize, char);
}
AG.fgets (AG.linebuf, 0, fp); /* reset mygets */
+ AG.syntax_errors = 0;
}
#define ISSPACE(c) ((c != 0) && ((isspace(c) || iscntrl(c))))
agerrlevel = lvl;
}
+int agerrors(void)
+{
+ return MAX(agmaxerr, AG.syntax_errors);
+}
+
char *aglasterr()
{
long endpos;
lvl = (level == AGPREV ? agerrno : (level == AGMAX) ? AGERR : level);
agerrno = lvl;
+ agmaxerr = MAX(agmaxerr, agerrno);
if (lvl >= agerrlevel) {
if (level != AGPREV)
fprintf(stderr, "%s: ",