summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-17 08:34:52 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-17 08:36:37 +0000
commit7bff8c334b79055a65ea37cb51de6d9629880b6c (patch)
treef73a3596596171fcd0a666eaafd6aedd21c2dcdd /mathoms.c
parentd90d5a3845e854b868ede5476fd329d1fb85fd46 (diff)
downloadperl-7bff8c334b79055a65ea37cb51de6d9629880b6c.tar.gz
Convert newSUB() to a macro wrapping Perl_newATTRSUB()
Provide a Perl_newSUB() function in mathoms.c for anyone referencing it by its full name.
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index dac7eae465..32f3215de5 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -83,6 +83,7 @@ PERL_CALLCONV I32 Perl_my_lstat(pTHX);
PERL_CALLCONV I32 Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2);
PERL_CALLCONV char * Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp);
PERL_CALLCONV bool Perl_sv_2bool(pTHX_ register SV *const sv);
+PERL_CALLCONV CV * Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
/* ref() is now a macro using Perl_doref;
* this version provided for binary compatibility only.
@@ -1582,6 +1583,12 @@ Perl_custom_op_desc(pTHX_ const OP* o)
PERL_ARGS_ASSERT_CUSTOM_OP_DESC;
return XopENTRY(Perl_custom_op_xop(aTHX_ o), xop_desc);
}
+
+CV *
+Perl_newSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *block)
+{
+ return Perl_newATTRSUB(aTHX_ floor, o, proto, NULL, block);
+}
#endif /* NO_MATHOMS */
/*