Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: d933027ef0a56c99aee8cc3c88ff4f9981ac9fc2
https://github.com/Perl/perl5/commit/d933027ef0a56c99aee8cc3c88ff4f9981ac9fc2
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2023-09-01 (Fri, 01 Sep 2023)
Changed paths:
M autodoc.pl
M embed.fnc
M embed.h
M regen/embed.pl
Log Message:
-----------
Define a 'v' flag in embed.fnc which says that a variadic macro shall be
emitted condtionally
It would be dangerous to always emit these for existing macros, as
alluded to by the commit message in 13e5ba49b2cfe0add44db552ecbebb2f785aecbc
> Unfortunately we can't just emit them unconditionally, because much
> existing CPAN code exists that thinks it can call e.g. `warn()` without
> an aTHX_ in scope (because they don't #define PERL_NO_GET_CONTEXT).
>
> Therefore, we have to guard these new macro forms by
>
> ... || defined(PERL_CORE)
>
> and continue to emit the "..._nocontext()" variants at the end of the
> file, as we previously did.
This new flag defined on existing functions preserves this backward
compatbility but allows newly-added macros to be emitted as we'd like by
just omitting that flag.
Commit: 3950a588dca920de9b86cfddbabe3f4d4cfac8be
https://github.com/Perl/perl5/commit/3950a588dca920de9b86cfddbabe3f4d4cfac8be
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2023-09-01 (Fri, 01 Sep 2023)
Changed paths:
M embed.fnc
M embed.h
Log Message:
-----------
Unconditionally emit the newLISTOPn() macro
Compare: https://github.com/Perl/perl5/compare/34315b28685c...3950a588dca9