binutils-gdb/gdb/cli
Tom Tromey cd4c4c07f4 Remove "cmd_type" function
The cmd_type function only has a single caller, which is in the CLI
implementation code.  This patch removes the function, and moves the
cmd_types enum definition from command.h to cli-decode.h, fixing an 18
year old FIXME.

gdb/ChangeLog
2020-06-28  Tom Tromey  <tom@tromey.com>

	* command.h (cmd_types): Remove.
	(cmd_type): Don't declare.
	* cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
	typedef.
	* cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
	* cli/cli-decode.c (cmd_type): Remove.
2020-06-28 10:33:07 -06:00
..
cli-cmds.c Remove "cmd_type" function 2020-06-28 10:33:07 -06:00
cli-cmds.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cli-decode.c Remove "cmd_type" function 2020-06-28 10:33:07 -06:00
cli-decode.h Remove "cmd_type" function 2020-06-28 10:33:07 -06:00
cli-dump.c Replace most calls to help_list and cmd_show_list 2020-04-17 15:13:41 -06:00
cli-interp.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
cli-interp.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cli-logging.c Update more calls to add_prefix_cmd 2020-05-03 11:31:20 -06:00
cli-option.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cli-option.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cli-script.c default-args: allow to define default arguments for aliases 2020-06-22 21:14:13 +02:00
cli-script.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cli-setshow.c Fix inconsistent output of prefix and bugs in 'show' command 2020-05-15 22:17:45 +02:00
cli-setshow.h Fix inconsistent output of prefix and bugs in 'show' command 2020-05-15 22:17:45 +02:00
cli-style.c Revert "Add completion styling" 2020-05-24 20:27:48 -06:00
cli-style.h Revert "Add completion styling" 2020-05-24 20:27:48 -06:00
cli-utils.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
cli-utils.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00