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: [plugins] checking the compiler version


On Wed, Apr 8, 2009 at 08:36, Ian Lance Taylor <iant@google.com> wrote:

> #ifndef PLUGIN_PROVIDES_VERSION_CHECK
> bool
> plugin_check_version(const char* version)
> {
> Âreturn strcmp(version, PLUGIN_VERSION) == 0;
> }
> #endif
>
> and then somehow arrange for that to be the callback for the version
> check.

I agree.  This sounds like a good first approach.  We can refine this
later, if needed.


Diego.


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