This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
embed.pl - the 's', 'S', 'i' and 'I' flags are mutually exclusive
authorYves Orton <demerphq@gmail.com>
Tue, 31 Jan 2023 04:01:53 +0000 (05:01 +0100)
committerYves Orton <demerphq@gmail.com>
Wed, 1 Feb 2023 01:53:44 +0000 (09:53 +0800)
commit6abce8468c57a533bc8160fc30734708c2452aea
tree38725074f7446faaa00b0137f0d4b9e610a201e5
parentd404f73baa29d5697ed2cac768de015217d5e819
embed.pl - the 's', 'S', 'i' and 'I' flags are mutually exclusive

We had a bug where we processed the first one in the flags definition. Sorting
the flags or rearranging them changes the output, which shouldn't happen.

This also fixes the handling and specification of PerlEnv_putenv(), which was
marked "si" when it should have been marked "i". This required changing its
implementation from a Perl_ prefix to a S_ prefix and regenerating.

I have run embed.pl in a loop with a local patch to shuffle the flags to see
if there were any other order dependencies. No output files changed so I
assume with this patch we are free of such bugs.
embed.fnc
embed.h
inline.h
proto.h
regen/embed.pl