amend to fixup line-numbering in the unifdefile
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
{
const char *cp;
- linenum++;
- if (linestate == LS_START && fgets(tline, MAXLINE, input) == NULL) {
- if (ferror(input))
- err(2, "can't read %s", filename);
- else
- return (NULL);
+ if (linestate == LS_START) {
+ linenum++;
+ if (fgets(tline, MAXLINE, input) == NULL) {
+ if (ferror(input))
+ err(2, "can't read %s", filename);
+ else
+ return (NULL);
+ }
}
cp = skipcomment(tline);
if (linestate == LS_START && *cp == '#') {