DragonFly BSD
DragonFly submit List (threaded) for 2004-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: patch to un-K&R-ify libkern


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 2004 11:53:50 +0100

After another discussion with Jeroen on IRC and some more spec reading
I want to give the following summary:
- int A() {return 0;} is valid ISO C99 and specifies a function without
  specifying a prototype. Therefore the e.g. the argument passing is _not_
  enforced by the compiler. Although it is my believe that this is stupid.
- int A(void) {return 0;} is a valid definition and protype for A. This
  means correct enforcement of the number of arguments.

Now I confess that I was wrong and the style(9) change is correct.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]