DragonFly kernel List (threaded) for 2008-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Type questions
Michael Neumann wrote:
Hi,
I'd like to return booleans from some kernel functions. Is there a
"boolean_t" in Dragonfly and is it possible to use "true" and "false"?
Or do I have to use type _Bool and #include <stdbool.h>? Stuff like that
is so common that in case of the kernel, I'd suggest to make it the
default (like NULL).
We do have boolean_t (which resolves to int).
I see uint32_t and u_int32_t declarations. What's the difference and
which one is recommended?
No difference, the standard types (uint32_t etc.) are preferred.
Is it recommended or not to use C99? For example:
for (int i=...)
Hmm, personally I wouldn't mind in this case, but others may have
different opinions.
Sascha
--
http://yoyodyne.ath.cx
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]