mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Restrict check of right of code comments to #define in case of preprocessor lines
This commit is contained in:
committed by
patacongo
parent
46b8347217
commit
fbe65a2d7d
@@ -941,6 +941,8 @@ int main(int argc, char **argv, char **envp)
|
|||||||
ncomment++;
|
ncomment++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strncmp(&line[ii], "define", 6))
|
||||||
|
{
|
||||||
rhcomment = n;
|
rhcomment = n;
|
||||||
if (prevrhcmt != 0 && n != prevrhcmt)
|
if (prevrhcmt != 0 && n != prevrhcmt)
|
||||||
{
|
{
|
||||||
@@ -950,6 +952,7 @@ int main(int argc, char **argv, char **envp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user