Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 6a526154191fcb68dcb7cd97ccb6171c77e9b72f https://github.com/Perl/perl5/commit/6a526154191fcb68dcb7cd97ccb6171c77e9b72f Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk> Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths: M handy.h Log Message: ----------- handy.h: Use 'ref_' as a macro-local temporary as '_ref' might be reserved by C Commit: 7ce5a41b882b12286a3f310385ad5e565679d4a8 https://github.com/Perl/perl5/commit/7ce5a41b882b12286a3f310385ad5e565679d4a8 Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk> Date: 2024-07-22 (Mon, 22 Jul 2024) Changed paths: M handy.h Log Message: ----------- handy.h: Add GV_FROM_REF() Commit: 352ca4bc58b68e6be2951711d9a1c660286e4508 https://github.com/Perl/perl5/commit/352ca4bc58b68e6be2951711d9a1c660286e4508 Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk> Date: 2024-07-22 (Mon, 22 Jul 2024) Changed paths: M mg.c M op.c M perlio.c M pp.c M pp_ctl.c M pp_hot.c M regcomp.c M regcomp_study.c M regexec.c M sv.c M universal.c M vutil.c Log Message: ----------- Replace most calls of MUTABLE_xV(SvRV()) with xV_FROM_REF() This results in shorter neater code, and additional debugging assertions that the dereferenced SVs really are the requested type when built under `-DDEBUGGING`. When I added the xV_FROM_REF() macros, I searched for `(TYPE)SvRV` style cast expressions, but forgot to additionally look for `MUTABLE_xV()` calls. There are additionally two spots in pp_hot.c that cannot be modified, because despite casting the result to a CV pointer, the SV isn't actually a CV. I've added a comment on these lines as to why they're not altered. Compare: https://github.com/Perl/perl5/compare/de762f931176...352ca4bc58b6 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications