develooper Front page | perl.perl5.changes | Postings from March 2023

[Perl/perl5] 0c935f: regcomp_internal.h - make unused macros fordeprec...

From:
Yves Orton via perl5-changes
Date:
March 9, 2023 07:34
Subject:
[Perl/perl5] 0c935f: regcomp_internal.h - make unused macros fordeprec...
Message ID:
Perl/perl5/push/refs/heads/yves/deprecation_subcategories/000000-70c107@github.com
  Branch: refs/heads/yves/deprecation_subcategories
  Home:   https://github.com/Perl/perl5
  Commit: 0c935f631b265ea03052a8dc95560ebea49679d9
      https://github.com/Perl/perl5/commit/0c935f631b265ea03052a8dc95560ebea49679d9
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M regcomp_internal.h

  Log Message:
  -----------
  regcomp_internal.h - make unused macros for deprecation warnings take category as parameter

we should have a deprecation category per type of deprecation


  Commit: d432ddbd839f6df5872f84dfbedbb4e413902cc2
      https://github.com/Perl/perl5/commit/d432ddbd839f6df5872f84dfbedbb4e413902cc2
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

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

  Log Message:
  -----------
  utf8.c - add category parameter to unused warn_on_first_deprecated_use function


  Commit: ed285be986158ac78cabfdcbc622c5462f4d6b3a
      https://github.com/Perl/perl5/commit/ed285be986158ac78cabfdcbc622c5462f4d6b3a
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lib/warnings.pm
    M pod/perldiag.pod
    M regen/warnings.pl
    M toke.c
    M warnings.h

  Log Message:
  -----------
  warnings.pm - support deprecated::smartmatch category

Currently we seem to lack a way to have a subcategory under deprecated.
It seems reasonable to me that people might want to disable a specific
subcategory warning while leaving the rest in place. This patch allows
that. Note that both

    no warnings "deprecated";

and

    no warnings "deprecated::smartmatch";

work to disable the warning. Deprecated warnings shouldn't be "all or
nothing", they should be specific and targetted.


  Commit: 6f52171149c8aeaba945022947a78458ce8cbf4b
      https://github.com/Perl/perl5/commit/6f52171149c8aeaba945022947a78458ce8cbf4b
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lib/warnings.pm
    M pod/perldiag.pod
    M pp_ctl.c
    M regen/warnings.pl
    M warnings.h

  Log Message:
  -----------
  warnings.pm - add deprecated::dot_in_inc warings category

Instead of using a generic warnings category switch to fine grained
control.


  Commit: 8befd9144f97bf731eb0ef8770fe904a235f810d
      https://github.com/Perl/perl5/commit/8befd9144f97bf731eb0ef8770fe904a235f810d
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lib/warnings.pm
    M pod/perldiag.pod
    M regcomp.c
    M regen/warnings.pl
    M warnings.h

  Log Message:
  -----------
  warnings.pm - support deprecated::unicode_property_name category

This category is only used in the regex engine, we should be able
to disable it specifically, as it seems like we will never actually
remove demove support for the things it warns about.


  Commit: 5f2cc35c0981b2a1b40e36a4c52e7bd55b8a2c48
      https://github.com/Perl/perl5/commit/5f2cc35c0981b2a1b40e36a4c52e7bd55b8a2c48
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lib/warnings.pm
    M pod/perldiag.pod
    M regen/warnings.pl
    M toke.c
    M warnings.h

  Log Message:
  -----------
  warnings.pm - add deprecated::apostrophe_as_pack_sep as new deprecation category

This category is about use of apostrophe as a package separator, eg
for things like "Test::More::isn't()".


  Commit: 6de0db1682fb8dbff2ecfaace87f8c060c9567cb
      https://github.com/Perl/perl5/commit/6de0db1682fb8dbff2ecfaace87f8c060c9567cb
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lib/warnings.pm
    M pod/perldiag.pod
    M regen/warnings.pl
    M toke.c
    M warnings.h

  Log Message:
  -----------
  warnings.pm - add deprecated::delimiter_will_be_paired category

