diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-09 21:32:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-09 21:32:50 +0000 |
commit | 75c20bacb9ae327aacf009e8bfd9ed768a1e07b1 (patch) | |
tree | 95ef0d13a76f6ee3482b8c22c68f6f2e5781812d /pp_ctl.c | |
parent | b640a14ad99660810209db046b8d70831781c646 (diff) | |
download | perl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |