comparison src/term.c @ 11158:501f46f7644c v8.0.0466

patch 8.0.0466: still macros that should be all-caps commit https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 17:23:31 2017 +0100 patch 8.0.0466: still macros that should be all-caps Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 17:30:06 +0100
parents b8c04c007d39
children 6e1c19d3de03
comparison
equal deleted inserted replaced
11157:35a1705f4d02 11158:501f46f7644c
1563 } 1563 }
1564 1564
1565 /* get output strings */ 1565 /* get output strings */
1566 for (i = 0; string_names[i].name != NULL; ++i) 1566 for (i = 0; string_names[i].name != NULL; ++i)
1567 { 1567 {
1568 if (term_str(string_names[i].dest) == NULL 1568 if (TERM_STR(string_names[i].dest) == NULL
1569 || term_str(string_names[i].dest) == empty_option) 1569 || TERM_STR(string_names[i].dest) == empty_option)
1570 term_str(string_names[i].dest) = 1570 TERM_STR(string_names[i].dest) =
1571 TGETSTR(string_names[i].name, &tp); 1571 TGETSTR(string_names[i].name, &tp);
1572 } 1572 }
1573 1573
1574 /* tgetflag() returns 1 if the flag is present, 0 if not and 1574 /* tgetflag() returns 1 if the flag is present, 0 if not and
1575 * possibly -1 if the flag doesn't exist. */ 1575 * possibly -1 if the flag doesn't exist. */
1617 width = tgetnum("co"); 1617 width = tgetnum("co");
1618 1618
1619 /* 1619 /*
1620 * Get number of colors (if not done already). 1620 * Get number of colors (if not done already).
1621 */ 1621 */
1622 if (term_str(KS_CCO) == NULL 1622 if (TERM_STR(KS_CCO) == NULL
1623 || term_str(KS_CCO) == empty_option) 1623 || TERM_STR(KS_CCO) == empty_option)
1624 set_color_count(tgetnum("Co")); 1624 set_color_count(tgetnum("Co"));
1625 1625
1626 # ifndef hpux 1626 # ifndef hpux
1627 BC = (char *)TGETSTR("bc", &tp); 1627 BC = (char *)TGETSTR("bc", &tp);
1628 UP = (char *)TGETSTR("up", &tp); 1628 UP = (char *)TGETSTR("up", &tp);