Some delimiters are considered deprecated because in the future they
will be used as part of a paired delimiter. This adds a new category
for these cases.


  Commit: 12bb032f9037f7e15013b3def4659b785bee01cc
      https://github.com/Perl/perl5/commit/12bb032f9037f7e15013b3def4659b785bee01cc
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M handy.h
    M lib/warnings.pm
    M pod/perldiag.pod
    M pp_ctl.c
    M regen/warnings.pl
    M warnings.h

  Log Message:
  -----------
  warnings.pm - add deprecated::goto_construct category

This category applies to attempts to goto the internals of a block
construct.


  Commit: 9911365417bdd7e7bd7f84e932695886cd39e3bc
      https://github.com/Perl/perl5/commit/9911365417bdd7e7bd7f84e932695886cd39e3bc
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M handy.h
    M lib/warnings.pm
    M op.c
    M pod/perldiag.pod
    M regen/warnings.pl
    M warnings.h

  Log Message:
  -----------
  warnings.pm - add deprecated::version_downgrade category

This also fixes the version_downgrade to show the correct version that
version downgrades will be removed in.


  Commit: ea239b34c8646c94bc2ffc5433b87fcf1d307a4f
      https://github.com/Perl/perl5/commit/ea239b34c8646c94bc2ffc5433b87fcf1d307a4f
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M regen/warnings.pl

  Log Message:
  -----------
  regen/warnings.pl - line up categories, put them in date order

This makes it easier to see the order the categories were added in.


  Commit: 0b4aa319b94c97da9c8973dc11c7dfc21c04fcd0
      https://github.com/Perl/perl5/commit/0b4aa319b94c97da9c8973dc11c7dfc21c04fcd0
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M embed.fnc
    M handy.h
    M proto.h
    M regen/embed.pl

  Log Message:
  -----------
  embed.fnc - document deprecate_xxx() macros and add them to handy.h

Also do not generate PERL_ARGS style macros for macros.


  Commit: ff59e84f3d89ae4ac09f2dc3bf9d4ea9159ee1f5
      https://github.com/Perl/perl5/commit/ff59e84f3d89ae4ac09f2dc3bf9d4ea9159ee1f5
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M handy.h
    M pp_ctl.c
    M t/porting/diag.t

  Log Message:
  -----------
  diag.t - detect use of "deprecate_xxx()" style functions


  Commit: 3474150feb8cef6f1dd0ee25438355c74459617d
      https://github.com/Perl/perl5/commit/3474150feb8cef6f1dd0ee25438355c74459617d
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M pod/perldeprecation.pod

  Log Message:
  -----------
  perldeprecation.pod - add smartmatch deprecation

This was missed when smartmatch was deprecated.


  Commit: 296601ffb4357ef2a8ee16929ce117e923593818
      https://github.com/Perl/perl5/commit/296601ffb4357ef2a8ee16929ce117e923593818
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M pod/perldeprecation.pod

  Log Message:
  -----------
  perldeprecation.pod - apostrophe as package separator goes away in 5.42

It was incorrectly documented as going away in 5.40


  Commit: dd88e614a4578f3e3c160abfca1f7c99dcc0ef81
      https://github.com/Perl/perl5/commit/dd88e614a4578f3e3c160abfca1f7c99dcc0ef81
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M pod/perldeprecation.pod

  Log Message:
  -----------
  perldeprecation.pod - add unscheduled deprecations and add category info

Multiple deprecation types that are not scheduled for removal in a
specific version were not listed. Also now that we have deprecation
subcategories we should specify them in the docs.


  Commit: 70c1072e0db164c563abdbbd786ea900a531666a
      https://github.com/Perl/perl5/commit/70c1072e0db164c563abdbbd786ea900a531666a
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M MANIFEST
    M regen/warnings.pl
    A t/porting/deprecation.t

  Log Message:
  -----------
  t/porting/deprecation.t - add tests for deprecation documentation and categories


Compare: https://github.com/Perl/perl5/compare/0c935f631b26%5E...70c1072e0db1



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