like var_string but allows only only one of the specified strings.
usage of fputc_unfiltered and putchar_unfiltered. Eliminate
putc_unfiltered (it's superfluous).
- * command.h command.c: Add var_enum command type. It's like
- var_string but allows only only one of the specified strings.
+ * command.h command.c top.c: Add var_enum command type. It's
+ like var_string but allows only only one of the specified strings.
Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
rl_completer_word_break_characters =
gdb_completer_command_word_break_characters;
}
+ else if (c->enums)
+ {
+ list = complete_on_enum (c->enums, p, word);
+ rl_completer_word_break_characters =
+ gdb_completer_command_word_break_characters;
+ }
else
{
/* It is a normal command; what comes after it is
e.g. "info adsfkdj". */
list = NULL;
}
+ else if (c->enums)
+ {
+ list = complete_on_enum (c->enums, p, word);
+ }
else
{
/* It is a normal command. */