aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-29 23:30:46 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-29 23:30:46 +0000
commitcb8e9b977ecf427fcd84127e05c11855cc2fd217 (patch)
tree6f317664fd4a1a0b3b79baea0fbea4302dd398d5 /gdb
parentc0af17067c508b2228e7bcb958f2c03584ccdc99 (diff)
downloadgdb-cb8e9b977ecf427fcd84127e05c11855cc2fd217.zip
gdb-cb8e9b977ecf427fcd84127e05c11855cc2fd217.tar.gz
gdb-cb8e9b977ecf427fcd84127e05c11855cc2fd217.tar.bz2
Rename "encoded" parameter in ada-lang.c:symbol_completion_add...
... 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_add): 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.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 85efe72..16bb222 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,10 @@
2012-03-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (symbol_completion_add): 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 092ee26..4a6e847 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5731,7 +5731,7 @@ symbol_completion_match (const char *sym_name,
determine which part of the symbol name should be added to the
completion vector.
if WILD_MATCH_P is set, then wild matching is performed.
- ENCODED should be set if TEXT represents a symbol name in its
+ ENCODED_P should be set if TEXT represents a symbol name in its
encoded formed (in which case the completion should also be
encoded). */
@@ -5740,10 +5740,10 @@ symbol_completion_add (VEC(char_ptr) **sv,
const char *sym_name,
const char *text, int text_len,
const char *orig_text, const char *word,
- int wild_match_p, int encoded)
+ int wild_match_p, int encoded_p)
{
const char *match = symbol_completion_match (sym_name, text, text_len,
- wild_match_p, encoded);
+ wild_match_p, encoded_p);
char *completion;
if (match == NULL)