use CALL_COMMAND_HANDLER instead of direct calls

By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or
even removed in inherited signatures, without requiring revisiting
all of the various call sites.
This commit is contained in:
Zachary T Welch
2009-11-10 22:23:07 -08:00
parent 1df5cc18f5
commit 5b6df55a1e
10 changed files with 20 additions and 16 deletions

View File

@@ -1271,7 +1271,7 @@ COMMAND_HANDLER(handle_etm_tracemode_command)
case 0:
break;
case 4:
handle_etm_tracemode_command_update(cmd_ctx, cmd, args, argc, &tracemode);
CALL_COMMAND_HANDLER(handle_etm_tracemode_command_update, &tracemode);
break;
default:
command_print(cmd_ctx, "usage: configure trace mode "