diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-07-18 13:53:03 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-07-18 13:53:03 +0000 |
commit | 3280af22f58e7b37514ed104858e2c2fc55ceeeb (patch) | |
tree | 8fd8328859f022068272656f072a7ec4eecac0a6 /embed.pl | |
parent | ef6361f9c2260919aefcc17b1b80f8857c67a84a (diff) | |
download | perl-3280af22f58e7b37514ed104858e2c2fc55ceeeb.tar.gz |
PL_ prefix to all perlvars, part1
Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT
p4raw-id: //depot/ansiperl@1532
Diffstat (limited to 'embed.pl')
-rwxr-xr-x | embed.pl | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -86,13 +86,19 @@ sub embed ($) { my ($sym) = @_; hide($sym, "Perl_$sym"); } +sub embedvar ($) { + my ($sym) = @_; +# hide($sym, "Perl_$sym"); + return ''; +} + sub multon ($$$) { my ($sym,$pre,$ptr) = @_; - hide($sym, "($ptr$pre$sym)"); + hide("PL_$sym", "($ptr$pre$sym)"); } sub multoff ($$) { my ($sym,$pre) = @_; - hide("$pre$sym", $sym); + hide("$pre$sym", "PL_$sym"); } unlink 'embed.h'; @@ -211,7 +217,7 @@ print EM <<'END'; END for $sym (sort keys %intrp) { - print EM embed($sym); + print EM embedvar($sym); } print EM <<'END'; @@ -221,7 +227,7 @@ print EM <<'END'; END for $sym (sort keys %thread) { - print EM embed($sym); + print EM embedvar($sym); } print EM <<'END'; @@ -269,7 +275,7 @@ print EM <<'END'; END for $sym (sort keys %globvar) { - print EM embed($sym); + print EM embedvar($sym); } print EM <<'END'; |