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

[Perl/perl5] 104952: embed.fnc - normalize defines and sortfunctions

From:
Yves Orton via perl5-changes
Date:
November 15, 2022 21:11
Subject:
[Perl/perl5] 104952: embed.fnc - normalize defines and sortfunctions
Message ID:
Perl/perl5/push/refs/heads/yves/auto_embed_fnc/01efeb-dea69a@github.com
  Branch: refs/heads/yves/auto_embed_fnc
  Home:   https://github.com/Perl/perl5
  Commit: 10495286b1dfd8b7cc888f72e8ba9cc9a586bd87
      https://github.com/Perl/perl5/commit/10495286b1dfd8b7cc888f72e8ba9cc9a586bd87
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

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

  Log Message:
  -----------
  embed.fnc - normalize defines and sort functions

Group common defines. Turn 'ifdef' into 'if defined()' and
'ifndef' into 'if !defined()', group and nest conditions.
Sort functions, sort clauses in simple if expressions.


  Commit: cbd7fa98b9297cdd8a5363c0ac60e6d8e43b0fc8
      https://github.com/Perl/perl5/commit/cbd7fa98b9297cdd8a5363c0ac60e6d8e43b0fc8
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M embed.fnc

  Log Message:
  -----------
  embed.fnc - normalize flags


  Commit: 614ae9d2642ce6c79ff381a104657016efb1f772
      https://github.com/Perl/perl5/commit/614ae9d2642ce6c79ff381a104657016efb1f772
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M mro_core.c

  Log Message:
  -----------
  mro_core.c - define PERL_IN_MRO_CORE_C as well


  Commit: 9975ed9e14244cf5c447cc95e21e78b9fbfa5e9b
      https://github.com/Perl/perl5/commit/9975ed9e14244cf5c447cc95e21e78b9fbfa5e9b
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M embed.fnc
    M embed.h

  Log Message:
  -----------
  embed.fnc - change things to use C

they are being used by code that does not define PERL_CORE or PERL_EXT


  Commit: dea69a49b3b1f3c735e5703a3ac27e1345ac8985
      https://github.com/Perl/perl5/commit/dea69a49b3b1f3c735e5703a3ac27e1345ac8985
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

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

  Log Message:
  -----------
  embed.fnc - reduce scope of functions with defines

These guard clauses are autogenerated by looking at which files are using the
functions, via `make $file.i` output to account for other defines. This
added new guard clauses to all functions that were not explicitly
exported everywhere or under some other rule (eg, 'A' or 'C' or 'E'
functions). It builds and passes test on linux.


Compare: https://github.com/Perl/perl5/compare/01efeb6cbefd...dea69a49b3b1



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