Mercurial > vim
comparison src/if_cscope.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 | f4ea50924c6d |
children | 68d7bc045dbe |
comparison
equal
deleted
inserted
replaced
11157:35a1705f4d02 | 11158:501f46f7644c |
---|---|
613 } | 613 } |
614 | 614 |
615 if (p_csverbose) | 615 if (p_csverbose) |
616 { | 616 { |
617 msg_clr_eos(); | 617 msg_clr_eos(); |
618 (void)smsg_attr(hl_attr(HLF_R), | 618 (void)smsg_attr(HL_ATTR(HLF_R), |
619 (char_u *)_("Added cscope database %s"), | 619 (char_u *)_("Added cscope database %s"), |
620 csinfo[i].fname); | 620 csinfo[i].fname); |
621 } | 621 } |
622 } | 622 } |
623 | 623 |
1610 char *cname) /* cscope database name */ | 1610 char *cname) /* cscope database name */ |
1611 { | 1611 { |
1612 if (p_csverbose) | 1612 if (p_csverbose) |
1613 { | 1613 { |
1614 msg_clr_eos(); | 1614 msg_clr_eos(); |
1615 (void)smsg_attr(hl_attr(HLF_R) | MSG_HIST, | 1615 (void)smsg_attr(HL_ATTR(HLF_R) | MSG_HIST, |
1616 (char_u *)_("cscope connection %s closed"), cname); | 1616 (char_u *)_("cscope connection %s closed"), cname); |
1617 } | 1617 } |
1618 cs_release_csp(i, TRUE); | 1618 cs_release_csp(i, TRUE); |
1619 } | 1619 } |
1620 | 1620 |
2018 buf = (char *)alloc(newsize); | 2018 buf = (char *)alloc(newsize); |
2019 if (buf != NULL) | 2019 if (buf != NULL) |
2020 { | 2020 { |
2021 bufsize = newsize; | 2021 bufsize = newsize; |
2022 (void)sprintf(buf, cstag_msg, ptag); | 2022 (void)sprintf(buf, cstag_msg, ptag); |
2023 MSG_PUTS_ATTR(buf, hl_attr(HLF_T)); | 2023 MSG_PUTS_ATTR(buf, HL_ATTR(HLF_T)); |
2024 } | 2024 } |
2025 | 2025 |
2026 vim_free(tbuf); | 2026 vim_free(tbuf); |
2027 | 2027 |
2028 MSG_PUTS_ATTR(_("\n # line"), hl_attr(HLF_T)); /* strlen is 7 */ | 2028 MSG_PUTS_ATTR(_("\n # line"), HL_ATTR(HLF_T)); /* strlen is 7 */ |
2029 msg_advance(msg_col + 2); | 2029 msg_advance(msg_col + 2); |
2030 MSG_PUTS_ATTR(_("filename / context / line\n"), hl_attr(HLF_T)); | 2030 MSG_PUTS_ATTR(_("filename / context / line\n"), HL_ATTR(HLF_T)); |
2031 | 2031 |
2032 num = 1; | 2032 num = 1; |
2033 for (i = 0; i < num_matches; i++) | 2033 for (i = 0; i < num_matches; i++) |
2034 { | 2034 { |
2035 idx = i; | 2035 idx = i; |
2069 } | 2069 } |
2070 if (buf != NULL) | 2070 if (buf != NULL) |
2071 { | 2071 { |
2072 /* csfmt_str = "%4d %6s "; */ | 2072 /* csfmt_str = "%4d %6s "; */ |
2073 (void)sprintf(buf, csfmt_str, num, lno); | 2073 (void)sprintf(buf, csfmt_str, num, lno); |
2074 MSG_PUTS_ATTR(buf, hl_attr(HLF_CM)); | 2074 MSG_PUTS_ATTR(buf, HL_ATTR(HLF_CM)); |
2075 } | 2075 } |
2076 MSG_PUTS_LONG_ATTR(cs_pathcomponents(fname), hl_attr(HLF_CM)); | 2076 MSG_PUTS_LONG_ATTR(cs_pathcomponents(fname), HL_ATTR(HLF_CM)); |
2077 | 2077 |
2078 /* compute the required space for the context */ | 2078 /* compute the required space for the context */ |
2079 if (cntxts[idx] != NULL) | 2079 if (cntxts[idx] != NULL) |
2080 context = cntxts[idx]; | 2080 context = cntxts[idx]; |
2081 else | 2081 else |
2397 /* don't use smsg_attr() because we want to display the | 2397 /* don't use smsg_attr() because we want to display the |
2398 * connection number in the same line as | 2398 * connection number in the same line as |
2399 * "Added cscope database..." | 2399 * "Added cscope database..." |
2400 */ | 2400 */ |
2401 sprintf(buf, " (#%d)", i); | 2401 sprintf(buf, " (#%d)", i); |
2402 MSG_PUTS_ATTR(buf, hl_attr(HLF_R)); | 2402 MSG_PUTS_ATTR(buf, HL_ATTR(HLF_R)); |
2403 } | 2403 } |
2404 } | 2404 } |
2405 vim_free(dblist[i]); | 2405 vim_free(dblist[i]); |
2406 vim_free(pplist[i]); | 2406 vim_free(pplist[i]); |
2407 vim_free(fllist[i]); | 2407 vim_free(fllist[i]); |
2409 vim_free(dblist); | 2409 vim_free(dblist); |
2410 vim_free(pplist); | 2410 vim_free(pplist); |
2411 vim_free(fllist); | 2411 vim_free(fllist); |
2412 | 2412 |
2413 if (p_csverbose) | 2413 if (p_csverbose) |
2414 MSG_ATTR(_("All cscope databases reset"), hl_attr(HLF_R) | MSG_HIST); | 2414 MSG_ATTR(_("All cscope databases reset"), HL_ATTR(HLF_R) | MSG_HIST); |
2415 return CSCOPE_SUCCESS; | 2415 return CSCOPE_SUCCESS; |
2416 } /* cs_reset */ | 2416 } /* cs_reset */ |
2417 | 2417 |
2418 | 2418 |
2419 /* | 2419 /* |
2495 MSG_PUTS(_("no cscope connections\n")); | 2495 MSG_PUTS(_("no cscope connections\n")); |
2496 else | 2496 else |
2497 { | 2497 { |
2498 MSG_PUTS_ATTR( | 2498 MSG_PUTS_ATTR( |
2499 _(" # pid database name prepend path\n"), | 2499 _(" # pid database name prepend path\n"), |
2500 hl_attr(HLF_T)); | 2500 HL_ATTR(HLF_T)); |
2501 for (i = 0; i < csinfo_size; i++) | 2501 for (i = 0; i < csinfo_size; i++) |
2502 { | 2502 { |
2503 if (csinfo[i].fname == NULL) | 2503 if (csinfo[i].fname == NULL) |
2504 continue; | 2504 continue; |
2505 | 2505 |