From: Ilya Zakharevich Date: Thu, 21 Feb 2002 21:33:37 +0000 (-0500) Subject: pack with a human face: the sequel X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=206947d2c0ace466f6b1e79f9bf44a86d72fb50d;p=p5sagit%2Fp5-mst-13.2.git pack with a human face: the sequel Message-ID: <20020221213337.A23848@math.ohio-state.edu> p4raw-id: //depot/perl@14824 --- diff --git a/embed.fnc b/embed.fnc index 60cd3e0..fbc9099 100644 --- a/embed.fnc +++ b/embed.fnc @@ -1067,6 +1067,7 @@ s |int |div128 |SV *pnum|bool *done s |char * |next_symbol |char *pat|char *patend s |I32 |find_count |char **ppat|char *patend|int *star s |char * |group_end |char *pat|char *patend|char ender +s |I32 |measure_struct |char *pat|char *patend #endif #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) diff --git a/embed.h b/embed.h index 40bfb28..d7e137a 100644 --- a/embed.h +++ b/embed.h @@ -1000,6 +1000,7 @@ #define next_symbol S_next_symbol #define find_count S_find_count #define group_end S_group_end +#define measure_struct S_measure_struct #endif #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) #define docatch S_docatch @@ -2544,6 +2545,7 @@ #define next_symbol(a,b) S_next_symbol(aTHX_ a,b) #define find_count(a,b,c) S_find_count(aTHX_ a,b,c) #define group_end(a,b,c) S_group_end(aTHX_ a,b,c) +#define measure_struct(a,b) S_measure_struct(aTHX_ a,b) #endif #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) #define docatch(a) S_docatch(aTHX_ a) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 0c87d94..6d8e940 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2313,6 +2313,12 @@ supplied. See L. of Perl. Check the #! line, or manually feed your script into Perl yourself. +=item %s not allowed in length fields + +(F) The count in the (un)pack template may be replaced by C<[TEMPLATE]> only if +C