Loop in S_init_perllib(), only calling S_incpush*() with INCPUSH_ADD_OLD_VERS
authorNicholas Clark <nick@ccl4.org>
Sun, 15 Feb 2009 16:18:34 +0000 (16:18 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 15 Feb 2009 17:40:59 +0000 (17:40 +0000)
commita26c0e281cb6068a8d148933281d8186f1eb4206
treeffc145e69008c8dc8e4ccddfd23b0ffb72800635
parent55b4bc1cac18bd560bcd9386594a419294fafc1d
Loop in S_init_perllib(), only calling S_incpush*() with INCPUSH_ADD_OLD_VERS
the second time (and only for those entries at had it). Implement the loop by
calling init_perllib() twice, to avoid a rats nest of re-indenting. Add a new
flag to S_incpush() INCPUSH_NOT_BASEDIR, to supress pushing the base directory
a second time on the secnod call.

With this change, re-ordering of @INC from version-orientated to prefix-
orientated is partly complete. ARCHLIB and PRIVLIB remain at their old place in
the @INC order.
embed.fnc
embed.h
perl.c
proto.h