@@ -302,7 +302,7 @@ Perl_pv_escape( pTHX_ SV *dsv, char const * const str,
302
302
if (restart ) {
303
303
/* this only happens with PERL_PV_ESCAPE_TRUNC_MIDDLE */
304
304
if (dsv )
305
- Perl_sv_catpvf ( aTHX_ dsv ,"%s...%s" , qe , qs );
305
+ sv_catpvf ( dsv ,"%s...%s" , qe , qs );
306
306
wrote += extra_len ;
307
307
pv = restart ;
308
308
max = tail ;
@@ -323,7 +323,7 @@ Perl_pv_escape( pTHX_ SV *dsv, char const * const str,
323
323
how to keep it clear that it's unlike the s of catpvs, which is
324
324
really an array of octets, not a string. */
325
325
if (dsv )
326
- Perl_sv_catpvf ( aTHX_ dsv , "%c" , c );
326
+ sv_catpvf ( dsv , "%c" , c );
327
327
wrote ++ ;
328
328
}
329
329
if ( flags & PERL_PV_ESCAPE_FIRSTCHAR )
@@ -382,7 +382,7 @@ Perl_pv_pretty( pTHX_ SV *dsv, char const * const str, const STRLEN count,
382
382
orig_cur = SvCUR (dsv );
383
383
384
384
if ( quotes )
385
- Perl_sv_catpvf ( aTHX_ dsv , "%c" , quotes [0 ]);
385
+ sv_catpvf ( dsv , "%c" , quotes [0 ]);
386
386
387
387
if ( start_color != NULL )
388
388
sv_catpv (dsv , start_color );
@@ -403,7 +403,7 @@ Perl_pv_pretty( pTHX_ SV *dsv, char const * const str, const STRLEN count,
403
403
sv_catpv (dsv , end_color );
404
404
405
405
if ( quotes )
406
- Perl_sv_catpvf ( aTHX_ dsv , "%c" , quotes [1 ]);
406
+ sv_catpvf ( dsv , "%c" , quotes [1 ]);
407
407
408
408
if ( (flags & PERL_PV_PRETTY_ELLIPSES ) && ( escaped < count ) )
409
409
sv_catpvs (dsv , "..." );
@@ -540,14 +540,14 @@ Perl_sv_peek(pTHX_ SV *sv)
540
540
}
541
541
}
542
542
if (is_tmp || SvREFCNT (sv ) > 1 || SvPADTMP (sv )) {
543
- Perl_sv_catpvf ( aTHX_ t , "< ");
543
+ sv_catpvf ( t , "<" );
544
544
if (SvREFCNT (sv ) > 1 )
545
- Perl_sv_catpvf ( aTHX_ t , "%" UVuf , (UV )SvREFCNT (sv ));
545
+ sv_catpvf ( t , "%" UVuf , (UV )SvREFCNT (sv ));
546
546
if (SvPADTMP (sv ))
547
- Perl_sv_catpvf ( aTHX_ t , "%s" , "P" );
547
+ sv_catpvf ( t , "%s" , "P" );
548
548
if (is_tmp )
549
- Perl_sv_catpvf ( aTHX_ t , "%s" , SvTEMP (t ) ? "T" : "t" );
550
- Perl_sv_catpvf ( aTHX_ t , "> ");
549
+ sv_catpvf ( t , "%s" , SvTEMP (t ) ? "T" : "t" );
550
+ sv_catpvf ( t , ">" );
551
551
}
552
552
}
553
553
@@ -566,7 +566,7 @@ Perl_sv_peek(pTHX_ SV *sv)
566
566
if (type == SVt_PVCV ) {
567
567
SV * const tmp = newSVpvs_flags ("" , SVs_TEMP );
568
568
GV * gvcv = CvGV (sv );
569
- Perl_sv_catpvf ( aTHX_ t , "CV(%s)" , gvcv
569
+ sv_catpvf ( t , "CV(%s)" , gvcv
570
570
? generic_pv_escape ( tmp , GvNAME (gvcv ), GvNAMELEN (gvcv ), GvNAMEUTF8 (gvcv ))
571
571
: "" );
572
572
goto finish ;
@@ -589,11 +589,11 @@ Perl_sv_peek(pTHX_ SV *sv)
589
589
if (SvOOK (sv )) {
590
590
STRLEN delta ;
591
591
SvOOK_offset (sv , delta );
592
- Perl_sv_catpvf ( aTHX_ t , "[%s]" , pv_display (tmp , SvPVX_const (sv )- delta , delta , 0 , 127 ));
592
+ sv_catpvf ( t , "[%s]" , pv_display (tmp , SvPVX_const (sv )- delta , delta , 0 , 127 ));
593
593
}
594
- Perl_sv_catpvf ( aTHX_ t , "%s)" , pv_display (tmp , SvPVX_const (sv ), SvCUR (sv ), SvLEN (sv ), 127 ));
594
+ sv_catpvf ( t , "%s)" , pv_display (tmp , SvPVX_const (sv ), SvCUR (sv ), SvLEN (sv ), 127 ));
595
595
if (SvUTF8 (sv ))
596
- Perl_sv_catpvf ( aTHX_ t , " [UTF8 \"%s\"]" ,
596
+ sv_catpvf ( t , " [UTF8 \"%s\"]" ,
597
597
sv_uni_display (tmp , sv , 6 * SvCUR (sv ),
598
598
UNI_DISPLAY_QQ ));
599
599
SvREFCNT_dec_NN (tmp );
@@ -602,14 +602,14 @@ Perl_sv_peek(pTHX_ SV *sv)
602
602
else if (SvNOKp (sv )) {
603
603
DECLARATION_FOR_LC_NUMERIC_MANIPULATION ;
604
604
STORE_LC_NUMERIC_SET_STANDARD ();
605
- Perl_sv_catpvf ( aTHX_ t , "(%" NVgf ")" ,SvNVX (sv ));
605
+ sv_catpvf ( t , "(%" NVgf ")" ,SvNVX (sv ));
606
606
RESTORE_LC_NUMERIC ();
607
607
}
608
608
else if (SvIOKp (sv )) {
609
609
if (SvIsUV (sv ))
610
- Perl_sv_catpvf ( aTHX_ t , "(%" UVuf ")" , (UV )SvUVX (sv ));
610
+ sv_catpvf ( t , "(%" UVuf ")" , (UV )SvUVX (sv ));
611
611
else
612
- Perl_sv_catpvf ( aTHX_ t , "(%" IVdf ")" , (IV )SvIVX (sv ));
612
+ sv_catpvf ( t , "(%" IVdf ")" , (IV )SvIVX (sv ));
613
613
}
614
614
else
615
615
sv_catpvs (t , "()" );
@@ -952,7 +952,7 @@ S_gv_display(pTHX_ GV *gv)
952
952
if (isGV_with_GP (gv ))
953
953
gv_fullname3 (raw , gv , NULL );
954
954
else {
955
- Perl_sv_catpvf ( aTHX_ raw , "cv ref: %s" ,
955
+ sv_catpvf ( raw , "cv ref: %s" ,
956
956
SvPV_nolen_const (cv_name (CV_FROM_REF ((SV * )gv ), name , 0 )));
957
957
}
958
958
rawpv = SvPV_const (raw , len );
@@ -1312,7 +1312,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o)
1312
1312
sv_catpvs (tmpsv , "=" );
1313
1313
}
1314
1314
if (enum_label == -1 )
1315
- Perl_sv_catpvf ( aTHX_ tmpsv , "0x%" UVxf , (UV )val );
1315
+ sv_catpvf ( tmpsv , "0x%" UVxf , (UV )val );
1316
1316
else
1317
1317
sv_catpv (tmpsv , & PL_op_private_labels [enum_label ]);
1318
1318
@@ -1331,7 +1331,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o)
1331
1331
}
1332
1332
if (oppriv ) {
1333
1333
sv_catpvs (tmpsv , "," );
1334
- Perl_sv_catpvf ( aTHX_ tmpsv , "0x%" UVxf , (UV )oppriv );
1334
+ sv_catpvf ( tmpsv , "0x%" UVxf , (UV )oppriv );
1335
1335
}
1336
1336
}
1337
1337
if (tmpsv && SvCUR (tmpsv )) {
@@ -2430,7 +2430,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
2430
2430
while (hekp < endp ) {
2431
2431
if (* hekp ) {
2432
2432
SV * tmp = newSVpvs_flags ("" , SVs_TEMP );
2433
- Perl_sv_catpvf ( aTHX_ names , ", \"%s\"" ,
2433
+ sv_catpvf ( names , ", \"%s\"" ,
2434
2434
generic_pv_escape (tmp , HEK_KEY (* hekp ), HEK_LEN (* hekp ), HEK_UTF8 (* hekp )));
2435
2435
} else {
2436
2436
/* This should never happen. */
@@ -3071,14 +3071,14 @@ S_append_padvar(pTHX_ PADOFFSET off, CV *cv, SV *out, int n,
3071
3071
if (namepad && (sv = padnamelist_fetch (namepad , off + i )))
3072
3072
{
3073
3073
STRLEN cur = SvCUR (out );
3074
- Perl_sv_catpvf ( aTHX_ out , "[%" UTF8f ,
3074
+ sv_catpvf ( out , "[%" UTF8f ,
3075
3075
UTF8fARG (1 , PadnameLEN (sv ) - 1 ,
3076
3076
PadnamePV (sv ) + 1 ));
3077
3077
if (is_scalar )
3078
3078
SvPVX (out )[cur ] = '$' ;
3079
3079
}
3080
3080
else
3081
- Perl_sv_catpvf ( aTHX_ out , "[%" UVuf "]" , (UV )(off + i ));
3081
+ sv_catpvf ( out , "[%" UVuf "]" , (UV )(off + i ));
3082
3082
if (i < n - 1 )
3083
3083
sv_catpvs_nomg (out , "," );
3084
3084
}
@@ -3097,7 +3097,7 @@ S_append_gv_name(pTHX_ GV *gv, SV *out)
3097
3097
}
3098
3098
sv = newSV_type (SVt_NULL );
3099
3099
gv_fullname4 (sv , gv , NULL , FALSE);
3100
- Perl_sv_catpvf ( aTHX_ out , "$%" SVf , SVfARG (sv ));
3100
+ sv_catpvf ( out , "$%" SVf , SVfARG (sv ));
3101
3101
SvREFCNT_dec_NN (sv );
3102
3102
}
3103
3103
@@ -3218,7 +3218,7 @@ Perl_multideref_stringify(pTHX_ const OP *o, CV *cv)
3218
3218
}
3219
3219
}
3220
3220
else
3221
- Perl_sv_catpvf ( aTHX_ out , "%" IVdf , (++ items )-> iv );
3221
+ sv_catpvf ( out , "%" IVdf , (++ items )-> iv );
3222
3222
break ;
3223
3223
case MDEREF_INDEX_padsv :
3224
3224
S_append_padvar (aTHX_ (++ items )-> pad_offset , cv , out , 1 , 0 , 1 );
@@ -3285,7 +3285,7 @@ Perl_multiconcat_stringify(pTHX_ const OP *o)
3285
3285
3286
3286
lens = aux + PERL_MULTICONCAT_IX_LENGTHS ;
3287
3287
while (nargs -- >= 0 ) {
3288
- Perl_sv_catpvf ( aTHX_ out , ",%" IVdf , (IV )lens -> ssize );
3288
+ sv_catpvf ( out , ",%" IVdf , (IV )lens -> ssize );
3289
3289
lens ++ ;
3290
3290
}
3291
3291
return out ;
0 commit comments