Re: Function typedefs have any use?

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

 



Gabriel Dos Reis wrote:

But, yes, you can't use it to *define* it.  Think about how you'd
introduce the function parameters.

Right, so it's kind of pointless then, seeing as you have have to repeat the entire function prototype when you define it. It seems that it would be logical to support defining the function and only supplying the parameter names, given that their types are already known from it being forward-declared, but C does not have that ability. Too bad :-)

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux