This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
harmonise two versions of Perl_my_cxt_init
authorDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 14:35:31 +0000 (14:35 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 14:40:21 +0000 (14:40 +0000)
commit8e7615cb2f19df1393c4e187d2c3ef6cb73e2b1a
tree553c8106aa042c623528f22fafee083aff9ace04
parentc32805c1fdc2309bfc236013edc5490117fb28df
harmonise two versions of Perl_my_cxt_init

There are two separate copies of this function, chosen by
the presence of PERL_GLOBAL_STRUCT_PRIVATE.

Make the two versions closer to each other, to allow shortly for
merging.

Mainly its renaming the int pointer parameter from 'index' to 'indexp',
and adding a local var 'index', which is assigned from *indexp where
appropriate.

Also harmonise some of the comments between the two functions.
embed.fnc
proto.h
util.c