mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.0057: cannot build with small features
Problem: Cannot build with small features. Solution: Add #ifdefs.
This commit is contained in:
@@ -32,7 +32,9 @@ estack_init(void)
|
|||||||
entry->es_type = ETYPE_TOP;
|
entry->es_type = ETYPE_TOP;
|
||||||
entry->es_name = NULL;
|
entry->es_name = NULL;
|
||||||
entry->es_lnum = 0;
|
entry->es_lnum = 0;
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
entry->es_info.ufunc = NULL;
|
entry->es_info.ufunc = NULL;
|
||||||
|
#endif
|
||||||
++exestack.ga_len;
|
++exestack.ga_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,13 +55,16 @@ estack_push(etype_T type, char_u *name, long lnum)
|
|||||||
entry->es_type = type;
|
entry->es_type = type;
|
||||||
entry->es_name = name;
|
entry->es_name = name;
|
||||||
entry->es_lnum = lnum;
|
entry->es_lnum = lnum;
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
entry->es_info.ufunc = NULL;
|
entry->es_info.ufunc = NULL;
|
||||||
|
#endif
|
||||||
++exestack.ga_len;
|
++exestack.ga_len;
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Add a user function to the execution stack.
|
* Add a user function to the execution stack.
|
||||||
*/
|
*/
|
||||||
@@ -72,6 +77,7 @@ estack_push_ufunc(etype_T type, ufunc_T *ufunc, long lnum)
|
|||||||
if (entry != NULL)
|
if (entry != NULL)
|
||||||
entry->es_info.ufunc = ufunc;
|
entry->es_info.ufunc = ufunc;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Take an item off of the execution stack.
|
* Take an item off of the execution stack.
|
||||||
@@ -98,9 +104,12 @@ estack_sfile(void)
|
|||||||
entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1;
|
entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1;
|
||||||
if (entry->es_name == NULL)
|
if (entry->es_name == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
if (entry->es_info.ufunc == NULL)
|
if (entry->es_info.ufunc == NULL)
|
||||||
|
#endif
|
||||||
return vim_strsave(entry->es_name);
|
return vim_strsave(entry->es_name);
|
||||||
|
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
// For a function we compose the call stack, as it was done in the past:
|
// For a function we compose the call stack, as it was done in the past:
|
||||||
// "function One[123]..Two[456]..Three"
|
// "function One[123]..Two[456]..Three"
|
||||||
len = STRLEN(entry->es_name) + 10;
|
len = STRLEN(entry->es_name) + 10;
|
||||||
@@ -132,6 +141,7 @@ estack_sfile(void)
|
|||||||
vim_snprintf(res + done, len - done, "%s", entry->es_name);
|
vim_snprintf(res + done, len - done, "%s", entry->es_name);
|
||||||
}
|
}
|
||||||
return (char_u *)res;
|
return (char_u *)res;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -742,6 +742,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 */
|
||||||
|
/**/
|
||||||
|
57,
|
||||||
/**/
|
/**/
|
||||||
56,
|
56,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user