From: Steve Hay Date: Fri, 27 Jan 2006 11:09:02 +0000 (+0000) Subject: Remove note about #elif, see : X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f6e984fece6647893509b1d2af5275fa735bbfd;p=p5sagit%2Fp5-mst-13.2.git Remove note about #elif, see : Subject: Re: Change 26954: Simplify nested '#ifdef' by replacing it with '#elif defined()' Message-ID: <43D9FF4E.6010501@uk.radan.com> p4raw-id: //depot/perl@26957 --- diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 0d80fb8..fb5c2d7 100644 --- a/Porting/pumpkin.pod +++ b/Porting/pumpkin.pod @@ -797,38 +797,6 @@ they must be fixed eventually.) =over 4 -=item #elif - -The '#elif' preprocessor directive is not understood on all systems. -Specifically, I know that Pyramids don't understand it. Thus instead of the -simple - - #if defined(I_FOO) - # include - #elif defined(I_BAR) - # include - #else - # include - #endif - -You have to do the more Byzantine - - #if defined(I_FOO) - # include - #else - # if defined(I_BAR) - # include - # else - # include - # endif - #endif - -Incidentally, whitespace between the leading '#' and the preprocessor -command is not guaranteed, but is very portable and you may use it freely. -I think it makes things a bit more readable, especially once things get -rather deeply nested. I also think that things should almost never get -too deeply nested, so it ought to be a moot point :-) - =item Probably Prefer POSIX It's often the case that you'll need to choose whether to do