From 69da3468fdc2f3ae407f56dd3ab64e3cbcf8842a Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Wed, 6 Dec 2000 23:53:03 +0000 Subject: 2000-12-06 Fernando Nasser * cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying that is not currently used. --- gdb/cli/cli-decode.c | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 9bedba1..2889efc 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -109,6 +109,19 @@ add_cmd (char *name, enum command_class class, void (*fun) (char *, int), return c; } +/* Same as above, except that the abbrev_flag is set. */ +/* Note: Doesn't seem to be used anywhere currently. */ + +struct cmd_list_element * +add_abbrev_cmd (char *name, enum command_class class, void (*fun) (char *, int), + char *doc, struct cmd_list_element **list) +{ + register struct cmd_list_element *c + = add_cmd (name, class, fun, doc, list); + + c->abbrev_flag = 1; + return c; +} /* Deprecates a command CMD. REPLACEMENT is the name of the command which should be used in place @@ -133,24 +146,6 @@ deprecate_cmd (struct cmd_list_element *cmd, char *replacement) return cmd; } - -/* Same as above, except that the abbrev_flag is set. */ - -#if 0 /* Currently unused */ - -struct cmd_list_element * -add_abbrev_cmd (char *name, enum command_class class, void (*fun) (char *, int), - char *doc, struct cmd_list_element **list) -{ - register struct cmd_list_element *c - = add_cmd (name, class, fun, doc, list); - - c->abbrev_flag = 1; - return c; -} - -#endif - struct cmd_list_element * add_alias_cmd (char *name, char *oldname, enum command_class class, int abbrev_flag, struct cmd_list_element **list) -- cgit v1.1