This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
isnormal macro in fp.h broken on VMS.
authorCraig A. Berry <craigberry@mac.com>
Tue, 2 Sep 2014 02:45:10 +0000 (21:45 -0500)
committerCraig A. Berry <craigberry@mac.com>
Tue, 2 Sep 2014 02:51:00 +0000 (21:51 -0500)
commit56610b8f2b65d1b4ac923119d519ef5afae19e61
tree67bfb193c1caf7c36137bc2d96e3116e481d0474
parentd334ccbe5dc41b4f3085a341a760e04562dac34d
isnormal macro in fp.h broken on VMS.

It appears to have an extra closing parenthesis, which means any
use of it fails to compile.  Ouch:

  $ type abby_normal.c
  #include <fp.h>
  int main() {
      double pi = 3.414;
      int normality = isnormal(pi);
  }
  $ cc/float=ieee abby_normal

      int normality = isnormal(pi);
  ....................^
  %CC-E-NOSEMI, Missing ";".
  at line number 4 in file DSA23:[TEST]abby_normal.c;1

So don't use it but rather fall back to a solution based on
fp_classify.

Of course it's supposed to be in math.h, not fp.h, but I digress.
perl.h