From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45632BFA.30000@domain.hid> Date: Tue, 21 Nov 2006 17:40:26 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 Subject: Re: [Xenomai-core] [PATCH 1/3] decouple spinlock stats from XENO_OPT_STATS References: <456236D2.3050402@domain.hid> In-Reply-To: <456236D2.3050402@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core Jan Kiszka wrote: > #ifdef CONFIG_XENO_SPINLOCK_DEBUG > @@ -343,7 +340,7 @@ static inline spl_t __xnlock_get_irqsave > #else /* !CONFIG_XENO_SPINLOCK_DEBUG */ > static inline spl_t __xnlock_get_irqsave (xnlock_t *lock) > { > -#endif /* !CONFIG_XENO_SPINLOCK_DEBUG */ > +#endif /* CONFIG_XENO_SPINLOCK_DEBUG */ I prefer the notation: #if cond #endif /* cond */ and #if cond #else /* !cond */ #endif /* !cond */ to #if cond #endif /* cond */ and #if cond #else /* !cond */ #endif /* cond */ Because in the first case, when I see a #endif in the middle of a lot of code, I immediately know what predicate is true above the #endif. -- Gilles Chanteperdrix