Patch 8.1.2359

7 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 29, 2019, 3:08:36 PM11/29/19
to vim...@googlegroups.com

Patch 8.1.2359
Problem: Cannot build without FEAT_FLOAT. (John Marriott)
Solution: Fix #ifdefs around f_srand().
Files: src/evalfunc.c


*** ../vim-8.1.2358/src/evalfunc.c 2019-11-28 22:12:40.124769076 +0100
--- src/evalfunc.c 2019-11-29 21:05:25.581074114 +0100
***************
*** 226,232 ****
--- 226,234 ----
static void f_split(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_FLOAT
static void f_sqrt(typval_T *argvars, typval_T *rettv);
+ #endif
static void f_srand(typval_T *argvars, typval_T *rettv);
+ #ifdef FEAT_FLOAT
static void f_str2float(typval_T *argvars, typval_T *rettv);
#endif
static void f_str2list(typval_T *argvars, typval_T *rettv);
***************
*** 728,735 ****
{"split", 1, 3, FEARG_1, f_split},
#ifdef FEAT_FLOAT
{"sqrt", 1, 1, FEARG_1, f_sqrt},
- {"srand", 0, 1, FEARG_1, f_srand},
#endif
{"state", 0, 1, FEARG_1, f_state},
#ifdef FEAT_FLOAT
{"str2float", 1, 1, FEARG_1, f_str2float},
--- 730,737 ----
{"split", 1, 3, FEARG_1, f_split},
#ifdef FEAT_FLOAT
{"sqrt", 1, 1, FEARG_1, f_sqrt},
#endif
+ {"srand", 0, 1, FEARG_1, f_srand},
{"state", 0, 1, FEARG_1, f_state},
#ifdef FEAT_FLOAT
{"str2float", 1, 1, FEARG_1, f_str2float},
***************
*** 7092,7097 ****
--- 7094,7100 ----
else
rettv->vval.v_float = 0.0;
}
+ #endif

/*
* "srand()" function
***************
*** 7160,7165 ****
--- 7163,7169 ----
list_append_number(rettv->vval.v_list, (varnumber_T)SPLITMIX32);
}

+ #ifdef FEAT_FLOAT
/*
* "str2float()" function
*/
*** ../vim-8.1.2358/src/version.c 2019-11-29 20:26:09.179592194 +0100
--- src/version.c 2019-11-29 21:06:14.684843352 +0100
***************
*** 739,740 ****
--- 739,742 ----
{ /* Add new patch number below this line */
+ /**/
+ 2359,
/**/

--
hundred-and-one symptoms of being an internet addict:
140. You'd rather catch a score on the web than watch the game as
it is being played on tv.

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages