mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 15:22:25 +08:00
[gdb/tui] Replace macro HELP_ATTRIBUTE_MODE with std::string
Replace macro HELP_ATTRIBUTE_MODE with a std::string. Tested on x86_64-linux. Reviewed-By: Bruno Larsen <blarsen@redhat.com> Reviewed-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@ -1220,39 +1220,43 @@ This variable controls the border of TUI windows:\n\
|
|||||||
show_tui_border_kind,
|
show_tui_border_kind,
|
||||||
&tui_setlist, &tui_showlist);
|
&tui_setlist, &tui_showlist);
|
||||||
|
|
||||||
#define HELP_ATTRIBUTE_MODE "\
|
const std::string help_attribute_mode (_("\
|
||||||
normal normal display\n\
|
normal normal display\n\
|
||||||
standout use highlight mode of terminal\n\
|
standout use highlight mode of terminal\n\
|
||||||
reverse use reverse video mode\n\
|
reverse use reverse video mode\n\
|
||||||
half use half bright\n\
|
half use half bright\n\
|
||||||
half-standout use half bright and standout mode\n\
|
half-standout use half bright and standout mode\n\
|
||||||
bold use extra bright or bold\n\
|
bold use extra bright or bold\n\
|
||||||
bold-standout use extra bright or bold with standout mode"
|
bold-standout use extra bright or bold with standout mode"));
|
||||||
|
|
||||||
|
const std::string help_tui_border_mode
|
||||||
|
= (_("\
|
||||||
|
This variable controls the attributes to use for the window borders:\n")
|
||||||
|
+ help_attribute_mode);
|
||||||
|
|
||||||
add_setshow_enum_cmd ("border-mode", no_class, tui_border_mode_enums,
|
add_setshow_enum_cmd ("border-mode", no_class, tui_border_mode_enums,
|
||||||
&tui_border_mode, _("\
|
&tui_border_mode, _("\
|
||||||
Set the attribute mode to use for the TUI window borders."), _("\
|
Set the attribute mode to use for the TUI window borders."), _("\
|
||||||
Show the attribute mode to use for the TUI window borders."),
|
Show the attribute mode to use for the TUI window borders."),
|
||||||
_("\
|
help_tui_border_mode.c_str (),
|
||||||
This variable controls the attributes to use for the window borders:\n"
|
|
||||||
HELP_ATTRIBUTE_MODE),
|
|
||||||
tui_set_var_cmd,
|
tui_set_var_cmd,
|
||||||
show_tui_border_mode,
|
show_tui_border_mode,
|
||||||
&tui_setlist, &tui_showlist);
|
&tui_setlist, &tui_showlist);
|
||||||
|
|
||||||
|
const std::string help_tui_active_border_mode
|
||||||
|
= (_("\
|
||||||
|
This variable controls the attributes to use for the active window borders:\n")
|
||||||
|
+ help_attribute_mode);
|
||||||
|
|
||||||
add_setshow_enum_cmd ("active-border-mode", no_class, tui_border_mode_enums,
|
add_setshow_enum_cmd ("active-border-mode", no_class, tui_border_mode_enums,
|
||||||
&tui_active_border_mode, _("\
|
&tui_active_border_mode, _("\
|
||||||
Set the attribute mode to use for the active TUI window border."), _("\
|
Set the attribute mode to use for the active TUI window border."), _("\
|
||||||
Show the attribute mode to use for the active TUI window border."),
|
Show the attribute mode to use for the active TUI window border."),
|
||||||
_("\
|
help_tui_active_border_mode.c_str (),
|
||||||
This variable controls the attributes to use for the active window border:\n"
|
|
||||||
HELP_ATTRIBUTE_MODE),
|
|
||||||
tui_set_var_cmd,
|
tui_set_var_cmd,
|
||||||
show_tui_active_border_mode,
|
show_tui_active_border_mode,
|
||||||
&tui_setlist, &tui_showlist);
|
&tui_setlist, &tui_showlist);
|
||||||
|
|
||||||
#undef HELP_ATTRIBUTE_MODE
|
|
||||||
|
|
||||||
add_setshow_zuinteger_cmd ("tab-width", no_class,
|
add_setshow_zuinteger_cmd ("tab-width", no_class,
|
||||||
&internal_tab_width, _("\
|
&internal_tab_width, _("\
|
||||||
Set the tab width, in characters, for the TUI."), _("\
|
Set the tab width, in characters, for the TUI."), _("\
|
||||||
|
Reference in New Issue
Block a user