Saturday, July 28, 2012

Re: Compilation fails with features=small

Dominique Pelle wrote:

> 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.

Yeah, patch 7.3.616 was wrong. Should have tested that.

--
hundred-and-one symptoms of being an internet addict:
179. You wonder why your household garbage can doesn't have an
"empty recycle bin" button.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
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