aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-11-27 19:10:14 +0400
committerJoel Brobecker <brobecker@adacore.com>2013-12-05 07:38:49 +0400
commita5e619ec1f0a115ebc33cbb9cab3bc242cb70f3b (patch)
treeb27d0f234699fb7b4e9e58a84081848107754e58 /gdb/ada-lex.l
parent18e2e72cbe72d818820511badfd059fb2b96f11a (diff)
downloadgdb-a5e619ec1f0a115ebc33cbb9cab3bc242cb70f3b.zip
gdb-a5e619ec1f0a115ebc33cbb9cab3bc242cb70f3b.tar.gz
gdb-a5e619ec1f0a115ebc33cbb9cab3bc242cb70f3b.tar.bz2
Minor coding-style fixes in ada-lex.l:find_dot_all.
gdb/ChangeLog: * ada-lex.l (find_dot_all): Fix coding style violations.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l27
1 files changed, 14 insertions, 13 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 8ad825b..e9cda4a 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;
}