if ( !sv_derived_from(_sv, "version") ) \
_sv = new_version(_sv); \
if ( vcmp(_sv,xssv) ) \
- Perl_croak(aTHX_ "%s object version %_ does not match %s%s%s%s %_",\
+ Perl_croak(aTHX_ "%s object version %"SVf" does not match %s%s%s%s %"SVf,\
module, vstringify(xssv), \
vn ? "$" : "", vn ? module : "", vn ? "::" : "", \
vn ? vn : "bootstrap parameter", vstringify(_sv));\
register const char *namend;
HV *stash = 0;
I32 add = flags & ~SVf_UTF8;
- I32 utf8 = flags & SVf_UTF8;
if (*name == '*' && isALPHA(name[1])) /* accidental stringify on a GV? */
name++;
(void *)upg_version(PL_patchlevel);
#if !defined(DGUX)
PerlIO_printf(PerlIO_stdout(),
- Perl_form(aTHX_ "\nThis is perl, v%_ built for %s",
+ Perl_form(aTHX_ "\nThis is perl, v%"SVf" built for %s",
vstringify(PL_patchlevel),
ARCHNAME));
#else /* DGUX */
/* Adjust verbose output as in the perl that ships with the DG/UX OS from EMC */
PerlIO_printf(PerlIO_stdout(),
- Perl_form(aTHX_ "\nThis is perl, v%_\n",
+ Perl_form(aTHX_ "\nThis is perl, v%"SVf"\n",
vstringify(PL_patchlevel)));
PerlIO_printf(PerlIO_stdout(),
Perl_form(aTHX_ " built under %s at %s %s\n",
#ifndef SVf
# ifdef CHECK_FORMAT
# define SVf "-p"
-# ifndef SVf256
-# define SVf256 "-256p"
-# endif
# else
# define SVf "_"
# endif
#endif
-#ifndef SVf256
-# define SVf256 ".256"SVf
-#endif
-
-#ifndef UVf
+#ifndef SVf_precision
# ifdef CHECK_FORMAT
-# define UVf UVuf
+# define SVf_precision(n) "-" n "p"
# else
-# define UVf "Vu"
+# define SVf_precision(n) "." n "_"
# endif
#endif
-#ifndef VDf
-# ifdef CHECK_FORMAT
-# define VDf "-1p"
-# else
-# define VDf "vd"
-# endif
+#ifndef SVf32
+# define SVf32 SVf_precision("32")
+#endif
+
+#ifndef SVf256
+# define SVf256 SVf_precision("256")
+#endif
+
+#ifndef UVf
+# define UVf UVuf
#endif
#ifndef DieNull
EXTCONST char PL_no_symref[]
INIT("Can't use string (\"%.32s\") as %s ref while \"strict refs\" in use");
EXTCONST char PL_no_symref_sv[]
- INIT("Can't use string (\"%.32" SVf "\") as %s ref while \"strict refs\" in use");
+ INIT("Can't use string (\"%" SVf32 "\") as %s ref while \"strict refs\" in use");
EXTCONST char PL_no_usym[]
INIT("Can't use an undefined value as %s reference");
EXTCONST char PL_no_aelem[]
if (!sv_derived_from(PL_patchlevel, "version"))
(void *)upg_version(PL_patchlevel);
if ( vcmp(sv,PL_patchlevel) > 0 )
- DIE(aTHX_ "Perl v%_ required--this is only v%_, stopped",
+ DIE(aTHX_ "Perl v%"SVf" required--this is only v%"SVf", stopped",
vstringify(sv), vstringify(PL_patchlevel));
RETPUSHYES;
fill = *q++;
EXPECT_NUMBER(q, width);
-#ifdef CHECK_FORMAT
- if ((*q == 'p') && left) {
- vectorize = (width == 1);
- }
-#endif
if (vectorize) {
if (vectorarg) {
if (args)
left = FALSE;
if (!width)
goto format_sv; /* %-p -> %_ */
- if (vectorize) {
- width = 0;
- goto format_d; /* %-1p -> %vd */
- }
precis = width;
has_precis = TRUE;
width = 0;
#else
intsize = 'l';
#endif
-#ifdef CHECK_FORMAT
- format_d:
-#endif
/* FALL THROUGH */
case 'd':
case 'i':
}
if (bytelen & 1)
- Perl_croak(aTHX_ "panic: utf16_to_utf8: odd bytelen %d", bytelen);
+ Perl_croak(aTHX_ "panic: utf16_to_utf8: odd bytelen %"UVf, (UV)bytelen);
pend = p + bytelen;