mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 8.1.2359: cannot build without FEAT_FLOAT
Problem: Cannot build without FEAT_FLOAT. (John Marriott) Solution: Fix #ifdefs around f_srand().
This commit is contained in:
@@ -226,7 +226,9 @@ static void f_spellsuggest(typval_T *argvars, typval_T *rettv);
|
|||||||
static void f_split(typval_T *argvars, typval_T *rettv);
|
static void f_split(typval_T *argvars, typval_T *rettv);
|
||||||
#ifdef FEAT_FLOAT
|
#ifdef FEAT_FLOAT
|
||||||
static void f_sqrt(typval_T *argvars, typval_T *rettv);
|
static void f_sqrt(typval_T *argvars, typval_T *rettv);
|
||||||
|
#endif
|
||||||
static void f_srand(typval_T *argvars, typval_T *rettv);
|
static void f_srand(typval_T *argvars, typval_T *rettv);
|
||||||
|
#ifdef FEAT_FLOAT
|
||||||
static void f_str2float(typval_T *argvars, typval_T *rettv);
|
static void f_str2float(typval_T *argvars, typval_T *rettv);
|
||||||
#endif
|
#endif
|
||||||
static void f_str2list(typval_T *argvars, typval_T *rettv);
|
static void f_str2list(typval_T *argvars, typval_T *rettv);
|
||||||
@@ -728,8 +730,8 @@ static funcentry_T global_functions[] =
|
|||||||
{"split", 1, 3, FEARG_1, f_split},
|
{"split", 1, 3, FEARG_1, f_split},
|
||||||
#ifdef FEAT_FLOAT
|
#ifdef FEAT_FLOAT
|
||||||
{"sqrt", 1, 1, FEARG_1, f_sqrt},
|
{"sqrt", 1, 1, FEARG_1, f_sqrt},
|
||||||
{"srand", 0, 1, FEARG_1, f_srand},
|
|
||||||
#endif
|
#endif
|
||||||
|
{"srand", 0, 1, FEARG_1, f_srand},
|
||||||
{"state", 0, 1, FEARG_1, f_state},
|
{"state", 0, 1, FEARG_1, f_state},
|
||||||
#ifdef FEAT_FLOAT
|
#ifdef FEAT_FLOAT
|
||||||
{"str2float", 1, 1, FEARG_1, f_str2float},
|
{"str2float", 1, 1, FEARG_1, f_str2float},
|
||||||
@@ -7092,6 +7094,7 @@ f_sqrt(typval_T *argvars, typval_T *rettv)
|
|||||||
else
|
else
|
||||||
rettv->vval.v_float = 0.0;
|
rettv->vval.v_float = 0.0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "srand()" function
|
* "srand()" function
|
||||||
@@ -7160,6 +7163,7 @@ f_srand(typval_T *argvars, typval_T *rettv)
|
|||||||
list_append_number(rettv->vval.v_list, (varnumber_T)SPLITMIX32);
|
list_append_number(rettv->vval.v_list, (varnumber_T)SPLITMIX32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef FEAT_FLOAT
|
||||||
/*
|
/*
|
||||||
* "str2float()" function
|
* "str2float()" function
|
||||||
*/
|
*/
|
||||||
|
@@ -737,6 +737,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 */
|
||||||
|
/**/
|
||||||
|
2359,
|
||||||
/**/
|
/**/
|
||||||
2358,
|
2358,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user