move pthread types out of per-arch alltypes.h
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 23:35:17 +0000 (19:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 23:35:17 +0000 (19:35 -0400)
commit2d3083e746cf314c16048875e919305b1018bf8b
tree75c9d485a26165f8d8960a3708083854a9edfcdd
parent7cc79d10afd43811a486fd5e9fcdf8e45ac599e0
move pthread types out of per-arch alltypes.h

policy has long been that these definitions are purely a function of
whether long/pointer is 32- or 64-bit, and that they are not allowed
to vary per-arch. move the definition to the shared alltypes.h.in
fragment, using integer constant expressions in terms of sizeof to
vary the array dimensions appropriately. I'm not sure whether this is
more or less ugly than using preprocessor conditionals and two sets of
definitions here, but either way is a lot less ugly than repeating the
same thing for every arch.
17 files changed:
arch/aarch64/bits/alltypes.h.in
arch/arm/bits/alltypes.h.in
arch/i386/bits/alltypes.h.in
arch/m68k/bits/alltypes.h.in
arch/microblaze/bits/alltypes.h.in
arch/mips/bits/alltypes.h.in
arch/mips64/bits/alltypes.h.in
arch/mipsn32/bits/alltypes.h.in
arch/or1k/bits/alltypes.h.in
arch/powerpc/bits/alltypes.h.in
arch/powerpc64/bits/alltypes.h.in
arch/riscv64/bits/alltypes.h.in
arch/s390x/bits/alltypes.h.in
arch/sh/bits/alltypes.h.in
arch/x32/bits/alltypes.h.in
arch/x86_64/bits/alltypes.h.in
include/alltypes.h.in