forked from Imagelibrary/binutils-gdb
2011-03-11 Michael Snyder <msnyder@vmware.com>
* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
This commit is contained in:
@@ -590,7 +590,7 @@ complete_line_internal (const char *text,
|
||||
{
|
||||
/* An empty line we want to consider ambiguous; that is, it
|
||||
could be any command. */
|
||||
c = (struct cmd_list_element *) -1;
|
||||
c = CMD_LIST_AMBIGUOUS;
|
||||
result_list = 0;
|
||||
}
|
||||
else
|
||||
@@ -610,7 +610,7 @@ complete_line_internal (const char *text,
|
||||
possible completions. */
|
||||
list = NULL;
|
||||
}
|
||||
else if (c == (struct cmd_list_element *) -1)
|
||||
else if (c == CMD_LIST_AMBIGUOUS)
|
||||
{
|
||||
char *q;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user