This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc version against which a plugin is compiled - documentation?
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 09 Oct 2009 16:04:49 +0200
- Subject: gcc version against which a plugin is compiled - documentation?
Hello All,
Perhaps the plugin documentation, i.e.
http://gcc.gnu.org/onlinedocs/gccint/Plugins.html#Plugins should say in
section 23.2.2 plugin initialization something like
When compiling a plugin, the version of the GCC API for which the
plugin is compiled is available numerically in header file bversion.h
thru BUILDING_GCC_MAJOR BUILDING_GCC_MINOR BUILDING_GCC_VERSION macro
and as string information in header file plugin-version.h
My English is bad, and the details might be wrong or missing, so I am
not proposing a patch to plugins.texi yet.
But I feel such hints should appear in the documentation.
Comments are welcome.
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***