[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XBoard-devel] Cross compiling Winboard in Linux
From: |
h.g. muller |
Subject: |
Re: [XBoard-devel] Cross compiling Winboard in Linux |
Date: |
Thu, 05 Jan 2012 20:22:31 +0100 |
1) I replaced the functions random() and srandom() with the standard C
functions rand() and srand() in backend.c and zippy.c.
Is there any particular reason to use the non-standard versions of these
function?
In a WinBoard compile these are supposed to be macros, #defined in
common.h, as there is a
#define HAVE_RANDOM 0
in winboard/config.h, which is used in the compile. You could be using a
wrong config.h here:
ifthere is a config.h in the parent directory, because you ran ./configure
there, the compile
might prefer to use that in stead of the (fixed) config.h for use in WB
compiled,
as there is a -I .. in the compiler flags.
It could be that random is #defined as rand in this case, which is a bit
fishy, as the
whole reason for this construction seems to be forcing the use of the function
myrandom() in winboard.c in stead of the aparently insatisfactory rand().
myrandom() is called directly in two places from winboard.c, though.
- [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Eric Mullins, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Eric Mullins, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, h.g. muller, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux,
h.g. muller <=
- Re: [XBoard-devel] Cross compiling Winboard in Linux, h.g. muller, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Tim Mann, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Arun Persaud, 2012/01/05
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/06
- Re: [XBoard-devel] Cross compiling Winboard in Linux, h.g. muller, 2012/01/06
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Arun Persaud, 2012/01/06
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/07
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/08
- Re: [XBoard-devel] Cross compiling Winboard in Linux, Byrial Jensen, 2012/01/09
- Re: [XBoard-devel] Cross compiling Winboard in Linux, h.g. muller, 2012/01/09