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

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

Yves Orton via perl5-changes
November 17, 2022 14:54
[Perl/perl5] 3e0fed: embed.fnc - minor cleanup, break up PERL_COREexpr...
Message ID:
  Branch: refs/heads/yves/auto_embed_fnc
  Commit: 3e0fed68387ecb24b5f2b7313ef2fcb31181b8f8
  Author: Yves Orton <>
  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. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About