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: plugin event for C/C++ declarations


On 4/27/10 11:54 , Richard Guenther wrote:

> Yes, preferably not as a function but a global variable directly.

Ugh, please no more global variables.

> static inline int invoke_plugin_callbacks(...)
> { if (plugin_enabled_p ()) return invoke_plugin_callbacks_1 (...);
>   else reuturn ???;
>  }

return PLUGEVT_NO_CALLBACK would be.  The return value is never checked,
currently.  We could just hide that in plugin.c


Diego.


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