comparison src/highlight.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents 85866e069c24
children 18cafa092e8d
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
341 "ToolbarButton cterm=bold ctermfg=Black ctermbg=LightGrey gui=bold guifg=Black guibg=LightGrey"), 341 "ToolbarButton cterm=bold ctermfg=Black ctermbg=LightGrey gui=bold guifg=Black guibg=LightGrey"),
342 #endif 342 #endif
343 NULL 343 NULL
344 }; 344 };
345 345
346 #if defined(FEAT_SYN_HL) || defined(PROTO)
346 /* 347 /*
347 * Returns the number of highlight groups. 348 * Returns the number of highlight groups.
348 */ 349 */
349 int 350 int
350 highlight_num_groups(void) 351 highlight_num_groups(void)
367 int 368 int
368 highlight_link_id(int id) 369 highlight_link_id(int id)
369 { 370 {
370 return HL_TABLE()[id].sg_link; 371 return HL_TABLE()[id].sg_link;
371 } 372 }
373 #endif
372 374
373 void 375 void
374 init_highlight( 376 init_highlight(
375 int both, // include groups where 'bg' doesn't matter 377 int both, // include groups where 'bg' doesn't matter
376 int reset) // clear group first 378 int reset) // clear group first