From b47163a2906cf2ff40db5092eaa4c948dd1e63f0 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 30 Apr 2006 21:27:20 +0000 Subject: Perl_pack_cat() is a mathom too! p4raw-id: //depot/perl@28031 --- mathoms.c | 18 ++++++++++++++++++ pod/perlapi.pod | 22 +++++++++++----------- pp_pack.c | 22 ---------------------- 3 files changed, 29 insertions(+), 33 deletions(-) diff --git a/mathoms.c b/mathoms.c index 4dd4584895..206bcfbe6f 100644 --- a/mathoms.c +++ b/mathoms.c @@ -1261,6 +1261,24 @@ Perl_unpack_str(pTHX_ const char *pat, const char *patend, const char *s, return unpackstring(pat, patend, s, strend, flags); } + +/* +=for apidoc pack_cat + +The engine implementing pack() Perl function. Note: parameters next_in_list and +flags are not used. This call should not be used; use packlist instead. + +=cut +*/ + +void +Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, register SV **beglist, SV **endlist, SV ***next_in_list, U32 flags) +{ + PERL_UNUSED_ARG(next_in_list); + PERL_UNUSED_ARG(flags); + + packlist(cat, pat, patend, beglist, endlist); +} #endif /* NO_MATHOMS */ /* diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 88f64435e2..9cbf85472e 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -768,6 +768,17 @@ See L. =for hackers Found in file mathoms.c +=item pack_cat +X + +The engine implementing pack() Perl function. Note: parameters next_in_list and +flags are not used. This call should not be used; use packlist instead. + + void pack_cat(SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags) + +=for hackers +Found in file mathoms.c + =item sv_2pvbyte_nolen X @@ -1035,17 +1046,6 @@ The engine implementing pack() Perl function. =for hackers Found in file pp_pack.c -=item pack_cat -X - -The engine implementing pack() Perl function. Note: parameters next_in_list and -flags are not used. This call should not be used; use packlist instead. - - void pack_cat(SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags) - -=for hackers -Found in file pp_pack.c - =item unpackstring X diff --git a/pp_pack.c b/pp_pack.c index 6e11eb2c3e..61af698bb2 100644 --- a/pp_pack.c +++ b/pp_pack.c @@ -2358,28 +2358,6 @@ S_div128(pTHX_ SV *pnum, bool *done) return (m); } -/* -=for apidoc pack_cat - -The engine implementing pack() Perl function. Note: parameters next_in_list and -flags are not used. This call should not be used; use packlist instead. - -=cut -*/ - -void -Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, register SV **beglist, SV **endlist, SV ***next_in_list, U32 flags) -{ - tempsym_t sym; - PERL_UNUSED_ARG(next_in_list); - PERL_UNUSED_ARG(flags); - - TEMPSYM_INIT(&sym, pat, patend, FLAG_PACK); - - (void)pack_rec( cat, &sym, beglist, endlist ); -} - - /* =for apidoc packlist -- cgit v1.2.1