0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.0491: no good reason to build without the float feature

Problem:    No good reason to build without the float feature.
Solution:   Remove configure check for float and "#ifdef FEAT_FLOAT".
This commit is contained in:
Bram Moolenaar
2022-09-17 21:08:33 +01:00
parent 1c3dd8ddcb
commit 73e28dcc61
74 changed files with 589 additions and 1152 deletions

View File

@@ -221,20 +221,19 @@ f_reltime(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
# endif
}
# ifdef FEAT_FLOAT
/*
* "reltimefloat()" function
*/
void
f_reltimefloat(typval_T *argvars UNUSED, typval_T *rettv)
{
# ifdef FEAT_RELTIME
# ifdef FEAT_RELTIME
proftime_T tm;
# endif
# endif
rettv->v_type = VAR_FLOAT;
rettv->vval.v_float = 0;
# ifdef FEAT_RELTIME
# ifdef FEAT_RELTIME
if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL)
return;
@@ -242,9 +241,8 @@ f_reltimefloat(typval_T *argvars UNUSED, typval_T *rettv)
rettv->vval.v_float = profile_float(&tm);
else if (in_vim9script())
emsg(_(e_invalid_argument));
# endif
}
# endif
}
/*
* "reltimestr()" function