I happened to notice that output_command_const still exists, but is
not needed any more -- commands are always const-correct now. This
patch removes this leftover.
2018-05-21 Tom Tromey <
[email protected]>
* printcmd.c (output_command): Remove.
(output_command_const): Rename to output_command.
* valprint.h (output_command): Rename from output_command_const.
* tracepoint.c (trace_dump_actions): Call output_command.
+
+ * printcmd.c (output_command): Remove.
+ (output_command_const): Rename to output_command.
+ * valprint.h (output_command): Rename from output_command_const.
+ * tracepoint.c (trace_dump_actions): Call output_command.
+
* mi/mi-cmd-catch.c (mi_cmd_catch_assert)
/* Implementation of the "output" command. */
-static void
-output_command (const char *exp, int from_tty)
-{
- output_command_const (exp, from_tty);
-}
-
-/* Like output_command, but takes a const string as argument. */
-
void
-output_command_const (const char *exp, int from_tty)
+output_command (const char *exp, int from_tty)
{
char format = 0;
struct value *val;
}
printf_filtered ("%s = ", exp);
- output_command_const (exp, from_tty);
+ output_command (exp, from_tty);
printf_filtered ("\n");
}
action_exp = next_comma;
arguments passed to all command implementations, except ARGS is
const. */
-extern void output_command_const (const char *args, int from_tty);
+extern void output_command (const char *args, int from_tty);
extern int val_print_scalar_type_p (struct type *type);