use cmd_sfunc_ftype and cmd_cfunc_ftype more
authorTom Tromey <tromey@redhat.com>
Mon, 19 Nov 2012 02:24:22 +0000 (19:24 -0700)
committerTom Tromey <tromey@redhat.com>
Tue, 1 Jul 2014 16:21:10 +0000 (10:21 -0600)
commit82ae6c8d79c426e1b4d6f7b8d4be5292b3e9a8c5
tree40847145d6c1a411dce67743dbd2b6731b463dcc
parentb6a1c03a9547590a35fccda9ae358fb1cfd8befa
use cmd_sfunc_ftype and cmd_cfunc_ftype more

This patch changes a few more spots to use either cmd_sfunc_ftype or
cmd_cfunc_ftype, as appropriate.  This is a bit cleaner.

Tested by rebuilding.

2014-07-01  Tom Tromey  <tromey@redhat.com>

* breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
* breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
* cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
(add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
* command.h (cmd_cfunc_ftype): Move earlier.
(add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
(add_com, add_info): Use cmd_cfunc_ftype.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/cli/cli-decode.c
gdb/command.h