comparison src/search.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
474 ++p; 474 ++p;
475 } 475 }
476 return FALSE; 476 return FALSE;
477 } 477 }
478 478
479 #if defined(FEAT_EVAL) || defined(PROTO)
479 char_u * 480 char_u *
480 last_csearch(void) 481 last_csearch(void)
481 { 482 {
482 #ifdef FEAT_MBYTE 483 #ifdef FEAT_MBYTE
483 return lastc_bytes; 484 return lastc_bytes;
508 memcpy(lastc_bytes, s, len); 509 memcpy(lastc_bytes, s, len);
509 else 510 else
510 vim_memset(lastc_bytes, 0, sizeof(lastc_bytes)); 511 vim_memset(lastc_bytes, 0, sizeof(lastc_bytes));
511 #endif 512 #endif
512 } 513 }
514 #endif
513 515
514 void 516 void
515 set_csearch_direction(int cdir) 517 set_csearch_direction(int cdir)
516 { 518 {
517 lastcdir = cdir; 519 lastcdir = cdir;