diff options
author | Patrick McHardy <kaber@trash.net> | 2014-02-04 08:09:27 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-02-04 08:12:01 +0000 |
commit | e9194645cc1b7a07a1e90a394b025d9859f97064 (patch) | |
tree | 78d7603c8a37399f57ae64d98d90639201816586 /src/erec.c | |
parent | 22103647c8206b66a6c7aab49fc985936d7cb9a7 (diff) |
erec: skip includes with INDESC_INTERNAL
Don't display "In file included from internal:0:0-0:" for errors occuring
in a parsed file.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/erec.c')
-rw-r--r-- | src/erec.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -114,7 +114,9 @@ void erec_print(FILE *f, const struct error_record *erec) if (indesc->location.indesc != NULL) { const char *prefix = "In file included from"; iloc = &indesc->location; - for (tmp = iloc->indesc; tmp != NULL; tmp = iloc->indesc) { + for (tmp = iloc->indesc; + tmp != NULL && tmp->type != INDESC_INTERNAL; + tmp = iloc->indesc) { fprintf(f, "%s %s:%u:%u-%u:\n", prefix, tmp->name, iloc->first_line, iloc->first_column, |