This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move PL_sh_path to perl.h (except for OS/2), as it's const char[]
authorNicholas Clark <nick@ccl4.org>
Sun, 1 May 2011 11:25:58 +0000 (12:25 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 12 Jun 2011 14:15:22 +0000 (16:15 +0200)
commit0447859b8a048144ae0ece76a2f7595840942fcb
tree665b7b2c2e89cfdc6022bd547b12e17572790aa3
parent58f645e20791a7788fcb38189895a712d5c53419
Move PL_sh_path to perl.h (except for OS/2), as it's const char[]

On OS/2, keep it in perlvars.h, as it's not const there. makedef.pl doesn't
pay attention to C pre-processor symbols, so it will always see the declaration
in perlvars.h, and add the symbol to the linker file, so no need to mention
sh_path in globvar.sym. Add special case logic in regen/embed.pl to make the
embedvar.h macros for PL_sh_path defined only on OS/2.
embedvar.h
perl.h
perlvars.h
regen/embed.pl