This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Introduce macros to simplify @INC setting
authorNicolas R <atoomic@cpan.org>
Tue, 7 Nov 2017 22:10:45 +0000 (16:10 -0600)
committerNicolas R <atoomic@cpan.org>
Tue, 14 Nov 2017 03:20:15 +0000 (21:20 -0600)
commit7d00a3405ca1345227668bfc2bac750590adf68f
treea1690a4cdfe21c0c83ed9763485951f5a0c8d76b
parentad2ec6b54c9968999b7c70984b5a203fa72fd540
Introduce macros to simplify @INC setting

Distro trends to customize @INC, and to maintain
patches to change the order of @INC or add custom entries.

The goal of this patch is to abstract calls to 'S_incpush_use_sep'
and simplify reordering @INC.

This commit makes the code from perl.c more comfortable to read
by introducing several 'INCPUSH_*' macros for every
'S_incpush_use_sep' call so we can easily reorder them.
MANIFEST
perl.c
perl_inc_macro.h [new file with mode: 0644]