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: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2004 11:07:45 -0800 (PST)

:There are two different things here. For prototyps, you are absolutely
:right. But this was about function declarations e.g.
:void
:empty_loop()
:{
:}
:or so. and in this case the void is clearly unnecessary, if my understanding
:of the ISO C99 specs is correct. The "(void)" is only needed for the
:parameter list and therefore for protyps and function types. 
:
:Joerg

    They might have done something funny in the C99 spec, but as far as I
    know you want the void in there or it's not an ANSI function definition.
    It doesn't really matter for void args, I guess, but we should be 
    consistent and generally that means using the void fubar(void) form
    in our codebase.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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