Minor coding-style fixes in ada-lex.l:find_dot_all.

gdb/ChangeLog:

        * ada-lex.l (find_dot_all): Fix coding style violations.
This commit is contained in:
Joel Brobecker 2013-11-27 19:10:14 +04:00
parent 18e2e72cbe
commit a5e619ec1f
2 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,7 @@
2013-12-05 Joel Brobecker <brobecker@adacore.com>
* ada-lex.l (find_dot_all): Fix coding style violations.
2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
* NEWS: Add section for Intel(R) Architecture Instructions

View File

@ -537,19 +537,20 @@ static int
find_dot_all (const char *str)
{
int i;
for (i = 0; str[i] != '\000'; i += 1)
{
if (str[i] == '.')
{
int i0 = i;
do
i += 1;
while (isspace (str[i]));
if (strncasecmp (str+i, "all", 3) == 0
&& ! isalnum (str[i+3]) && str[i+3] != '_')
return i0;
}
}
for (i = 0; str[i] != '\000'; i++)
if (str[i] == '.')
{
int i0 = i;
do
i += 1;
while (isspace (str[i]));
if (strncasecmp (str + i, "all", 3) == 0
&& !isalnum (str[i + 3]) && str[i + 3] != '_')
return i0;
}
return -1;
}