projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle custom completion match prefix / LCD
[deliverable/binutils-gdb.git]
/
gdb
/
cp-support.c
diff --git
a/gdb/cp-support.c
b/gdb/cp-support.c
index 368112a529434e3850e408047d011cba699b7846..6c6825be90a960debadf2eaadb67d64b05dfd8a7 100644
(file)
--- a/
gdb/cp-support.c
+++ b/
gdb/cp-support.c
@@
-1634,14
+1634,14
@@
cp_symbol_name_matches_1 (const char *symbol_search_name,
const char *lookup_name,
size_t lookup_name_len,
strncmp_iw_mode mode,
const char *lookup_name,
size_t lookup_name_len,
strncmp_iw_mode mode,
- completion_match
*match
)
+ completion_match
_result *comp_match_res
)
{
if (strncmp_iw_with_mode (symbol_search_name,
lookup_name, lookup_name_len,
mode, language_cplus) == 0)
{
{
if (strncmp_iw_with_mode (symbol_search_name,
lookup_name, lookup_name_len,
mode, language_cplus) == 0)
{
- if (
match
!= NULL)
-
match
->set_match (symbol_search_name);
+ if (
comp_match_res
!= NULL)
+
comp_match_res
->set_match (symbol_search_name);
return true;
}
return true;
}
@@
-1653,7
+1653,7
@@
cp_symbol_name_matches_1 (const char *symbol_search_name,
static bool
cp_fq_symbol_name_matches (const char *symbol_search_name,
const lookup_name_info &lookup_name,
static bool
cp_fq_symbol_name_matches (const char *symbol_search_name,
const lookup_name_info &lookup_name,
- completion_match
*match
)
+ completion_match
_result *comp_match_res
)
{
/* Get the demangled name. */
const std::string &name = lookup_name.cplus ().lookup_name ();
{
/* Get the demangled name. */
const std::string &name = lookup_name.cplus ().lookup_name ();
@@
-1664,7
+1664,7
@@
cp_fq_symbol_name_matches (const char *symbol_search_name,
return cp_symbol_name_matches_1 (symbol_search_name,
name.c_str (), name.size (),
return cp_symbol_name_matches_1 (symbol_search_name,
name.c_str (), name.size (),
- mode,
match
);
+ mode,
comp_match_res
);
}
/* See cp-support.h. */
}
/* See cp-support.h. */
This page took
0.027108 seconds
and
4
git commands to generate.