Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Why idempotent?

Author: Pete Galati

Date: 15:28:44 02/14/00

Go up one level in this thread


On February 14, 2000 at 17:45:37, Dann Corbit wrote:

>On February 14, 2000 at 17:37:44, Pete Galati wrote:
>
>>On February 14, 2000 at 17:00:52, Dann Corbit wrote:
>>
>>>I compile this:
>>>/*
>>>** This strange little beastie has only one purpose:
>>>** To allow the compiler to inline like a madman.
>>>*/
>>>#include "search.c"
>>>#include "board.c"
>>>#include "data.c"
>>>#include "eval.c"
>>>#include "main.c"
>>
>>Are you making a new .c file containing only those #includes and then just
>>compiling that?  What I had tried before with TSCP was to #include everything in
>>main.c and compile _that_, but in order to make that work, I needed to throw out
>>all the #includes for the header files in the .c files other than main.c, so
>>everything was included from there.
>
>Hence, one reason to make things idempotent.  It also makes compiles go a wee
>bit faster if you include a header more than once for some reason.

At the moment I can't make that work with old DJGPP, maybe I haven't pulled the
right strings yet, but I only worked on it for about 10 minutes.  I'll have to
pay more attention next time, I probably did something very basic wrong.

Pete



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.