Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Sjeng 7 out - with sources now (GPL)

Author: Gian-Carlo Pascutto

Date: 01:26:28 04/17/00

Go up one level in this thread


On April 16, 2000 at 09:21:10, Daniel Clausen wrote:

>Hi
>
>On April 15, 2000 at 16:00:45, Gian-Carlo Pascutto wrote:
>
>>I've released a new version of my bughouse/crazyhouse/standard
>>chessprogram Sjeng. This time full sources are released under
>>the GPL license.
>
>I compiled it under MacOSX and had a problem with the constellation
>of HAVE_SYS_TIMEB and !HAVE_FTIME, which leads to compiler errors.
>What I did was to define HAVE_FTIME by hand and implement ftime
>in the following way:
>
>int	ftime(struct timeb* tp)
>{
>	struct timeval tmp;
>
>	gettimeofday(&tmp, NULL);
>	tp->time		= tmp.tv_sec;
>	tp->millitm	= tmp.tv_usec / 1000;
>	tp->timezone	= 0;
>	tp->dstflag	= 0;
>}
>
>It seems to work fine. Thanks a lot to Gian-Carlo!

On thanks. I'll see what I can do to fix that problem. Sjeng can work
without an ftime function, but its accuracy will be limited to seconds
then. (I havent tested this is a while though)

I'll add your function if !HAVE_FTIME but HAVE_GETTIMEOFDAY, which
should do the trick, and check whether everything works without ftime
too.

Thanks for the report!

Oh BTW, I suppose you use(d) configure/autoconf to compile ?

--
GCP



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.