Friday, July 27, 2012

Re: Compilation fails with features=small

David NorthField <tkbizz07@gmail.com> wrote:

> Hi, all
>
> Vim 7.3.615 and later compilation fails with "src/normal.c:8006: undefined
> reference to `current_search'" when you configure --with-features=small.
> Is this bug? Any comments on this matter would be appreciated.
>
> thanks,
>
> David


I confirm. Vim small does not compile on Linux.
It happens because the definition of current_search()
is inside 2 nested #ifdef's (FEAT_TEXTOBJ, FEAT_VISUAL):

search.c:

3157 #ifdef FEAT_TEXTOBJ
....
3400 #if defined(FEAT_VISUAL) || defined(PROTO)
3401 /*
3402 * Find next search match under cursor, cursor at end.
3403 * Used while an operator is pending, and in Visual mode.
3404 * TODO: redo only works when used in operator pending mode
3405 */
3406 int
3407 current_search(count, forward)


Whereas where it's called (in normal.c) is only
in between one #ifdef FEAT_VISUAL

Attached patch fixes it by making gn and gN in
between FEAT_VISUAL only.

Regards
-- Dominique

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment