Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Why idempotent?

Author: Dann Corbit

Date: 15:58:51 02/14/00

Go up one level in this thread


On February 14, 2000 at 18:22:34, William Bryant 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"
>
>Dan,
>
>This may, for reasons that are beyond me (no CS background btw), make
>wintel-centric compilers improve the code generated, but it is _not_ portable,
>and unless I am wrong, it is _not_ standard C.
>
>If someone could clarify this, I would appreciate it.  If by chance I am wrong,
>my appologies Dan.  But it won't compile like this in Codewarror.

It won't compile precisely because the headers are not idempotent.

If your compiler won't compile it after making the headers idempotent, it is
broken and you can legitimately complain to your compiler vendor.



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.