John Marriott wrote:

> On 29-Nov-2019 08:14, Bram Moolenaar wrote:
> > Patch 8.1.2356
> > Problem:    rand() does not use the best algorithm.
> > Solution:   use xoshiro128** instead of xorshift. (Kaito Udagawa,
> >              closes #5279)
> > Files:          runtime/doc/eval.txt, src/evalfunc.c, 
> > src/testdir/test_random.vim
> >
> >
> >
> After this patch, mingw64 throws this compiler warning and linker error 
> if FEAT_FLOAT is disabled:
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_MSWIN 
> -DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer 
> -freg-struct-return evalfunc.c -o gobjnative/evalfunc.o
> evalfunc.c: In function 'f_rand':
> evalfunc.c:5152:6: warning: implicit declaration of function 'f_srand'; 
> did you mean 'f_rand'? [-Wimplicit-function-declaration]
>   5152 |      f_srand(argvars, rettv);
>        | ^~~~~~~
>        |      f_rand
> gcc -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 

[...]

The #ifdefs are misplaced.  I was wondering if we should graduate
FEAT_FLOAT, but apparently there are still builds without it.

-- 
hundred-and-one symptoms of being an internet addict:
139. You down your lunch in five minutes, at your desk, so you can
     spend the rest of the hour surfing the Net.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201911292008.xATK8TIo032479%40masaka.moolenaar.net.

Raspunde prin e-mail lui