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, 24 Feb 2022 17:56:44 +0000 (09:56 -0800)
commit03d4945fe91bf3da09e58ae9751c4fc6022b2a65
treeb4835d9051667eeaff4c8102aa06a8fe175a4258
parentda1b79bb39a8d1a7e8cad6a68b7aa893946508fa
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 defintions, 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]