From: Nicholas Clark Date: Sun, 30 Apr 2006 21:27:20 +0000 (+0000) Subject: Perl_pack_cat() is a mathom too! X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b47163a2906cf2ff40db5092eaa4c948dd1e63f0;p=p5sagit%2Fp5-mst-13.2.git Perl_pack_cat() is a mathom too! p4raw-id: //depot/perl@28031 --- diff --git a/mathoms.c b/mathoms.c index 4dd4584..206bcfb 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 88f6443..9cbf854 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 6e11eb2..61af698 100644 --- a/pp_pack.c +++ b/pp_pack.c @@ -2359,28 +2359,6 @@ S_div128(pTHX_ SV *pnum, bool *done) } /* -=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 The engine implementing pack() Perl function.