This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: prototypes for functions with no arguments


Matt Kraai wrote:-

> Howdy,
> 
> I'm not certain, but it appears that in K+R compatible parts of
> the compiler, declarations of functions with no arguments should
> use `PARAMS ((void))', and definitions should use `()'.  Using
> `(void)' in either circumstance is not correct.
> 
> Is this correct?  Should it be documented in README.Portability,
> or is the current documentation sufficient?

Yes it's correct.  Feel free to update the document.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]