mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
tools/nxstyle.c: Check for missing space before closing comment faulty (#543)
*Addresses Issue #540, check for missing space before closing comment was faulty
This commit is contained in:
+2
-2
@@ -1471,7 +1471,7 @@ int main(int argc, char **argv, char **envp)
|
||||
{
|
||||
ERROR("Closing C comment not indented", lineno, n);
|
||||
}
|
||||
else if (!isspace((int)line[n + 1]) && line[n - 2] != '*')
|
||||
else if (!isspace((int)line[n - 2]) && line[n - 2] != '*')
|
||||
{
|
||||
ERROR("Missing space before closing C comment", lineno,
|
||||
n);
|
||||
@@ -1974,7 +1974,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
case '/':
|
||||
|
||||
/* C comment terminator*/
|
||||
/* C comment terminator */
|
||||
|
||||
if (line[n - 1] == '*')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user