develooper Front page | perl.perl5.changes | Postings from October 2020

[Perl/perl5] dc6dad: Document NOOP, dNOOP, dVAR

From:
Karl Williamson via perl5-changes
Date:
October 15, 2020 03:34
Subject:
[Perl/perl5] dc6dad: Document NOOP, dNOOP, dVAR
Message ID:
Perl/perl5/push/refs/heads/blead/e84e5a-5d5b9c@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: dc6dad9d13b63b68105af09af8ec0349dd06af81
      https://github.com/Perl/perl5/commit/dc6dad9d13b63b68105af09af8ec0349dd06af81
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Document NOOP, dNOOP, dVAR

This commit also moves the definition of dVAR down so its
controlling #ifdef is combined with the next #ifdef


  Commit: 5d5b9c460e2a06563d2b5e35a1a79991460696eb
      https://github.com/Perl/perl5/commit/5d5b9c460e2a06563d2b5e35a1a79991460696eb
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Refactor and document ASSUME()

The blead definition doesn't compile when I use Devel::PPPort earlier than
some point in the 5.19 series.

Examining the code, I noticed that there was a potential cyclic
definition: ASSUME can call NOTREACHED, and NOTREACHED can call assume.

Blead also assumed without checking that __builtin_unreachable() exists.

So, I refactored things so that there is no cycle, and changed a few
words in the comments to turn them into pod, and the new version
compiles all the way back.


Compare: https://github.com/Perl/perl5/compare/e84e5a4c05d0...5d5b9c460e2a



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