if (*q == '%') {
eptr = q++;
elen = 1;
+ if (vectorize) {
+ c = '%';
+ goto unknown;
+ }
goto string;
}
- if (vectorize)
- argsv = vecsv;
- else if (!args) {
+ if (!vectorize && !args) {
if (efix) {
const I32 i = efix-1;
argsv = (i >= 0 && i < svmax) ? svargs[i] : &PL_sv_undef;
/* STRINGS */
case 'c':
- uv = (args && !vectorize) ? va_arg(*args, int) : SvIVx(argsv);
+ if (vectorize)
+ goto unknown;
+ uv = (args) ? va_arg(*args, int) : SvIVx(argsv);
if ((uv > 255 ||
(!UNI_IS_INVARIANT(uv) && SvUTF8(sv)))
&& !IN_BYTES) {
goto string;
case 's':
- if (args && !vectorize) {
+ if (vectorize)
+ goto unknown;
+ if (args) {
eptr = va_arg(*args, char*);
if (eptr)
#ifdef MACOS_TRADITIONAL
}
string:
- vectorize = FALSE;
if (has_precis && elen > precis)
elen = precis;
break;
case 'e': case 'E':
case 'f':
case 'g': case 'G':
+ if (vectorize)
+ goto unknown;
/* This is evil, but floating point is even more evil */
}
/* now we need (long double) if intsize == 'q', else (double) */
- nv = (args && !vectorize) ?
+ nv = (args) ?
#if LONG_DOUBLESIZE > DOUBLESIZE
intsize == 'q' ?
va_arg(*args, long double) :
: SvNVx(argsv);
need = 0;
- vectorize = FALSE;
if (c != 'e' && c != 'E') {
i = PERL_INT_MIN;
/* FIXME: if HAS_LONG_DOUBLE but not USE_LONG_DOUBLE this
/* SPECIAL */
case 'n':
+ if (vectorize)
+ goto unknown;
i = SvCUR(sv) - origlen;
- if (args && !vectorize) {
+ if (args) {
switch (intsize) {
case 'h': *(va_arg(*args, short*)) = i; break;
default: *(va_arg(*args, int*)) = i; break;
}
else
sv_setuv_mg(argsv, (UV)i);
- vectorize = FALSE;
continue; /* not "break" */
/* UNKNOWN */
>%*2*2$d< >[12, 3]< >%*2*2$d INVALID<
>%*2$1d< >[12, 3]< >%*2$1d INVALID<
>%0v2.2d< >''< ><
->%vc,%d< >[63, 64, 65]< >?,64<
+>%vc,%d< >[63, 64, 65]< >%vc,63 INVALID<
+>%v%,%d< >[63, 64, 65]< >%v%,63 INVALID<
>%vd,%d< >[1, 2, 3]< >49,2<
->%vf,%d< >[1, 2, 3]< >1.000000,2<
+>%vf,%d< >[1, 2, 3]< >%vf,1 INVALID<
+>%vF,%d< >[1, 2, 3]< >%vF,1 INVALID<
+>%ve,%d< >[1, 2, 3]< >%ve,1 INVALID<
+>%vE,%d< >[1, 2, 3]< >%vE,1 INVALID<
+>%vg,%d< >[1, 2, 3]< >%vg,1 INVALID<
+>%vG,%d< >[1, 2, 3]< >%vG,1 INVALID<
>%vp< >''< >%vp INVALID<
->%vs,%d< >[1, 2, 3]< >1,2<
+>%vn< >''< >%vn INVALID<
+>%vs,%d< >[1, 2, 3]< >%vs,1 INVALID<
>%v_< >''< >%v_ INVALID<
>%v#x< >''< >%v#x INVALID<
>%v02x< >"foo\012"< >66.6f.6f.0a<