From: Joel Brobecker Date: Wed, 27 Nov 2013 15:10:14 +0000 (+0400) Subject: Minor coding-style fixes in ada-lex.l:find_dot_all. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5e619ec1f0a115ebc33cbb9cab3bc242cb70f3b;p=binutils-gdb.git Minor coding-style fixes in ada-lex.l:find_dot_all. gdb/ChangeLog: * ada-lex.l (find_dot_all): Fix coding style violations. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22debbb1e4e..380177ac0dd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-12-05 Joel Brobecker + + * ada-lex.l (find_dot_all): Fix coding style violations. + 2013-12-03 Walfred Tedeschi * NEWS: Add section for Intel(R) Architecture Instructions diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l index 8ad825b1bfa..e9cda4ae27f 100644 --- a/gdb/ada-lex.l +++ b/gdb/ada-lex.l @@ -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; }