nxstyle fixes
fixed coloumn number of error messages PR #487 fixed lineno_min = lineno_min
This commit is contained in:
parent
2f77a566d1
commit
62c2b4aac7
@ -429,7 +429,7 @@ static int get_line_width(FILE *instream)
|
|||||||
if (len < min)
|
if (len < min)
|
||||||
{
|
{
|
||||||
min = len;
|
min = len;
|
||||||
lineno_min = lineno_min;
|
lineno_min = lineno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -923,14 +923,16 @@ int main(int argc, char **argv, char **envp)
|
|||||||
lptr += 2;
|
lptr += 2;
|
||||||
if (*lptr == '\n')
|
if (*lptr == '\n')
|
||||||
{
|
{
|
||||||
ERROR("C comment opening on separate line", lineno, n);
|
ERROR("C comment opening on separate line",
|
||||||
|
lineno, lptr - &line[0]);
|
||||||
}
|
}
|
||||||
else if (!isspace((int)*lptr))
|
else if (!isspace((int)*lptr))
|
||||||
{
|
{
|
||||||
ERROR("Missing space after opening C comment", lineno, n);
|
ERROR("Missing space after opening C comment",
|
||||||
|
lineno, lptr - &line[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(line, "*/") == NULL)
|
if (strstr(lptr, "*/") == NULL)
|
||||||
{
|
{
|
||||||
/* Increment the count of nested comments */
|
/* Increment the count of nested comments */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user