Extending the core language via a gcc plugin possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
is it possible to add a private extension to the
core language (C/C++) by writing a gcc plugin?

The extension in mind is something like this
[variable_definitions;]

Later I want this be possible also inside statement headers, for example
for ([double d = 1.0; bool f = false;] size_t i = 0; i < vec.size(); ++i)
  ...

The scope of the so-defined variables shall be the same scope they are in,
ie. in the for-loop case just the scope of the for-loop itself, much like the case with i.

Any way?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux