summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-05-22 20:46:52 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-05-23 00:56:10 -0700
commitce9f52adaabc1b017e07815147af86476576e92d (patch)
tree266d3b9f22173fea4c1ae475b52eb450fe4ddd39
parentf7051f2c7bdf0cbc642f2904d5bf8e9e35fdcb3a (diff)
downloadperl-ce9f52adaabc1b017e07815147af86476576e92d.tar.gz
op.c: One less func call for newXS
newXS calls newXS_flags, which calls newXS_len_flags. This commit makes newXS call the underlying function directly.
-rw-r--r--op.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/op.c b/op.c
index f1d0261fc8..94b9281f87 100644
--- a/op.c
+++ b/op.c
@@ -7124,7 +7124,9 @@ CV *
Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
{
PERL_ARGS_ASSERT_NEWXS;
- return newXS_flags(name, subaddr, filename, NULL, 0);
+ return newXS_len_flags(
+ name, name ? strlen(name) : 0, subaddr, filename, NULL, NULL, 0
+ );
}
#ifdef PERL_MAD