perl 5.003_01: lib/File/Basename.pm
[p5sagit/p5-mst-13.2.git] / embed.pl
index e5423dd..e4469c9 100755 (executable)
--- a/embed.pl
+++ b/embed.pl
@@ -3,7 +3,10 @@
 open(EM, ">embed.h") || die "Can't create embed.h: $!\n";
 
 print EM <<'END';
-/* This file is derived from global.sym and interp.sym */
+/* !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!! 
+   This file is derived from global.sym and interp.sym 
+   Any changes made here will be lost 
+*/
 
 /* (Doing namespace management portably in C is really gross.) */
 
@@ -42,6 +45,14 @@ print EM <<'END';
 
 #ifdef MULTIPLICITY
 
+/* Undefine symbols that were defined by EMBED. Somewhat ugly */
+
+#undef curcop
+#undef envgv
+#undef siggv
+#undef stack
+#undef tainting
+
 END
 
 open(INT, "<interp.sym") || die "Can't open interp.sym: $!\n";