[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ptrdiff_t in the kernel
dyoung%pobox.com@localhost (David Young) writes:
>I would prefer for this to suffice both for the kernel and userland:
> #include <stdbool.h> /* for bool */
> #include <stddef.h> /* for size_t */
I bet that most places would need something like:
#if defined(_KERNEL) || defined(_STANDALONE)
because the kernel needs a lot more types than provided by the
standard C environment.
If you want to make kernel code use standard C headers, and I think
that's a good idea, then you have to attack a lot more code.
Providing only stdbool.h and stddef.h in the kernel doesn't help,
it just makes things ... different.
Main Index |
Thread Index |