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]

Re: PATCH to libiberty: Move to the intersection of C90 an C++


Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

> | Well, if we really can't use inline keyword just in hashtab.c,
> | I think best would be to use a macro.
> | 
> | #define htab_size(htab) ((htab)->size)
> | 
> | size_t
> | (htab_size) (htab_t htab)
> | {
> |   return htab_size (htab);
> | }
> | 
> | and similarly for htab_elements.
> 
> Ian, I guess that suggestion is OK with you?

Yes, that would be fine with me, although I don't know how important
this kind of performance thing is.

Ian


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