diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-30 21:27:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-30 21:27:20 +0000 |
commit | b47163a2906cf2ff40db5092eaa4c948dd1e63f0 (patch) | |
tree | 0d03b0ad1e7e423ddc76edfbe65bacd7b96f9962 | |
parent | ce399ba62db9cda174a31da7c5310c71b8a9adc4 (diff) | |
download | perl-b47163a2906cf2ff40db5092eaa4c948dd1e63f0.tar.gz |
Perl_pack_cat() is a mathom too!
p4raw-id: //depot/perl@28031
-rw-r--r-- | mathoms.c | 18 | ||||
-rw-r--r-- | pod/perlapi.pod | 22 | ||||
-rw-r--r-- | pp_pack.c | 22 |
3 files changed, 29 insertions, 33 deletions
@@ -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<gv_fetchmethod_autoload>. =for hackers Found in file mathoms.c +=item pack_cat +X<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. + + 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<sv_2pvbyte_nolen> @@ -1035,17 +1046,6 @@ The engine implementing pack() Perl function. =for hackers Found in file pp_pack.c -=item pack_cat -X<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. - - 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<unpackstring> @@ -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. |