summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-09 21:32:50 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-09 21:32:50 +0000
commit75c20bacb9ae327aacf009e8bfd9ed768a1e07b1 (patch)
tree95ef0d13a76f6ee3482b8c22c68f6f2e5781812d /pp_ctl.c
parentb640a14ad99660810209db046b8d70831781c646 (diff)
downloadperl-75c20bacb9ae327aacf009e8bfd9ed768a1e07b1.tar.gz
If PERL_DISABLE_PMC is defined, doopen_pm() is just a direct call to
check_type_and_open(). So for this case make it a macro, to save a level of function call. p4raw-id: //depot/perl@32088
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 021307484f..0968dd47a3 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3018,10 +3018,10 @@ S_check_type_and_open(pTHX_ const char *name)
return PerlIO_open(name, PERL_SCRIPT_MODE);
}
+#ifndef PERL_DISABLE_PMC
STATIC PerlIO *
S_doopen_pm(pTHX_ const char *name, const STRLEN namelen)
{
-#ifndef PERL_DISABLE_PMC
PerlIO *fp;
if (namelen > 3 && strEQ(name + namelen - 3, ".pm")) {
@@ -3045,10 +3045,10 @@ S_doopen_pm(pTHX_ const char *name, const STRLEN namelen)
fp = check_type_and_open(name);
}
return fp;
+}
#else
- return check_type_and_open(name);
+# define doopen_pm(name, namelen) check_type_and_open(name)
#endif /* !PERL_DISABLE_PMC */
-}
PP(pp_require)
{