This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove note about #elif, see :
authorSteve Hay <SteveHay@planit.com>
Fri, 27 Jan 2006 11:09:02 +0000 (11:09 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 27 Jan 2006 13:08:12 +0000 (13:08 +0000)
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

Porting/pumpkin.pod

index 0d80fb8..fb5c2d7 100644 (file)
@@ -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