[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] 3.0 portability problem
From: |
Teun Burgers |
Subject: |
Re: [gnugo-devel] 3.0 portability problem |
Date: |
Tue, 09 Oct 2001 23:06:06 +0200 |
Gunnar Farneback wrote:
>
> Teun wrote:
> > we could also test for SIZEOF_INT > 4
> > SIZEOF_INT is already set by configure in config.h.
>
> This is exactly why I wrote
>
> > This can be solved either by including config.h in random.c or by
> > applying the following patch, which I think is a better solution.
Oops! Missed those two lines. Sorry.
> The reason why this is to prefer is that a random number
> generator is completely standalone and potentially useful for other
> projects, so the fewer dependencies it has, the better.
perfect.
btw, in hash.h and hash.c something similar is done:
#define POINTSPERCOMPACT ((int) sizeof(Compacttype) * 4)
Teun