summaryrefslogtreecommitdiff
path: root/uconfig.h
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2022-10-18 22:46:11 +0900
committerTony Cook <tony@develop-help.com>2022-11-14 15:40:56 +1100
commita503b7406f4be5b6577fc63261184ffbe58009a1 (patch)
treebebf8ebb8b3aefca81141991a37234301290b901 /uconfig.h
parentba63af8a4c3715989c590e98b08ffbd58e885eea (diff)
downloadperl-a503b7406f4be5b6577fc63261184ffbe58009a1.tar.gz
Figure out I32df, U32uf, etc. in Configure rather than in perl.h
These macros were defined in perl.h using preprocessor conditionals, but determining wheter I32 is "int" or "long" is pretty hard with preprocessor, when INTSIZE == LONGSIZE. The Configure script should know exact underlying type of I32, so it should be able to determine whether %d or %ld shall be used to format I32 value more robustly. Various pre-configured files, such as uconfig.h, are updated to align with this.
Diffstat (limited to 'uconfig.h')
-rw-r--r--uconfig.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/uconfig.h b/uconfig.h
index 063727eeb0..7099da9533 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -4156,6 +4156,26 @@
* This symbol defines the format string used for printing a Perl NV
* using %g-ish floating point format.
*/
+/* I32df:
+ * This symbol defines the format string used for printing a Perl I32
+ * as a signed decimal integer.
+ */
+/* U32uf:
+ * This symbol defines the format string used for printing a Perl U32
+ * as an unsigned decimal integer.
+ */
+/* U32of:
+ * This symbol defines the format string used for printing a Perl U32
+ * as an unsigned octal integer.
+ */
+/* U32xf:
+ * This symbol defines the format string used for printing a Perl U32
+ * as an unsigned hexadecimal integer in lowercase abcdef.
+ */
+/* U32Xf:
+ * This symbol defines the format string used for printing a Perl U32
+ * as an unsigned hexadecimal integer in uppercase ABCDEF.
+ */
#define IVdf "ld" /**/
#define UVuf "lu" /**/
#define UVof "lo" /**/
@@ -4164,6 +4184,11 @@
#define NVef "e" /**/
#define NVff "f" /**/
#define NVgf "g" /**/
+#define I32df "ld" /**/
+#define U32uf "lu" /**/
+#define U32of "lo" /**/
+#define U32xf "lx" /**/
+#define U32Xf "lX" /**/
/* SELECT_MIN_BITS:
* This symbol holds the minimum number of bits operated by select.
@@ -5351,6 +5376,6 @@
#endif
/* Generated from:
- * 72a47a9b71961a7325395f1b8ca5e40f71099b60c5f4abbc6c872a8ee4597b08 config_h.SH
- * bfca76a5b377754c7113eda85ec235ff8776e891a4041ce385a874c7788409a6 uconfig.sh
+ * 87bdd73bd78f6ebe0bf3b7bc0897da3ed460fceee0bc2e61363ef5e24db55bb2 config_h.SH
+ * 9c5779a38fbba64b0a5dcf7ce548120a29ea5039350102827f500c812bda10b2 uconfig.sh
* ex: set ro: */