From: Peter Verthez Date: Wed, 30 Oct 2002 18:47:57 +0000 (+0000) Subject: Increment line number also for generating gedcom level error. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=dc8ddccc569803b5cbe00d7fa2fa53d13ada9b60;p=gedcom-parse.git Increment line number also for generating gedcom level error. --- diff --git a/gedcom/gedcom_lex_common.c b/gedcom/gedcom_lex_common.c index 753df11..d8f35d7 100644 --- a/gedcom/gedcom_lex_common.c +++ b/gedcom/gedcom_lex_common.c @@ -236,6 +236,7 @@ static int dummy_conv = 0; CHECK_LINE_LEN; \ if ((level < 0) || (level > MAXGEDCLEVEL)) { \ error_level_out_of_range(); \ + line_no++; \ return BADTOKEN; \ } \ level_diff = level - current_level; \ @@ -253,6 +254,7 @@ static int dummy_conv = 0; else { \ /* should never happen (error to GEDCOM spec) */ \ error_level_too_high(level_diff); \ + line_no++; \ return BADTOKEN; \ } \ }