This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make EMBED the default, unless overridden by -DNO_EMBED
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Mon, 11 Mar 1996 07:02:14 +0000 (07:02 +0000)
committerCharles Bailey <bailey@genetics.upenn.edu>
Mon, 11 Mar 1996 07:02:14 +0000 (07:02 +0000)
embed.pl

index 118b911..e5423dd 100755 (executable)
--- a/embed.pl
+++ b/embed.pl
@@ -7,6 +7,16 @@ print EM <<'END';
 
 /* (Doing namespace management portably in C is really gross.) */
 
 
 /* (Doing namespace management portably in C is really gross.) */
 
+/*  EMBED has no run-time penalty, but helps keep the Perl namespace
+    from colliding with that used by other libraries pulled in
+    by extensions or by embedding perl.  Allow a cc -DNO_EMBED
+    override, however, to keep binary compatability with previous
+    versions of perl.
+*/
+#ifndef NO_EMBED
+#  define EMBED 1 
+#endif
+
 #ifdef EMBED
 
 /* globals we need to hide from the world */
 #ifdef EMBED
 
 /* globals we need to hide from the world */