X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Porting%2Fpumpkin.pod;h=fb5c2d7a8e9787b446f0064badb826ee80c5da68;hb=ca06c01c30b19d0094642f2e317dadf13d4509cd;hp=0d80fb8725eb8c9b11e8ad7073eca0035dd5a3be;hpb=00baac8f3bcc04befcd869d03d8fa7c580011507;p=p5sagit%2Fp5-mst-13.2.git 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