develooper Front page | perl.perl5.changes | Postings from January 2021

[Perl/perl5] 5bd38f: sprintf does not display 54 digits on VMS

From:
"Craig A. Berry" via perl5-changes
Date:
January 3, 2021 18:37
Subject:
[Perl/perl5] 5bd38f: sprintf does not display 54 digits on VMS
Message ID:
Perl/perl5/push/refs/heads/blead/0f14f0-ded7c7@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 5bd38fbfd04fc614128ba3d481fc326ef9fddbfa
      https://github.com/Perl/perl5/commit/5bd38fbfd04fc614128ba3d481fc326ef9fddbfa
  Author: Craig A. Berry <craigberry@mac.com>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M t/op/sprintf2.t

  Log Message:
  -----------
  sprintf does not display 54 digits on VMS

It displays 17, which is what Perl and apparently just about
everybody else used to do. I'm not convinced there was ever a
bug here as no standard I can find says you have to display 3
times as many digits as are necessary to provide a non-lossy
round trip from double to character and back.


  Commit: 08ac607a2fe5c53538767d3fe608e98f726e0bec
      https://github.com/Perl/perl5/commit/08ac607a2fe5c53538767d3fe608e98f726e0bec
  Author: Craig A. Berry <craigberry@mac.com>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M Porting/Maintainers.pl
    M dist/Time-HiRes/Makefile.PL
    M t/porting/customized.dat

  Log Message:
  -----------
  Revert "Fix Time::HiRes compile probe on VMS"

This reverts commit 9eebd4ca7bb8610f51a27d96c12e9b1676958d55.

It turns out that probing for the existence of functions also
only generates informational messages (and thus a successful
exit status) when the function is missing, e.g.:

    ret = clock_nanosleep(CLOCK_REALTIME, 0, &ts1, &ts2);
..........^
%CC-I-IMPLICITFUNC, In this statement, the identifier "clock_nanosleep" is implicitly declared as a function.
at line number 13 in file D0:[craig.blead.dist.Time-HiRes]try.c;1

And we aren't linking in Time::HiRes's probes on VMS since making
that work both in and out of core in a general way is no small
feat.

So we go back to requiring no compiler messages in the test
compiles.


  Commit: ded7c7ec0c875ea7bd53811b9db312f3b2e85a95
      https://github.com/Perl/perl5/commit/ded7c7ec0c875ea7bd53811b9db312f3b2e85a95
  Author: Craig A. Berry <craigberry@mac.com>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M sv.c

  Log Message:
  -----------
  Remove trailing semicolon from ALIGNED_TYPE definition

Every use of it already has its own semicolon, and duplicating it
can lead to warnings like this:

ALIGNED_TYPE(XPVGV);
...................^
%CC-I-EXTRASEMI, Extraneous semicolon.
at line number 894 in file D0:[craig.blead]sv.c;1


Compare: https://github.com/Perl/perl5/compare/0f14f058b16b...ded7c7ec0c87



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About