
John Maddock wrote:
Brad King wrote:
I should add more definitions like __GCCXML_GNUC__ __GCCXML_GNUC_MINOR__ __GCCXML_GNUC_PATCHLEVEL__ so that the true GCC parser version is known. Sure, it's your tool you can call them anything you want :-)
Okay, I've added these definitions to GCC-XML. It will be up to pyste to define them properly when invoking an older GCC-XML version that does not have this feature. Below is a clip from the GCC-XML man page after these changes that describes the definitions provided beyond the simulated compiler. Please update gcc_xml.hpp to use these definitions to switch among GCC parser versions. Thanks, -Brad The following extra C preprocessor definitions are provided: -D__GCCXML__=MMmmpp MM, mm, and pp are the major, minor, and patch versions of GCC-XML. This preprocessor symbol identifies GCC-XML to the source code as it is preprocessed. It can be used to enable GCC-XML-specific information. -D__GCCXML_GNUC__=3 Defined to internal GCC parser major version. -D__GCCXML_GNUC_MINOR__=3 Defined to internal GCC parser minor version. -D__GCCXML_GNUC_PATCHLEVEL__=2 Defined to internal GCC parser patchlevel.