2 Subject: [PATCH] Fix tipsfile parser wrt to eof
4 For include and alias blocks, the parser missed the last content line, if no
5 explicit empty line is at the end of file. I.e.:
21 'juhu' would not be an alias to 'hello'. You get a parser error if the alias
22 block has only one alias:
36 The current workaround is to add one explicit empty line:
50 This patch should fix it.
57 source/tags.c | 4 ++--
58 1 file changed, 2 insertions(+), 2 deletions(-)
60 diff --quilt old/source/tags.c new/source/tags.c
63 @@ -1811,9 +1811,9 @@ static int nextTFBlock(FILE *fp, char *h
66 /* Figure out how long the block is */
67 - while((status=fgets(line, MAXLINE, fp))) {
68 + while((status=fgets(line, MAXLINE, fp)) || feof(fp)) {
70 - if(lineEmpty( line ))
71 + if(feof(fp) || lineEmpty( line ))
74 incLen = ftell(fp) - incPos;