make PTparse error message more verbose:

include point in a line where parsing failed.
This commit is contained in:
Holger Vogt 2021-09-07 12:41:18 +02:00
parent 0817d86f33
commit 0266bd5894
1 changed files with 1 additions and 2 deletions

View File

@ -139,10 +139,9 @@ nonempty_arglist:
static void
PTerror (YYLTYPE *locp, char **line, struct INPparseNode **retval, void *ckt, char const *s)
{
NG_IGNORE(locp);
NG_IGNORE(line);
NG_IGNORE(retval);
NG_IGNORE(ckt);
fprintf (stderr, "%s: %s\n", __func__, s);
fprintf (stderr, "\n%s: %s, parsing stopped at\n %s\n\n", __func__, s, locp->start);
}