summaryrefslogtreecommitdiff
path: root/uconfig64.sh
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 /uconfig64.sh
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 'uconfig64.sh')
-rw-r--r--uconfig64.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/uconfig64.sh b/uconfig64.sh
index 0162d5c837..12d4dfbf1a 100644
--- a/uconfig64.sh
+++ b/uconfig64.sh
@@ -647,6 +647,7 @@ h_fcntl='false'
h_sysfile='true'
i16size='2'
i16type='short'
+i32dformat='"d"'
i32size='4'
i32type='int'
i64size='8'
@@ -875,8 +876,12 @@ touch='touch'
ttyname_r_proto='0'
u16size='2'
u16type='unsigned short'
+u32XUformat='"X"'
+u32oformat='"o"'
u32size='4'
u32type='unsigned int'
+u32uformat='"u"'
+u32xformat='"x"'
u64size='8'
u64type='unsigned long'
u8size='1'