develooper Front page | perl.perl5.changes | Postings from November 2022

[Perl/perl5] 3e0fed: embed.fnc - minor cleanup, break up PERL_COREexpr...

From:
Yves Orton via perl5-changes
Date:
November 17, 2022 14:54
Subject:
[Perl/perl5] 3e0fed: embed.fnc - minor cleanup, break up PERL_COREexpr...
Message ID:
Perl/perl5/push/refs/heads/yves/auto_embed_fnc/26b449-3e0fed@github.com
  Branch: refs/heads/yves/auto_embed_fnc
  Home:   https://github.com/Perl/perl5
  Commit: 3e0fed68387ecb24b5f2b7313ef2fcb31181b8f8
      https://github.com/Perl/perl5/commit/3e0fed68387ecb24b5f2b7313ef2fcb31181b8f8
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-17 (Thu, 17 Nov 2022)

  Changed paths:
    M embed.fnc
    M embed.h
    M proto.h

  Log Message:
  -----------
  embed.fnc - minor cleanup, break up PERL_CORE expression and remove spaces after defined

The earlier normalization didn't notice that some defines have spaces
behind them, and didn't normalize that out. This also breaks up an
expression that used && to join a commonly used clause with a rarely
used one. By breaking it up the rarely used clause can be grouped
together with the other functions guarded by the common clause.

By removing the spaces the clause grouping algorithm was able to merge
together more of the functions and reduce the total number of guard
clauses in the file.





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