aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-29 23:30:29 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-29 23:30:29 +0000
commit6ea35997bf6e897985a5885b04b001c346db9a35 (patch)
treeb5cd729deb996ec752348d50280518ecfedfdd05 /gdb
parente701b3c0f9fe487f85f4537de3133c34f58c8990 (diff)
downloadgdb-6ea35997bf6e897985a5885b04b001c346db9a35.zip
gdb-6ea35997bf6e897985a5885b04b001c346db9a35.tar.gz
gdb-6ea35997bf6e897985a5885b04b001c346db9a35.tar.bz2
Rename "encoded" parameter in ada-lang.c:symbol_completion_match...
... This is mostly to be consistent with the style used for the other parameter of the same kind ("wild_match_p") in that function. gdb/ChangeLog: * ada-lang.c (symbol_completion_match): Rename parameter "encoded" into "encoded_p". Ajust code and documentation accordingly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lang.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 91052a0..9a6e55d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,10 @@
2012-03-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (symbol_completion_match): Rename parameter
+ "encoded" into "encoded_p". Ajust code and documentation
+ accordingly.
+
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
Andrey Smirnov <andrew.smirnov@gmail.com>
-Wshadow warning fix.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index f68207b..64fb848 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5641,13 +5641,13 @@ ada_add_block_symbols (struct obstack *obstackp,
TEXT_LEN is equal to the length of TEXT.
Perform a wild match if WILD_MATCH_P is set.
- ENCODED should be set if TEXT represents the start of a symbol name
+ ENCODED_P should be set if TEXT represents the start of a symbol name
in its encoded form. */
static const char *
symbol_completion_match (const char *sym_name,
const char *text, int text_len,
- int wild_match_p, int encoded)
+ int wild_match_p, int encoded_p)
{
const int verbatim_match = (text[0] == '<');
int match = 0;
@@ -5664,7 +5664,7 @@ symbol_completion_match (const char *sym_name,
if (strncmp (sym_name, text, text_len) == 0)
match = 1;
- if (match && !encoded)
+ if (match && !encoded_p)
{
/* One needed check before declaring a positive match is to verify
that iff we are doing a verbatim match, the decoded version
@@ -5714,7 +5714,7 @@ symbol_completion_match (const char *sym_name,
if (verbatim_match)
sym_name = add_angle_brackets (sym_name);
- if (!encoded)
+ if (!encoded_p)
sym_name = ada_decode (sym_name);
return sym_name;