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

[Perl/perl5] 347810: ParseXS - better support for duplicate ALIASes

From:
Yves Orton via perl5-changes
Date:
November 9, 2022 17:34
Subject:
[Perl/perl5] 347810: ParseXS - better support for duplicate ALIASes
Message ID:
Perl/perl5/push/refs/heads/yves/parsexs/aa1b53-b9af18@github.com
  Branch: refs/heads/yves/parsexs
  Home:   https://github.com/Perl/perl5
  Commit: 34781067e5c44b97cf43571e48885e9a124c485c
      https://github.com/Perl/perl5/commit/34781067e5c44b97cf43571e48885e9a124c485c
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M MANIFEST
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Utilities.pm
    M dist/ExtUtils-ParseXS/lib/perlxs.pod
    M dist/ExtUtils-ParseXS/t/001-basic.t
    A dist/ExtUtils-ParseXS/t/XSAlias.xs

  Log Message:
  -----------
  ParseXS - better support for duplicate ALIASes

Sometimes you *want* to create multiple names for the same
functionality, but doing so with the ALIAS functionality requires
awkward workarounds. This adds a new "symbolic alias" that does
not warn on dupes as creating a dupe is its whole point. For a
symbolic alias the value is the name of an existing alias.

This also cleans up some of the warnings related to aliases so
we distinguish between when a duplicate is truly ignored or
where it overrides a previous value. And deal with a few other
edge cases properly.


  Commit: 058a9f4bf1053c3fed089d17686012d81b22a025
      https://github.com/Perl/perl5/commit/058a9f4bf1053c3fed089d17686012d81b22a025
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm
    M dist/ExtUtils-ParseXS/t/001-basic.t
    M dist/ExtUtils-ParseXS/t/XSAlias.xs

  Log Message:
  -----------
  ParseXS - allow symbolic alias of default function

Also normalize warnings. It used to be if you created an alias
of the root function (0) no warning would be produced. Now
we will produce a warning, but we also allow symbolic references
to defuse the warning.


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

  Changed paths:
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Constants.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/CountLines.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Eval.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Utilities.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/Cmd.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/InputMap.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/OutputMap.pm
    M dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/Type.pm
    M dist/ExtUtils-ParseXS/lib/perlxs.pod
    M dist/ExtUtils-ParseXS/t/001-basic.t

  Log Message:
  -----------
  ParseXS - version bump to 3.48 and test perlxs.pod has the right version

The version in the pod has been long wrong. We are on 3.48 now, it was 3.13_01.


Compare: https://github.com/Perl/perl5/compare/aa1b53450911...b9af180b2068



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