Commit 83161f1f5e for perl

commit 83161f1f5e23a5f1e6ea72b507b8a4b3b87b24c3
Author: Richard Leach <rich+perl@hyphen-dash-hyphen.info>
Date:   Wed Feb 25 20:52:55 2026 +0000

    Add STACK_OFFdf as a print format

    Since the nature of it is determined at compile time.

diff --git a/perl.h b/perl.h
index 5f4f9a3c72..602c5515a3 100644
--- a/perl.h
+++ b/perl.h
@@ -4608,12 +4608,23 @@ where it has parity with the other two forms.
 #  define __has_builtin(x) 0 /* not a clang style compiler */
 #endif

+/*
+=for apidoc_section $io_formats
+=for apidoc AmnD||STACK_OFFdf
+
+This symbol defines the format string used for printing a stack offset
+as a signed decimal integer.
+
+=cut
+*/
 #ifdef PERL_STACK_OFFSET_SSIZET
   typedef SSize_t Stack_off_t;
 #  define Stack_off_t_MAX SSize_t_MAX
+#  define STACK_OFFdf "zd"
 #else
   typedef I32 Stack_off_t;
 #  define Stack_off_t_MAX I32_MAX
+#  define STACK_OFFdf I32df
 #endif
 #define PERL_STACK_OFFSET_DEFINED

diff --git a/t/porting/diag.t b/t/porting/diag.t
index 70acd493a9..571fa174fd 100644
--- a/t/porting/diag.t
+++ b/t/porting/diag.t
@@ -235,6 +235,7 @@ my %specialformats = (IVdf => 'd',
 		      PNf  => 's',
                       HvNAMEf => 's',
                       HvNAMEf_QUOTEDPREFIX => 'S',
+                      STACK_OFFdf => 'd',
                   );

 my $format_modifiers = qr/ [#0\ +-]*              # optional flags