summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-27 09:23:19 -0600
committerKarl Williamson <khw@cpan.org>2020-09-05 10:15:53 -0600
commit550697d618054b2358da0f4da60663859d63454c (patch)
tree601ca727f4ced3118a4895fc128daa2db3a82445
parent030d06e7936a548e30f37c7cb0e9ba7fce43aabc (diff)
downloadperl-550697d618054b2358da0f4da60663859d63454c.tar.gz
perlapi: deprecate pack_cat() (a mathoms func)
-rw-r--r--embed.fnc2
-rw-r--r--embed.h3
-rw-r--r--mathoms.c2
-rw-r--r--proto.h4
4 files changed, 8 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index 18065969da..4ece8db307 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1596,7 +1596,7 @@ ApdT |bool |sync_locale
ApxT |void |thread_locale_init
ApxT |void |thread_locale_term
ApdO |void |require_pv |NN const char* pv
-AbpdM |void |pack_cat |NN SV *cat|NN const char *pat|NN const char *patend \
+AbpdD |void |pack_cat |NN SV *cat|NN const char *pat|NN const char *patend \
|NN SV **beglist|NN SV **endlist|NN SV ***next_in_list|U32 flags
Apd |void |packlist |NN SV *cat|NN const char *pat|NN const char *patend|NN SV **beglist|NN SV **endlist
#if defined(PERL_USES_PL_PIDSTATUS) && defined(PERL_IN_UTIL_C)
diff --git a/embed.h b/embed.h
index 50706a7d3a..1447b2726f 100644
--- a/embed.h
+++ b/embed.h
@@ -410,6 +410,9 @@
#define op_refcnt_unlock() Perl_op_refcnt_unlock(aTHX)
#define op_scope(a) Perl_op_scope(aTHX_ a)
#define op_sibling_splice Perl_op_sibling_splice
+#ifndef NO_MATHOMS
+#define pack_cat(a,b,c,d,e,f,g) Perl_pack_cat(aTHX_ a,b,c,d,e,f,g)
+#endif
#define packlist(a,b,c,d,e) Perl_packlist(aTHX_ a,b,c,d,e)
#define pad_add_anon(a,b) Perl_pad_add_anon(aTHX_ a,b)
#define pad_add_name_pv(a,b,c,d) Perl_pad_add_name_pv(aTHX_ a,b,c,d)
diff --git a/mathoms.c b/mathoms.c
index caed40171a..b490049d09 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -850,7 +850,7 @@ Perl_unpack_str(pTHX_ const char *pat, const char *patend, const char *s,
The engine implementing C<pack()> Perl function. Note: parameters
C<next_in_list> and C<flags> are not used. This call should not be used; use
-C<packlist> instead.
+C<L</packlist>> instead.
=cut
*/
diff --git a/proto.h b/proto.h
index 1b030a999f..e156756096 100644
--- a/proto.h
+++ b/proto.h
@@ -2584,10 +2584,12 @@ PERL_CALLCONV void Perl_optimize_optree(pTHX_ OP* o);
#define PERL_ARGS_ASSERT_OPTIMIZE_OPTREE \
assert(o)
#ifndef NO_MATHOMS
-PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags);
+PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
+ __attribute__deprecated__;
#define PERL_ARGS_ASSERT_PACK_CAT \
assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
#endif
+
PERL_CALLCONV void Perl_package(pTHX_ OP* o);
#define PERL_ARGS_ASSERT_PACKAGE \
assert(o)