This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit 10/12] Rename "wild_match" parameter in ada-lang.c:symbol_completion_add...
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 29 Mar 2012 16:33:33 -0700
- Subject: [commit 10/12] Rename "wild_match" parameter in ada-lang.c:symbol_completion_add...
- References: <1333064015-29503-1-git-send-email-brobecker@adacore.com>
... to avoid a -Wshadow warning.
gdb/ChangeLog:
-Wshadow warning fix.
* ada-lang.c (symbol_completion_add): Rename parameter
"wild_match" into wild_match_p. Update code and documentation
accordingly.
---
gdb/ChangeLog | 8 ++++++++
gdb/ada-lang.c | 6 +++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9a6e55d..85efe72 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,12 @@
2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
+
+ -Wshadow warning fix.
+ * ada-lang.c (symbol_completion_add): Rename parameter
+ "wild_match" into wild_match_p. Update code and documentation
+ accordingly.
+
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (symbol_completion_match): Rename parameter
"encoded" into "encoded_p". Ajust code and documentation
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 64fb848..092ee26 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5730,7 +5730,7 @@ symbol_completion_match (const char *sym_name,
completion should be performed. These two parameters are used to
determine which part of the symbol name should be added to the
completion vector.
- if WILD_MATCH is set, then wild matching is performed.
+ if WILD_MATCH_P is set, then wild matching is performed.
ENCODED 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, int encoded)
+ int wild_match_p, int encoded)
{
const char *match = symbol_completion_match (sym_name, text, text_len,
- wild_match, encoded);
+ wild_match_p, encoded);
char *completion;
if (match == NULL)
--
1.7.1