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

[Perl/perl5] 589b5f: ParseXS - sort things that might produce output

From:
Yves Orton via perl5-changes
Date:
November 9, 2022 14:10
Subject:
[Perl/perl5] 589b5f: ParseXS - sort things that might produce output
Message ID:
Perl/perl5/push/refs/heads/yves/parsexs/386a63-aa1b53@github.com
  Branch: refs/heads/yves/parsexs
  Home:   https://github.com/Perl/perl5
  Commit: 589b5f18a882b7b759175826a08022d22714743f
      https://github.com/Perl/perl5/commit/589b5f18a882b7b759175826a08022d22714743f
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm

  Log Message:
  -----------
  ParseXS - sort things that might produce output

Make sure our output is deterministic.


  Commit: b263689340b7b87dbc11c41501c41281d1fe5363
      https://github.com/Perl/perl5/commit/b263689340b7b87dbc11c41501c41281d1fe5363
  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/t/001-basic.t
    A dist/ExtUtils-ParseXS/t/XSTightDirectives.xs

  Log Message:
  -----------
  ParseXS - handle #else and #endif without blank line prefixes

This patch makes it possible to omit some of the whitespace around
preprocessor directives. It teaches fetch_para() to understand
that a #else or #endif directive that does not end a #if that
was seen in the current "paragraph" should not be parsed as part
of that paragraph. This means that a conditional block that defines
the same sub under different define conditions need not have extra
whitespace after each sub definition.


  Commit: 0b87cd99ee3347d03dcc70c6a87275ae1633c5cb
      https://github.com/Perl/perl5/commit/0b87cd99ee3347d03dcc70c6a87275ae1633c5cb
  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: 59c7f4ed47322ba8d8986ad79f7a0944dff8a8a4
      https://github.com/Perl/perl5/commit/59c7f4ed47322ba8d8986ad79f7a0944dff8a8a4
  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: aa1b53450911fd47eaa4667dbdcf78cb1aafde94
      https://github.com/Perl/perl5/commit/aa1b53450911fd47eaa4667dbdcf78cb1aafde94
  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/386a635cc666...aa1b53450911



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