提交 da16224f 编写于 作者: R Rich Felker

simplify getopt_long argv permutation loop logic

上级 567cc81c
......@@ -31,9 +31,7 @@ static int __getopt_long(int argc, char *const *argv, const char *optstring, con
int i;
for (i=optind; ; i++) {
if (i >= argc || !argv[i]) return -1;
if (argv[i][0] != '-') continue;
if (!argv[i][1]) continue;
break;
if (argv[i][0] == '-' && argv[i][1]) break;
}
optind = i;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册