From: Wolfgang Denk Date: Mon, 18 Jul 2016 21:24:01 +0200 Subject: [U-Boot] what is with the "#if 0"ed part of ARP hdr in include/net.h? In-Reply-To: References: Message-ID: <20160718192401.12231100E60@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Robert P. J. Day", In message you wrote: > > was poking around in include/net.h, and noticed this snippet: ... > is it doing anything, like acting as a comment or something? Probably. Sorry, I dont remember the details. > p.s. there's quite a lot of "#if 0" throughout the source code, some > of which i may submit patches to get rid of just in the areas i'm > confortable with. In many cases this was used to create "minimal" diffs compared to the original code imported from elsewhere. Commenting a bigger block of code using "#if 0" was deemed to be easier to forward-port to new versions of the code than deleting the whole block, where any changes in this (uninteresting) code would cause conflicts. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If the car industry behaved like the computer industry over the last 30 years, a Rolls-Royce would cost $5, get 300 miles per gallon, and blow up once a year killing all passengers inside.