Hi,
You are right. I have rewritten the source code slightly
using 'goto finish' method.
RCS file: /sources/global/global/libparser/Cpp.c,v
retrieving revision 1.22
diff -r1.22 Cpp.c
239,240c239,243
< } else if (c == EOF)
< die("failed to parse template [+%d %s].", savelineno, curfile);
---
> } else if (c == EOF) {
> if (param->flags & PARSER_WARNING)
> warning("failed to parse template [+%d %s].", savelineno, curfile);
> goto finish;
> }
583a587
> finish:
By the way, in the current GLOBAL, each parser can stop
the program itself. In that case, the tag files get corrupted.
When gtags ends with status != 0, you should not use them.
Regards
Shigio