nxstyle: Fix distinction be source and header file for long lines.
For some unknow reason, long lines were reported as WARNING is header files, but as ERRORS in C source file. There are errors where ever they occur.
This commit is contained in:
parent
a3b643fdc1
commit
3b62765edd
@ -2427,17 +2427,9 @@ int main(int argc, char **argv, char **envp)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (m > g_maxline && !rhcomment)
|
if (m > g_maxline && !rhcomment)
|
||||||
{
|
|
||||||
if (g_file_type == C_SOURCE)
|
|
||||||
{
|
{
|
||||||
ERROR("Long line found", lineno, m);
|
ERROR("Long line found", lineno, m);
|
||||||
}
|
}
|
||||||
else if (g_file_type == C_HEADER)
|
|
||||||
|
|
||||||
{
|
|
||||||
WARN("Long line found", lineno, m);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* STEP 4: Check alignment */
|
/* STEP 4: Check alignment */
|
||||||
|
Loading…
Reference in New Issue
Block a user