From 63ed5bdac6c578de89ba3937863d56a5a9bffeda Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 19 Apr 2019 21:49:19 -0300 Subject: [PATCH] =?utf8?q?Mudan=C3=A7a=20de=20fillers=20na=20linha=20T9=20?= =?utf8?q?para=202019.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/gera.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/gera.c b/lib/gera.c index 885dbb9..a8c6f10 100644 --- a/lib/gera.c +++ b/lib/gera.c @@ -637,13 +637,19 @@ static void gera_conjuge(struct declaracao *dec, FILE *f) static int is_trailler_filler(int ano, int i) { - if (ano >= 2018) { + if (ano == 2018) { return i == 29 || i == 31 || i == 33 || i == 36 || i == 37 || i == 44 || i == 82; } - return i == 44; +#if 0 + if (ano == 2019) { + return i == 57 || (i >= 76 && i <= 79); + } +#endif + return (ano <= 2018 && i == 44); /* Ano 2016, linha 29 é um FILLER, mas preenchida com múltiplos * 0s. Como esta linha não é gerada na declaração de 2016, não * deve constar aqui, e será contabilizada como 0. */ + /* O mesmo vale para as linhas de 2019 comentadas acima. */ /* || (ano == 2016 && i == 29); */ } @@ -654,8 +660,10 @@ static int is_trailler_spaces(int ano, int i) static int is_trailler_empty(int ano, int i) { - return (i == 57 || i == 64 || i == 79) || - (ano == 2015 && i == 49); + return + (ano == 2015 && i == 49) || + (ano <= 2018 && + (i == 57 || i == 64 || i == 79)); } static void gera_trailler(struct declaracao *dec, FILE *f) -- 2.20.1