forked from Imagelibrary/binutils-gdb
gdb: rename cmd_list_element::prefixlist to subcommands
While browsing this code, I found the name "prefixlist" really confusing. I kept reading it as "list of prefixes". Which it isn't: it's a list of sub-commands, for a prefix command. I think that renaming it to "subcommands" would make things clearer. gdb/ChangeLog: * Rename "prefixlist" parameters to "subcommands" throughout. * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to... <subcommands>: ... this. * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to... (lookup_cmd_with_subcommands): ... this. Change-Id: I150da10d03052c2420aa5b0dee41f422e2a97928
This commit is contained in:
@@ -208,7 +208,7 @@ extern struct cmd_list_element *add_show_prefix_cmd
|
||||
extern struct cmd_list_element *add_prefix_cmd_suppress_notification
|
||||
(const char *name, enum command_class theclass,
|
||||
cmd_const_cfunc_ftype *fun,
|
||||
const char *doc, struct cmd_list_element **prefixlist,
|
||||
const char *doc, struct cmd_list_element **subcommands,
|
||||
int allow_unknown,
|
||||
struct cmd_list_element **list,
|
||||
int *suppress_notification);
|
||||
|
||||
Reference in New Issue
Block a user