comparison src/syntax.c @ 15555:d89c5b339c2a v8.1.0785

patch 8.1.0785: depending on the configuration some functions are unused commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 20 15:30:40 2019 +0100 patch 8.1.0785: depending on the configuration some functions are unused Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jan 2019 15:45:07 +0100
parents dd725a8ab112
children 62b3805506b3
comparison
equal deleted inserted replaced
15554:496f146a0836 15555:d89c5b339c2a
8885 } 8885 }
8886 ++table->ga_len; 8886 ++table->ga_len;
8887 return (table->ga_len - 1 + ATTR_OFF); 8887 return (table->ga_len - 1 + ATTR_OFF);
8888 } 8888 }
8889 8889
8890 #if defined(FEAT_TERMINAL) || defined(PROTO)
8890 /* 8891 /*
8891 * Get an attribute index for a cterm entry. 8892 * Get an attribute index for a cterm entry.
8892 * Uses an existing entry when possible or adds one when needed. 8893 * Uses an existing entry when possible or adds one when needed.
8893 */ 8894 */
8894 int 8895 int
8904 at_en.ae_attr = attr; 8905 at_en.ae_attr = attr;
8905 at_en.ae_u.cterm.fg_color = fg; 8906 at_en.ae_u.cterm.fg_color = fg;
8906 at_en.ae_u.cterm.bg_color = bg; 8907 at_en.ae_u.cterm.bg_color = bg;
8907 return get_attr_entry(&cterm_attr_table, &at_en); 8908 return get_attr_entry(&cterm_attr_table, &at_en);
8908 } 8909 }
8909 8910 #endif
8910 #if defined(FEAT_TERMGUICOLORS) || defined(PROTO) 8911
8912 #if (defined(FEAT_TERMINAL) && defined(FEAT_TERMGUICOLORS)) || defined(PROTO)
8911 /* 8913 /*
8912 * Get an attribute index for a 'termguicolors' entry. 8914 * Get an attribute index for a 'termguicolors' entry.
8913 * Uses an existing entry when possible or adds one when needed. 8915 * Uses an existing entry when possible or adds one when needed.
8914 */ 8916 */
8915 int 8917 int
8933 } 8935 }
8934 return get_attr_entry(&cterm_attr_table, &at_en); 8936 return get_attr_entry(&cterm_attr_table, &at_en);
8935 } 8937 }
8936 #endif 8938 #endif
8937 8939
8938 #if defined(FEAT_GUI) || defined(PROTO) 8940 #if (defined(FEAT_TERMINAL) && defined(FEAT_GUI)) || defined(PROTO)
8939 /* 8941 /*
8940 * Get an attribute index for a cterm entry. 8942 * Get an attribute index for a cterm entry.
8941 * Uses an existing entry when possible or adds one when needed. 8943 * Uses an existing entry when possible or adds one when needed.
8942 */ 8944 */
8943 int 8945 int