Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: de762f931176aff45a21bfc3ab7854cd229602ad
https://github.com/Perl/perl5/commit/de762f931176aff45a21bfc3ab7854cd229602ad
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths:
M av.h
M class.c
M cv.h
M gv.c
M gv.h
M hv.h
M pad.c
M perl.c
M pp_ctl.c
M pp_hot.c
M pp_sort.c
M regcomp.c
M sv.c
M toke.c
Log Message:
-----------
Define and use macro families for typed refcount increment
Create specific macros for incrementing the refcount of an AV, CV, GV or
HV, returning a typed pointer to avoid the caller needing to cast the
result. This yields neater easier-to-read code.
While not implemented here, this gives an opportunity to add an
`assert()` check on the SvTYPE of the structure being adjusted, for
extra debug checking during debugging builds.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications