* command.c (empty_sfunc): New function.
(add_set_cmd): Use it instead of not_just_help_class_command. (not_just_help_class_command): Change calling convention back to what it was before yesterday's change.
This commit is contained in:
parent
159ada029b
commit
e635796721
1 changed files with 13 additions and 3 deletions
|
@ -190,9 +190,19 @@ add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* This is an empty "cfunc". */
|
||||||
void
|
void
|
||||||
not_just_help_class_command (args, from_tty, c)
|
not_just_help_class_command (args, from_tty)
|
||||||
|
char *args;
|
||||||
|
int from_tty;
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This is an empty "sfunc". */
|
||||||
|
static void empty_sfunc PARAMS ((char *, int, struct cmd_list_element *));
|
||||||
|
|
||||||
|
static void
|
||||||
|
empty_sfunc (args, from_tty, c)
|
||||||
char *args;
|
char *args;
|
||||||
int from_tty;
|
int from_tty;
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
|
@ -223,7 +233,7 @@ add_set_cmd (name, class, var_type, var, doc, list)
|
||||||
c->var = var;
|
c->var = var;
|
||||||
/* This needs to be something besides NO_FUNCTION so that this isn't
|
/* This needs to be something besides NO_FUNCTION so that this isn't
|
||||||
treated as a help class. */
|
treated as a help class. */
|
||||||
c->function.sfunc = not_just_help_class_command;
|
c->function.sfunc = empty_sfunc;
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue