Hello All

I would suppose that the preprocessor (ie libcpp) might be enhanced to use plugins. I can see several scenarii for them:

1. a plugin could enhance the way #include directives are processed

2. a plugin could add additional builtin macros, like __COUNTER__, which would be specific to the plugin.

3. a plugin could add extra CPP directives (like #ident)

What do you think? Probably 1 is harder to implement than 2 or 3, but I am not very familiar with libcpp/

The http://gcc.gnu.org/ml/gcc/2009-07/msg00009.html mail suggested me the plugins could be useful in the preprocessor.

Currently, there is no plugin specific code inside libcpp/

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} ***

Reply via email to