summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-16 09:47:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-16 09:47:02 +0000
commitfa0660ae09cc5a75227abd0d6c633915189db286 (patch)
tree574552b404782fb6f01066421adf538dc0052bf1 /embed.pl
parent4d7c7ccae13683a1e7cdf37e046c645495a521c3 (diff)
downloadperl-fa0660ae09cc5a75227abd0d6c633915189db286.tar.gz
As suggested by Sarathy, add -DPERL_HIDE_SHORT_NAMES option
which will disable the short forms of the Perl_ API, good for embedding stuff. (Kind of like the old NO_EMBED, but better.) p4raw-id: //depot/perl@18718
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/embed.pl b/embed.pl
index a2a509e964..5fc18a744e 100755
--- a/embed.pl
+++ b/embed.pl
@@ -316,7 +316,10 @@ print EM do_not_edit ("embed.h"), <<'END';
/* (Doing namespace management portably in C is really gross.) */
-/* NO_EMBED is no longer supported. i.e. EMBED is always active. */
+/* NO_EMBED is no longer supported. i.e. EMBED is always active--
+ * but you can define PERL_HIDE_SHORT_NAMES to achieve the same. */
+
+#ifndef PERL_HIDE_SHORT_NAMES
/* Hide global symbols */
@@ -428,6 +431,8 @@ print EM <<'END';
#endif /* PERL_IMPLICIT_CONTEXT */
+#endif /* #ifndef PERL_HIDE_SHORT_NAMES */
+
END
print EM <<'END';
@@ -472,7 +477,7 @@ print EM <<'END';
an extra argument but grab the context pointer using the macro
dTHX.
*/
-#if defined(PERL_IMPLICIT_CONTEXT)
+#if defined(PERL_IMPLICIT_CONTEXT) && !defined(PERL_HIDE_SHORT_NAMES)
# define croak Perl_croak_nocontext
# define deb Perl_deb_nocontext
# define die Perl_die_nocontext