mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Fix incorrect working about 'Missing semicolon' from cnvwindeps.exe
This commit is contained in:
+9
-1
@@ -213,10 +213,18 @@ int main(int argc, char **argv, char **envp)
|
|||||||
if (begin)
|
if (begin)
|
||||||
{
|
{
|
||||||
path = skip_spaces(next);
|
path = skip_spaces(next);
|
||||||
|
if (*path == '#')
|
||||||
|
{
|
||||||
|
/* Comment line */
|
||||||
|
|
||||||
|
puts(g_line);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
next = strchr(path, ':');
|
next = strchr(path, ':');
|
||||||
if (!next)
|
if (!next)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%lu: Expected semicolon\n", g_lineno);
|
fprintf(stderr, "%lu: Expected colon\n", g_lineno);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user