[Perl/perl5] e033b0: sv.c - add Perl_newSVhek_mortal

2022-08-05 Thread Richard Leach via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e033b0b9c2bf27f70f0267fc75188d4e7d2fc863
  
https://github.com/Perl/perl5/commit/e033b0b9c2bf27f70f0267fc75188d4e7d2fc863
  Author: Richard Leach 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

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

  Log Message:
  ---
  sv.c - add Perl_newSVhek_mortal

This is a small wrapper function intended to replace use of
sv_2mortal(newSVhek(...))

This provides some small optimization, since sv_2mortal performs
a number of checks for conditions that we know cannot be true.


  Commit: 518db96ae536faa5656a7cdc6b3dc510b75edb79
  
https://github.com/Perl/perl5/commit/518db96ae536faa5656a7cdc6b3dc510b75edb79
  Author: Richard Leach 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
M gv.c
M hv.c
M mro_core.c
M op.c
M pp.c
M pp_sys.c
M sv.c
M toke.c
M util.c

  Log Message:
  ---
  Replace sv_2mortal(newSVhek( with newSVhek_mortal

The new Perl_newSVhek_mortal function is slightly more efficient.


Compare: https://github.com/Perl/perl5/compare/819d09b57c6a...518db96ae536


[Perl/perl5] 819d09: Perl_newRV_noinc - explicitly simplify, convert to...

2022-08-05 Thread Richard Leach via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 819d09b57c6a76b0ba90670a1ea1861730bc457b
  
https://github.com/Perl/perl5/commit/819d09b57c6a76b0ba90670a1ea1861730bc457b
  Author: Richard Leach 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
M embed.fnc
M proto.h
M sv.c
M sv_inline.h

  Log Message:
  ---
  Perl_newRV_noinc - explicitly simplify, convert to inline func

Perl_newRV_noinc creates a new SVt_IV, then calls sv_setrv_noinc,
which will check if the SVt_IV is SvTHINKFIRST (it won't be) and
if it is types other than SVt_IV (it won't be). If those checks
and associated branches are removed, all that remains is some flag
twiddling and setting the sv_u.svu_rv pointer.

A decent compiler *might* figure that all out and simplify
Perl_newRV_noinc right down to the essentials, but if we do that
directly, the entire function is small enough to move to sv_inline.h




[Perl/perl5] 36d1e5: [doc] Link to module manual pages

2022-08-05 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 36d1e5f3076514e5256e1424ae48d255572178a0
  
https://github.com/Perl/perl5/commit/36d1e5f3076514e5256e1424ae48d255572178a0
  Author: Elvin Aslanov 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
M pod/perldebug.pod
M t/porting/known_pod_issues.dat

  Log Message:
  ---
  [doc] Link to module manual pages

As with the existing `Devel::NYTProf`, add `PadWalker`, `Term::ReadLine`, 
`Term::ReadLine` links to their respective manual pages.

Users can find and install these modules from CPAN to enhance the Perl Debugger 
with additional features (eg. completion, lexicals, and profiling).

https://perldoc.perl.org/ links to MetaCPAN if the module is not in core.
Example: https://perldoc.perl.org/Devel::NYTProf on [The Perl 
Profiler](https://perldoc.perl.org/perldebug#The-Perl-Profiler) section




[Perl/perl5] 78ed89: podcheck.t: Clarify syntax for --add-link

2022-08-05 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 78ed89251b13e70c11c9496a8e5e982cc78ef0d2
  
https://github.com/Perl/perl5/commit/78ed89251b13e70c11c9496a8e5e982cc78ef0d2
  Author: Elvin Aslanov 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
M t/porting/podcheck.t

  Log Message:
  ---
  podcheck.t: Clarify syntax for --add-link

It's `MODULE` or `man_page`, not both at the same time.

See:

:https://github.com/Perl/perl5/pull/20043




[Perl/perl5] 8909f8: perl5db.pl: Spelling

2022-08-05 Thread Elvin Aslanov via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8909f8238b79ae446e9dc95645dba4064163
  
https://github.com/Perl/perl5/commit/8909f8238b79ae446e9dc95645dba4064163
  Author: Elvin Aslanov 
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
M lib/perl5db.pl

  Log Message:
  ---
  perl5db.pl: Spelling

`R` command: pure man -> poor man

Probably meant that:
https://en.wiktionary.org/wiki/poor_man%27s#English