diff options
author | Steve Hay <SteveHay@planit.com> | 2006-01-27 11:09:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-01-27 13:08:12 +0000 |
commit | 5f6e984fece6647893509b1d2af5275fa735bbfd (patch) | |
tree | 2c5060f3b3e2cf40adeaceaf2282fa2bedbb9524 | |
parent | e761a78610045f5eed6e9ca93d8aaefb22dcb0a6 (diff) | |
download | perl-5f6e984fece6647893509b1d2af5275fa735bbfd.tar.gz |
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
-rw-r--r-- | Porting/pumpkin.pod | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 0d80fb8725..fb5c2d7a8e 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 <foo.h> - #elif defined(I_BAR) - # include <bar.h> - #else - # include <fubar.h> - #endif - -You have to do the more Byzantine - - #if defined(I_FOO) - # include <foo.h> - #else - # if defined(I_BAR) - # include <bar.h> - # else - # include <fubar.h> - # 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 |