stdint.h: rearrange declarations into separate files
commit0d2a1dea27835ac500edf5643b5832e162a88171
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 27 May 2009 09:32:06 +0000 (27 11:32 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 27 May 2009 09:32:06 +0000 (27 11:32 +0200)
tree9b85cc4b3871cca2752f9f3df1f690b72a335f6f
parent543d5281dd1befca1f714c0827196d292dc7b63d
stdint.h: rearrange declarations into separate files

The current machine/stdint.h situation is a mess.  It declares only the
__versions of stdint integers, but also defines limit and constant
macros.  Furthermore it also declares non-integer types.

Break out integer limit and constant macros into their own machine/
headers and include all of these headers from <stdint.h>, but not from
machine/stdint.h.  The declaration of integer_t types still happens in
main stdint.h.

This is slightly based on NetBSD's way of doing it.
include/stdint.h
sys/cpu/amd64/include/int_const.h [new file with mode: 0644]
sys/cpu/amd64/include/int_limits.h [copied from sys/cpu/amd64/include/stdint.h with 58% similarity]
sys/cpu/amd64/include/stdint.h
sys/cpu/i386/include/int_const.h [new file with mode: 0644]
sys/cpu/i386/include/int_limits.h [copied from sys/cpu/i386/include/stdint.h with 57% similarity]
sys/cpu/i386/include/stdint.h