tools/nolibc/std: move the standard type definitions to std.h
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:15 +0000 (17:23 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:33 +0000 (17:05 -0700)
commit967cce191f50090d5cbd3841ee2bbb7835afeae2
treed3ba18552f94d51995b95f61a3b247be9a0acbaa
parent930c4acc064edacd2c9d5bec1a66acacb2fb2589
tools/nolibc/std: move the standard type definitions to std.h

The ordering of includes and definitions for now is a bit of a mess, as
for example asm/signal.h is included after int definitions, but plenty of
structures are defined later as they rely on other includes.

Let's move the standard type definitions to a dedicated file that is
included first. We also move NULL there. This way all other includes
are aware of it, and we can bring asm/signal.h back to the top of the
file.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/nolibc.h
tools/include/nolibc/std.h [new file with mode: 0644]