Remove unnecessary typecasts in initialisation of tcaps[]
This commit is contained in:
166
source/term.c
166
source/term.c
@@ -118,76 +118,76 @@ struct term_struct TIS;
|
||||
|
||||
static const cap2info tcaps[] =
|
||||
{
|
||||
{ "auto_left_margin", "bw", "bw", CAP_TYPE_BOOL, (void *)&TIS.TI_bw },
|
||||
{ "auto_right_margin", "am", "am", CAP_TYPE_BOOL, (void *)&TIS.TI_am },
|
||||
{ "no_esc_ctlc", "xsb", "xb", CAP_TYPE_BOOL, (void *)&TIS.TI_xsb },
|
||||
{ "ceol_standout_glitch", "xhp", "xs", CAP_TYPE_BOOL, (void *)&TIS.TI_xhp },
|
||||
{ "eat_newline_glitch", "xenl", "xn", CAP_TYPE_BOOL, (void *)&TIS.TI_xenl },
|
||||
{ "erase_overstrike", "eo", "eo", CAP_TYPE_BOOL, (void *)&TIS.TI_eo },
|
||||
{ "generic_type", "gn", "gn", CAP_TYPE_BOOL, (void *)&TIS.TI_gn },
|
||||
{ "hard_copy", "hc", "hc", CAP_TYPE_BOOL, (void *)&TIS.TI_hc },
|
||||
{ "has_meta_key", "km", "km", CAP_TYPE_BOOL, (void *)&TIS.TI_km },
|
||||
{ "has_status_line", "hs", "hs", CAP_TYPE_BOOL, (void *)&TIS.TI_hs },
|
||||
{ "insert_null_glitch", "in", "in", CAP_TYPE_BOOL, (void *)&TIS.TI_in },
|
||||
{ "memory_above", "da", "da", CAP_TYPE_BOOL, (void *)&TIS.TI_da },
|
||||
{ "memory_below", "db", "db", CAP_TYPE_BOOL, (void *)&TIS.TI_db },
|
||||
{ "move_insert_mode", "mir", "mi", CAP_TYPE_BOOL, (void *)&TIS.TI_mir },
|
||||
{ "move_standout_mode", "msgr", "ms", CAP_TYPE_BOOL, (void *)&TIS.TI_msgr },
|
||||
{ "over_strike", "os", "os", CAP_TYPE_BOOL, (void *)&TIS.TI_os },
|
||||
{ "status_line_esc_ok", "eslok", "es", CAP_TYPE_BOOL, (void *)&TIS.TI_eslok },
|
||||
{ "dest_tabs_magic_smso", "xt", "xt", CAP_TYPE_BOOL, (void *)&TIS.TI_xt },
|
||||
{ "tilde_glitch", "hz", "hz", CAP_TYPE_BOOL, (void *)&TIS.TI_hz },
|
||||
{ "transparent_underline", "ul", "ul", CAP_TYPE_BOOL, (void *)&TIS.TI_ul },
|
||||
{ "xon_xoff", "xon", "xo", CAP_TYPE_BOOL, (void *)&TIS.TI_xon },
|
||||
{ "needs_xon_xoff", "nxon", "nx", CAP_TYPE_BOOL, (void *)&TIS.TI_nxon },
|
||||
{ "prtr_silent", "mc5i", "5i", CAP_TYPE_BOOL, (void *)&TIS.TI_mc5i },
|
||||
{ "hard_cursor", "chts", "HC", CAP_TYPE_BOOL, (void *)&TIS.TI_chts },
|
||||
{ "non_rev_rmcup", "nrrmc", "NR", CAP_TYPE_BOOL, (void *)&TIS.TI_nrrmc },
|
||||
{ "no_pad_char", "npc", "NP", CAP_TYPE_BOOL, (void *)&TIS.TI_npc },
|
||||
{ "non_dest_scroll_region", "ndscr", "ND", CAP_TYPE_BOOL, (void *)&TIS.TI_ndscr },
|
||||
{ "can_change", "ccc", "cc", CAP_TYPE_BOOL, (void *)&TIS.TI_ccc },
|
||||
{ "back_color_erase", "bce", "ut", CAP_TYPE_BOOL, (void *)&TIS.TI_bce },
|
||||
{ "hue_lightness_saturation", "hls", "hl", CAP_TYPE_BOOL, (void *)&TIS.TI_hls },
|
||||
{ "col_addr_glitch", "xhpa", "YA", CAP_TYPE_BOOL, (void *)&TIS.TI_xhpa },
|
||||
{ "cr_cancels_micro_mode", "crxm", "YB", CAP_TYPE_BOOL, (void *)&TIS.TI_crxm },
|
||||
{ "has_print_wheel", "daisy", "YC", CAP_TYPE_BOOL, (void *)&TIS.TI_daisy },
|
||||
{ "row_addr_glitch", "xvpa", "YD", CAP_TYPE_BOOL, (void *)&TIS.TI_xvpa },
|
||||
{ "semi_auto_right_margin", "sam", "YE", CAP_TYPE_BOOL, (void *)&TIS.TI_sam },
|
||||
{ "cpi_changes_res", "cpix", "YF", CAP_TYPE_BOOL, (void *)&TIS.TI_cpix },
|
||||
{ "lpi_changes_res", "lpix", "YG", CAP_TYPE_BOOL, (void *)&TIS.TI_lpix },
|
||||
{ "columns", "cols", "co", CAP_TYPE_INT, (void *)&TIS.TI_cols },
|
||||
{ "init_tabs", "it", "it", CAP_TYPE_INT, (void *)&TIS.TI_it },
|
||||
{ "lines", "lines", "li", CAP_TYPE_INT, (void *)&TIS.TI_lines },
|
||||
{ "lines_of_memory", "lm", "lm", CAP_TYPE_INT, (void *)&TIS.TI_lm },
|
||||
{ "magic_cookie_glitch", "xmc", "sg", CAP_TYPE_INT, (void *)&TIS.TI_xmc },
|
||||
{ "padding_baud_rate", "pb", "pb", CAP_TYPE_INT, (void *)&TIS.TI_pb },
|
||||
{ "virtual_terminal", "vt", "vt", CAP_TYPE_INT, (void *)&TIS.TI_vt },
|
||||
{ "width_status_line", "wsl", "ws", CAP_TYPE_INT, (void *)&TIS.TI_wsl },
|
||||
{ "num_labels", "nlab", "Nl", CAP_TYPE_INT, (void *)&TIS.TI_nlab },
|
||||
{ "label_height", "lh", "lh", CAP_TYPE_INT, (void *)&TIS.TI_lh },
|
||||
{ "label_width", "lw", "lw", CAP_TYPE_INT, (void *)&TIS.TI_lw },
|
||||
{ "max_attributes", "ma", "ma", CAP_TYPE_INT, (void *)&TIS.TI_ma },
|
||||
{ "maximum_windows", "wnum", "MW", CAP_TYPE_INT, (void *)&TIS.TI_wnum },
|
||||
{ "max_colors", "colors", "Co", CAP_TYPE_INT, (void *)&TIS.TI_colors },
|
||||
{ "max_pairs", "pairs", "pa", CAP_TYPE_INT, (void *)&TIS.TI_pairs },
|
||||
{ "no_color_video", "ncv", "NC", CAP_TYPE_INT, (void *)&TIS.TI_ncv },
|
||||
{ "buffer_capacity", "bufsz", "Ya", CAP_TYPE_INT, (void *)&TIS.TI_bufsz },
|
||||
{ "dot_vert_spacing", "spinv", "Yb", CAP_TYPE_INT, (void *)&TIS.TI_spinv },
|
||||
{ "dot_horz_spacing", "spinh", "Yc", CAP_TYPE_INT, (void *)&TIS.TI_spinh },
|
||||
{ "max_micro_address", "maddr", "Yd", CAP_TYPE_INT, (void *)&TIS.TI_maddr },
|
||||
{ "max_micro_jump", "mjump", "Ye", CAP_TYPE_INT, (void *)&TIS.TI_mjump },
|
||||
{ "micro_col_size", "mcs", "Yf", CAP_TYPE_INT, (void *)&TIS.TI_mcs },
|
||||
{ "micro_line_size", "mls", "Yg", CAP_TYPE_INT, (void *)&TIS.TI_mls },
|
||||
{ "number_of_pins", "npins", "Yh", CAP_TYPE_INT, (void *)&TIS.TI_npins },
|
||||
{ "output_res_char", "orc", "Yi", CAP_TYPE_INT, (void *)&TIS.TI_orc },
|
||||
{ "output_res_line", "orl", "Yj", CAP_TYPE_INT, (void *)&TIS.TI_orl },
|
||||
{ "output_res_horz_inch", "orhi", "Yk", CAP_TYPE_INT, (void *)&TIS.TI_orhi },
|
||||
{ "output_res_vert_inch", "orvi", "Yl", CAP_TYPE_INT, (void *)&TIS.TI_orvi },
|
||||
{ "print_rate", "cps", "Ym", CAP_TYPE_INT, (void *)&TIS.TI_cps },
|
||||
{ "wide_char_size", "widcs", "Yn", CAP_TYPE_INT, (void *)&TIS.TI_widcs },
|
||||
{ "buttons", "btns", "BT", CAP_TYPE_INT, (void *)&TIS.TI_btns },
|
||||
{ "bit_image_entwining", "bitwin", "Yo", CAP_TYPE_INT, (void *)&TIS.TI_bitwin },
|
||||
{ "bit_image_type", "bitype", "Yp", CAP_TYPE_INT, (void *)&TIS.TI_bitype },
|
||||
{ "auto_left_margin", "bw", "bw", CAP_TYPE_BOOL, &TIS.TI_bw },
|
||||
{ "auto_right_margin", "am", "am", CAP_TYPE_BOOL, &TIS.TI_am },
|
||||
{ "no_esc_ctlc", "xsb", "xb", CAP_TYPE_BOOL, &TIS.TI_xsb },
|
||||
{ "ceol_standout_glitch", "xhp", "xs", CAP_TYPE_BOOL, &TIS.TI_xhp },
|
||||
{ "eat_newline_glitch", "xenl", "xn", CAP_TYPE_BOOL, &TIS.TI_xenl },
|
||||
{ "erase_overstrike", "eo", "eo", CAP_TYPE_BOOL, &TIS.TI_eo },
|
||||
{ "generic_type", "gn", "gn", CAP_TYPE_BOOL, &TIS.TI_gn },
|
||||
{ "hard_copy", "hc", "hc", CAP_TYPE_BOOL, &TIS.TI_hc },
|
||||
{ "has_meta_key", "km", "km", CAP_TYPE_BOOL, &TIS.TI_km },
|
||||
{ "has_status_line", "hs", "hs", CAP_TYPE_BOOL, &TIS.TI_hs },
|
||||
{ "insert_null_glitch", "in", "in", CAP_TYPE_BOOL, &TIS.TI_in },
|
||||
{ "memory_above", "da", "da", CAP_TYPE_BOOL, &TIS.TI_da },
|
||||
{ "memory_below", "db", "db", CAP_TYPE_BOOL, &TIS.TI_db },
|
||||
{ "move_insert_mode", "mir", "mi", CAP_TYPE_BOOL, &TIS.TI_mir },
|
||||
{ "move_standout_mode", "msgr", "ms", CAP_TYPE_BOOL, &TIS.TI_msgr },
|
||||
{ "over_strike", "os", "os", CAP_TYPE_BOOL, &TIS.TI_os },
|
||||
{ "status_line_esc_ok", "eslok", "es", CAP_TYPE_BOOL, &TIS.TI_eslok },
|
||||
{ "dest_tabs_magic_smso", "xt", "xt", CAP_TYPE_BOOL, &TIS.TI_xt },
|
||||
{ "tilde_glitch", "hz", "hz", CAP_TYPE_BOOL, &TIS.TI_hz },
|
||||
{ "transparent_underline", "ul", "ul", CAP_TYPE_BOOL, &TIS.TI_ul },
|
||||
{ "xon_xoff", "xon", "xo", CAP_TYPE_BOOL, &TIS.TI_xon },
|
||||
{ "needs_xon_xoff", "nxon", "nx", CAP_TYPE_BOOL, &TIS.TI_nxon },
|
||||
{ "prtr_silent", "mc5i", "5i", CAP_TYPE_BOOL, &TIS.TI_mc5i },
|
||||
{ "hard_cursor", "chts", "HC", CAP_TYPE_BOOL, &TIS.TI_chts },
|
||||
{ "non_rev_rmcup", "nrrmc", "NR", CAP_TYPE_BOOL, &TIS.TI_nrrmc },
|
||||
{ "no_pad_char", "npc", "NP", CAP_TYPE_BOOL, &TIS.TI_npc },
|
||||
{ "non_dest_scroll_region", "ndscr", "ND", CAP_TYPE_BOOL, &TIS.TI_ndscr },
|
||||
{ "can_change", "ccc", "cc", CAP_TYPE_BOOL, &TIS.TI_ccc },
|
||||
{ "back_color_erase", "bce", "ut", CAP_TYPE_BOOL, &TIS.TI_bce },
|
||||
{ "hue_lightness_saturation", "hls", "hl", CAP_TYPE_BOOL, &TIS.TI_hls },
|
||||
{ "col_addr_glitch", "xhpa", "YA", CAP_TYPE_BOOL, &TIS.TI_xhpa },
|
||||
{ "cr_cancels_micro_mode", "crxm", "YB", CAP_TYPE_BOOL, &TIS.TI_crxm },
|
||||
{ "has_print_wheel", "daisy", "YC", CAP_TYPE_BOOL, &TIS.TI_daisy },
|
||||
{ "row_addr_glitch", "xvpa", "YD", CAP_TYPE_BOOL, &TIS.TI_xvpa },
|
||||
{ "semi_auto_right_margin", "sam", "YE", CAP_TYPE_BOOL, &TIS.TI_sam },
|
||||
{ "cpi_changes_res", "cpix", "YF", CAP_TYPE_BOOL, &TIS.TI_cpix },
|
||||
{ "lpi_changes_res", "lpix", "YG", CAP_TYPE_BOOL, &TIS.TI_lpix },
|
||||
{ "columns", "cols", "co", CAP_TYPE_INT, &TIS.TI_cols },
|
||||
{ "init_tabs", "it", "it", CAP_TYPE_INT, &TIS.TI_it },
|
||||
{ "lines", "lines", "li", CAP_TYPE_INT, &TIS.TI_lines },
|
||||
{ "lines_of_memory", "lm", "lm", CAP_TYPE_INT, &TIS.TI_lm },
|
||||
{ "magic_cookie_glitch", "xmc", "sg", CAP_TYPE_INT, &TIS.TI_xmc },
|
||||
{ "padding_baud_rate", "pb", "pb", CAP_TYPE_INT, &TIS.TI_pb },
|
||||
{ "virtual_terminal", "vt", "vt", CAP_TYPE_INT, &TIS.TI_vt },
|
||||
{ "width_status_line", "wsl", "ws", CAP_TYPE_INT, &TIS.TI_wsl },
|
||||
{ "num_labels", "nlab", "Nl", CAP_TYPE_INT, &TIS.TI_nlab },
|
||||
{ "label_height", "lh", "lh", CAP_TYPE_INT, &TIS.TI_lh },
|
||||
{ "label_width", "lw", "lw", CAP_TYPE_INT, &TIS.TI_lw },
|
||||
{ "max_attributes", "ma", "ma", CAP_TYPE_INT, &TIS.TI_ma },
|
||||
{ "maximum_windows", "wnum", "MW", CAP_TYPE_INT, &TIS.TI_wnum },
|
||||
{ "max_colors", "colors", "Co", CAP_TYPE_INT, &TIS.TI_colors },
|
||||
{ "max_pairs", "pairs", "pa", CAP_TYPE_INT, &TIS.TI_pairs },
|
||||
{ "no_color_video", "ncv", "NC", CAP_TYPE_INT, &TIS.TI_ncv },
|
||||
{ "buffer_capacity", "bufsz", "Ya", CAP_TYPE_INT, &TIS.TI_bufsz },
|
||||
{ "dot_vert_spacing", "spinv", "Yb", CAP_TYPE_INT, &TIS.TI_spinv },
|
||||
{ "dot_horz_spacing", "spinh", "Yc", CAP_TYPE_INT, &TIS.TI_spinh },
|
||||
{ "max_micro_address", "maddr", "Yd", CAP_TYPE_INT, &TIS.TI_maddr },
|
||||
{ "max_micro_jump", "mjump", "Ye", CAP_TYPE_INT, &TIS.TI_mjump },
|
||||
{ "micro_col_size", "mcs", "Yf", CAP_TYPE_INT, &TIS.TI_mcs },
|
||||
{ "micro_line_size", "mls", "Yg", CAP_TYPE_INT, &TIS.TI_mls },
|
||||
{ "number_of_pins", "npins", "Yh", CAP_TYPE_INT, &TIS.TI_npins },
|
||||
{ "output_res_char", "orc", "Yi", CAP_TYPE_INT, &TIS.TI_orc },
|
||||
{ "output_res_line", "orl", "Yj", CAP_TYPE_INT, &TIS.TI_orl },
|
||||
{ "output_res_horz_inch", "orhi", "Yk", CAP_TYPE_INT, &TIS.TI_orhi },
|
||||
{ "output_res_vert_inch", "orvi", "Yl", CAP_TYPE_INT, &TIS.TI_orvi },
|
||||
{ "print_rate", "cps", "Ym", CAP_TYPE_INT, &TIS.TI_cps },
|
||||
{ "wide_char_size", "widcs", "Yn", CAP_TYPE_INT, &TIS.TI_widcs },
|
||||
{ "buttons", "btns", "BT", CAP_TYPE_INT, &TIS.TI_btns },
|
||||
{ "bit_image_entwining", "bitwin", "Yo", CAP_TYPE_INT, &TIS.TI_bitwin },
|
||||
{ "bit_image_type", "bitype", "Yp", CAP_TYPE_INT, &TIS.TI_bitype },
|
||||
{ "back_tab", "cbt", "bt", CAP_TYPE_STR, &TIS.TI_cbt },
|
||||
{ "bell", "bel", "bl", CAP_TYPE_STR, &TIS.TI_bel },
|
||||
{ "carriage_return", "cr", "cr", CAP_TYPE_STR, &TIS.TI_cr },
|
||||
@@ -584,23 +584,23 @@ static const cap2info tcaps[] =
|
||||
{ "set_pglen_inch", "slength", "sL", CAP_TYPE_STR, &TIS.TI_slength },
|
||||
{ "termcap_init2", "OTi2", "i2", CAP_TYPE_STR, &TIS.TI_OTi2 },
|
||||
{ "termcap_reset", "OTrs", "rs", CAP_TYPE_STR, &TIS.TI_OTrs },
|
||||
{ "magic_cookie_glitch_ul", "OTug", "ug", CAP_TYPE_INT, (char **)&TIS.TI_OTug },
|
||||
{ "backspaces_with_bs", "OTbs", "bs", CAP_TYPE_BOOL, (char **)&TIS.TI_OTbs },
|
||||
{ "crt_no_scrolling", "OTns", "ns", CAP_TYPE_BOOL, (char **)&TIS.TI_OTns },
|
||||
{ "no_correctly_working_cr", "OTnc", "nc", CAP_TYPE_BOOL, (char **)&TIS.TI_OTnc },
|
||||
{ "carriage_return_delay", "OTdC", "dC", CAP_TYPE_INT, (char **)&TIS.TI_OTdC },
|
||||
{ "new_line_delay", "OTdN", "dN", CAP_TYPE_INT, (char **)&TIS.TI_OTdN },
|
||||
{ "magic_cookie_glitch_ul", "OTug", "ug", CAP_TYPE_INT, &TIS.TI_OTug },
|
||||
{ "backspaces_with_bs", "OTbs", "bs", CAP_TYPE_BOOL, &TIS.TI_OTbs },
|
||||
{ "crt_no_scrolling", "OTns", "ns", CAP_TYPE_BOOL, &TIS.TI_OTns },
|
||||
{ "no_correctly_working_cr", "OTnc", "nc", CAP_TYPE_BOOL, &TIS.TI_OTnc },
|
||||
{ "carriage_return_delay", "OTdC", "dC", CAP_TYPE_INT, &TIS.TI_OTdC },
|
||||
{ "new_line_delay", "OTdN", "dN", CAP_TYPE_INT, &TIS.TI_OTdN },
|
||||
{ "linefeed_if_not_lf", "OTnl", "nl", CAP_TYPE_STR, &TIS.TI_OTnl },
|
||||
{ "backspace_if_not_bs", "OTbc", "bc", CAP_TYPE_STR, &TIS.TI_OTbc },
|
||||
{ "gnu_has_meta_key", "OTMT", "MT", CAP_TYPE_BOOL, (char **)&TIS.TI_OTMT },
|
||||
{ "linefeed_is_newline", "OTNL", "NL", CAP_TYPE_BOOL, (char **)&TIS.TI_OTNL },
|
||||
{ "backspace_delay", "OTdB", "dB", CAP_TYPE_INT, (char **)&TIS.TI_OTdB },
|
||||
{ "horizontal_tab_delay", "OTdT", "dT", CAP_TYPE_INT, (char **)&TIS.TI_OTdT },
|
||||
{ "number_of_function_keys", "OTkn", "kn", CAP_TYPE_INT, (char **)&TIS.TI_OTkn },
|
||||
{ "gnu_has_meta_key", "OTMT", "MT", CAP_TYPE_BOOL, &TIS.TI_OTMT },
|
||||
{ "linefeed_is_newline", "OTNL", "NL", CAP_TYPE_BOOL, &TIS.TI_OTNL },
|
||||
{ "backspace_delay", "OTdB", "dB", CAP_TYPE_INT, &TIS.TI_OTdB },
|
||||
{ "horizontal_tab_delay", "OTdT", "dT", CAP_TYPE_INT, &TIS.TI_OTdT },
|
||||
{ "number_of_function_keys", "OTkn", "kn", CAP_TYPE_INT, &TIS.TI_OTkn },
|
||||
{ "other_non_function_keys", "OTko", "ko", CAP_TYPE_STR, &TIS.TI_OTko },
|
||||
{ "arrow_key_map", "OTma", "ma", CAP_TYPE_STR, &TIS.TI_OTma },
|
||||
{ "has_hardware_tabs", "OTpt", "pt", CAP_TYPE_BOOL, (char **)&TIS.TI_OTpt },
|
||||
{ "return_does_clr_eol", "OTxr", "xr", CAP_TYPE_BOOL, (char **)&TIS.TI_OTxr },
|
||||
{ "has_hardware_tabs", "OTpt", "pt", CAP_TYPE_BOOL, &TIS.TI_OTpt },
|
||||
{ "return_does_clr_eol", "OTxr", "xr", CAP_TYPE_BOOL, &TIS.TI_OTxr },
|
||||
{ "acs_ulcorner", "OTG2", "G2", CAP_TYPE_STR, &TIS.TI_OTG2 },
|
||||
{ "acs_llcorner", "OTG3", "G3", CAP_TYPE_STR, &TIS.TI_OTG3 },
|
||||
{ "acs_urcorner", "OTG1", "G1", CAP_TYPE_STR, &TIS.TI_OTG1 },
|
||||
|
||||
Reference in New Issue
Block a user