Discussion:
kernel+userland will become c99?
Mayuresh Kathe
2014-06-25 16:40:17 UTC
Permalink
hello,

i read that all new code in the netbsd tree "has" to be c99.

is that really a mandatory condition?
if yes, would that mean, over a period of time, all of the
netbsd userland would be converted to c99?

and would the kernel be brought up to that same standard?
if yes, wouldn't it be quite a painful task?

~mayuresh
Matt Thomas
2014-06-25 17:30:18 UTC
Permalink
Post by Mayuresh Kathe
hello,
i read that all new code in the netbsd tree "has" to be c99.
has to be compilable with -std=gnu99 or -std=c99
Post by Mayuresh Kathe
is that really a mandatory condition?
if yes, would that mean, over a period of time, all of the
netbsd userland would be converted to c99?
We are moving in that direction. Mostly it means that everything
be C89 with function prototypes.
Post by Mayuresh Kathe
and would the kernel be brought up to that same standard?
if yes, wouldn't it be quite a painful task?
The kernel is already compiled as C99 so every function is
prototyped. We use structure initializers a lot.

Loading...