summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1998-07-19 16:23:30 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1998-07-19 16:23:30 +0000
commit84fee439e17f74d72fd55282112c02bc24f1cad2 (patch)
tree10d749d3874391435ad0de9adf362b83deaac7e6 /embed.pl
parentbde848c562646d502628341cc25a35dd857800b2 (diff)
downloadperl-84fee439e17f74d72fd55282112c02bc24f1cad2.tar.gz
PL_ minir tidy up
p4raw-id: //depot/ansiperl@1568
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/embed.pl b/embed.pl
index f685f66288..ac7f94e5c6 100755
--- a/embed.pl
+++ b/embed.pl
@@ -2,6 +2,14 @@
require 5.003;
+my @extvars = qw(sv_undef sv_yes sv_no na dowarn
+ curcop compiling
+ tainting tainted stack_base stack_sp sv_arenaroot
+ curstash DBsub DBsingle debstash
+ rsfp
+ stdingv
+ );
+
sub readsyms (\%$) {
my ($syms, $file) = @_;
%$syms = ();
@@ -285,4 +293,20 @@ print EM <<'END';
END
+print EM <<'END';
+
+#ifndef MIN_PERL_DEFINE
+
+END
+
+for $sym (sort @extvars) {
+ print EM hide($sym,"PL_$sym");
+}
+
+print EM <<'END';
+
+#endif /* MIN_PERL_DEFINE */
+END
+
+
close(EM);