mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.1971: manually enabling features causes build errors
Problem: Manually enabling features causes build errors. (John Marriott) Solution: Adjust #ifdefs.
This commit is contained in:
44
src/buffer.c
44
src/buffer.c
@@ -45,10 +45,6 @@ static int append_arg_number(win_T *wp, char_u *buf, int buflen, int add_file);
|
|||||||
static void free_buffer(buf_T *);
|
static void free_buffer(buf_T *);
|
||||||
static void free_buffer_stuff(buf_T *buf, int free_options);
|
static void free_buffer_stuff(buf_T *buf, int free_options);
|
||||||
static void clear_wininfo(buf_T *buf);
|
static void clear_wininfo(buf_T *buf);
|
||||||
#if defined(FEAT_JOB_CHANNEL) \
|
|
||||||
|| defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
|
|
||||||
static int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
# define dev_T dev_t
|
# define dev_T dev_t
|
||||||
@@ -5457,7 +5453,24 @@ buf_spname(buf_T *buf)
|
|||||||
#if defined(FEAT_JOB_CHANNEL) \
|
#if defined(FEAT_JOB_CHANNEL) \
|
||||||
|| defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \
|
|| defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \
|
||||||
|| defined(PROTO)
|
|| defined(PROTO)
|
||||||
# define SWITCH_TO_WIN
|
/*
|
||||||
|
* Find a window for buffer "buf".
|
||||||
|
* If found OK is returned and "wp" and "tp" are set to the window and tabpage.
|
||||||
|
* If not found FAIL is returned.
|
||||||
|
*/
|
||||||
|
static int
|
||||||
|
find_win_for_buf(
|
||||||
|
buf_T *buf,
|
||||||
|
win_T **wp,
|
||||||
|
tabpage_T **tp)
|
||||||
|
{
|
||||||
|
FOR_ALL_TAB_WINDOWS(*tp, *wp)
|
||||||
|
if ((*wp)->w_buffer == buf)
|
||||||
|
goto win_found;
|
||||||
|
return FAIL;
|
||||||
|
win_found:
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find a window that contains "buf" and switch to it.
|
* Find a window that contains "buf" and switch to it.
|
||||||
@@ -5497,27 +5510,6 @@ restore_win_for_buf(
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_QUICKFIX) || defined(SWITCH_TO_WIN) || defined(PROTO)
|
|
||||||
/*
|
|
||||||
* Find a window for buffer "buf".
|
|
||||||
* If found OK is returned and "wp" and "tp" are set to the window and tabpage.
|
|
||||||
* If not found FAIL is returned.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
find_win_for_buf(
|
|
||||||
buf_T *buf,
|
|
||||||
win_T **wp,
|
|
||||||
tabpage_T **tp)
|
|
||||||
{
|
|
||||||
FOR_ALL_TAB_WINDOWS(*tp, *wp)
|
|
||||||
if ((*wp)->w_buffer == buf)
|
|
||||||
goto win_found;
|
|
||||||
return FAIL;
|
|
||||||
win_found:
|
|
||||||
return OK;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set 'buflisted' for curbuf to "on" and trigger autocommands if it changed.
|
* Set 'buflisted' for curbuf to "on" and trigger autocommands if it changed.
|
||||||
*/
|
*/
|
||||||
|
@@ -760,8 +760,9 @@ pum_set_selected(int n, int repeat UNUSED)
|
|||||||
# else
|
# else
|
||||||
# define use_popup 0
|
# define use_popup 0
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef FEAT_TEXT_PROP
|
||||||
has_info = TRUE;
|
has_info = TRUE;
|
||||||
|
# endif
|
||||||
// Open a preview window. 3 lines by default. Prefer
|
// Open a preview window. 3 lines by default. Prefer
|
||||||
// 'previewheight' if set and smaller.
|
// 'previewheight' if set and smaller.
|
||||||
g_do_tagpreview = 3;
|
g_do_tagpreview = 3;
|
||||||
|
@@ -181,9 +181,7 @@ void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void
|
|||||||
# if defined(FEAT_PROFILE) || defined(FEAT_RELTIME)
|
# if defined(FEAT_PROFILE) || defined(FEAT_RELTIME)
|
||||||
# include "profiler.pro"
|
# include "profiler.pro"
|
||||||
# endif
|
# endif
|
||||||
# ifdef FEAT_QUICKFIX
|
# include "quickfix.pro"
|
||||||
# include "quickfix.pro"
|
|
||||||
# endif
|
|
||||||
# include "regexp.pro"
|
# include "regexp.pro"
|
||||||
# include "scriptfile.pro"
|
# include "scriptfile.pro"
|
||||||
# include "screen.pro"
|
# include "screen.pro"
|
||||||
|
@@ -3381,9 +3381,7 @@ qf_jump_newwin(qf_info_T *qi,
|
|||||||
int prev_winid;
|
int prev_winid;
|
||||||
int opened_window = FALSE;
|
int opened_window = FALSE;
|
||||||
int print_message = TRUE;
|
int print_message = TRUE;
|
||||||
#ifdef FEAT_FOLDING
|
|
||||||
int old_KeyTyped = KeyTyped; // getting file may reset it
|
int old_KeyTyped = KeyTyped; // getting file may reset it
|
||||||
#endif
|
|
||||||
int retval = OK;
|
int retval = OK;
|
||||||
|
|
||||||
if (qi == NULL)
|
if (qi == NULL)
|
||||||
@@ -3427,7 +3425,7 @@ qf_jump_newwin(qf_info_T *qi,
|
|||||||
goto theend;
|
goto theend;
|
||||||
|
|
||||||
retval = qf_jump_to_buffer(qi, qf_index, qf_ptr, forceit, prev_winid,
|
retval = qf_jump_to_buffer(qi, qf_index, qf_ptr, forceit, prev_winid,
|
||||||
&opened_window, old_KeyTyped, print_message);
|
&opened_window, old_KeyTyped, print_message);
|
||||||
if (retval == NOTDONE)
|
if (retval == NOTDONE)
|
||||||
{
|
{
|
||||||
// Quickfix/location list is freed by an autocmd
|
// Quickfix/location list is freed by an autocmd
|
||||||
|
8
src/ui.c
8
src/ui.c
@@ -3637,6 +3637,8 @@ mouse_find_win(int *rowp, int *colp, mouse_find_T popup UNUSED)
|
|||||||
|| defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
|
|| defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
|
||||||
|| defined(FEAT_GUI_PHOTON) || defined(FEAT_TERM_POPUP_MENU) \
|
|| defined(FEAT_GUI_PHOTON) || defined(FEAT_TERM_POPUP_MENU) \
|
||||||
|| defined(PROTO)
|
|| defined(PROTO)
|
||||||
|
# define NEED_VCOL2COL
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Translate window coordinates to buffer position without any side effects
|
* Translate window coordinates to buffer position without any side effects
|
||||||
*/
|
*/
|
||||||
@@ -3678,10 +3680,8 @@ get_fpos_of_mouse(pos_T *mpos)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MAC) \
|
#if defined(NEED_VCOL2COL) || defined(FEAT_BEVAL) || defined(FEAT_TEXT_PROP) \
|
||||||
|| defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
|
|| defined(PROTO)
|
||||||
|| defined(FEAT_GUI_PHOTON) || defined(FEAT_BEVAL) \
|
|
||||||
|| defined(FEAT_TERM_POPUP_MENU) || defined(PROTO)
|
|
||||||
/*
|
/*
|
||||||
* Convert a virtual (screen) column to a character column.
|
* Convert a virtual (screen) column to a character column.
|
||||||
* The first column is one.
|
* The first column is one.
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1971,
|
||||||
/**/
|
/**/
|
||||||
1970,
|
1970,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user