2005-02-18 Andrew Cagney <cagney@gnu.org>

Use add_setshow_uinteger_cmd through out.
	* printcmd.c, source.c, utils.c, valprint.c: Update.
This commit is contained in:
Andrew Cagney
2005-02-18 19:49:52 +00:00
parent 85c078043b
commit 35096d9d67
5 changed files with 55 additions and 46 deletions

View File

@ -2446,16 +2446,19 @@ initialize_utils (void)
{
struct cmd_list_element *c;
c = add_set_cmd ("width", class_support, var_uinteger, &chars_per_line,
"Set number of characters gdb thinks are in a line.",
&setlist);
deprecated_add_show_from_set (c, &showlist);
set_cmd_sfunc (c, set_width_command);
add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
Set number of characters gdb thinks are in a line."), _("\
Show number of characters gdb thinks are in a line."), NULL,
set_width_command,
NULL, /* FIXME: i18n: */
&setlist, &showlist);
c = add_set_cmd ("height", class_support, var_uinteger, &lines_per_page,
"Set number of lines gdb thinks are in a page.", &setlist);
deprecated_add_show_from_set (c, &showlist);
set_cmd_sfunc (c, set_height_command);
add_setshow_uinteger_cmd ("height", class_support, &lines_per_page, _("\
Set number of lines gdb thinks are in a page."), _("\
Show number of lines gdb thinks are in a page."), NULL,
set_height_command,
NULL, /* FIXME: i18n: */
&setlist, &showlist);
init_page_info ();