From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Wed, 08 Apr 2009 15:57:37 -0500 Subject: [U-Boot] use of C99 In-Reply-To: References: <4A0B9AAA-4714-4C27-84A7-22FCE4D91DDA@freescale.com> <20090408192832.8D48F8560EFB@gemini.denx.de> <49DCFF1D.6080006@ge.com> Message-ID: <49DD0FC1.9000402@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Premi, Sanjeev wrote: > One of the biggest problem is uncontrolled variable definitions that > gets even nasty when variables have same names with different types; > though under different set of #ifdefs. Quite possible for commonly > used variable names - i, ptr, tmp, etc. Then let's just say that if you're going to define a variable in the middle of a function, it can't have the same name as another variable in that function. > I feel, here, ifdefs provide a false sense of 'enclosure' with possibility > of frequent breaches - in code (while implementing) and in simple reading > (for understanding). Sorry, I don't understand what you're talking about. The #ifdefs are used to enable feature-specific code on platforms that have that feature. -- Timur Tabi Linux kernel developer at Freescale