This is the mail archive of the gcc-patches@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] |
On Tue, Nov 19, 2002 at 04:13:31PM -0800, Geoff Keating wrote: > The way that ISO C handles this is that you write > > inline int foo(void) { return 1; } // in header > extern int foo(void); // in .c > > and the compiler's supposed to produce an out-of-line copy of the > function. That is indeed a better solution. Doesn't help with the existing GCC extension though. :-( r~
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |