From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3BE087DA.8F9ED9CC@linux-m68k.org> Date: Thu, 01 Nov 2001 00:23:06 +0100 From: Roman Zippel MIME-Version: 1.0 To: Tom Rini Cc: linuxppc-dev@lists.linuxppc.org Subject: Re: small cleanup References: <20011031084233.A18493@cpe-24-221-152-185.az.sprintbbd.net> <20011031155335.A20613@cpe-24-221-152-185.az.sprintbbd.net> Content-Type: text/plain; charset=us-ascii Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Hi, Tom Rini wrote: > I will when I get a moment.. :) But #ifndef __FOO__ #define __FOO__ > #ifdef __BAR__ ... #endif /* __BAR__ */ #endif /* __FOO__ */ works > better than checking for __BAR__ first? IMO yes: "If a subsequent `#include' specifies the same file, and the macro in the `#ifndef' is already defined, then the file is entirely skipped, without even reading it." bye, Roman ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/