Re: [C++] anonymous struct linkage

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

 



On 23/11/12 08:57, LAMOME Julien CS-SI wrote:
> Yours differents solutions work, but I would prefer to use an option to have the old behavior. Because, I have 163 files with anonymous strut to modify. And, each file require special attention because struct are linked, or not, with a COMMON, and COMMON are not necessary include in source, etc.
> So, if it isn't possible to use an option, I will have a lot of work now. Else I could modify  progressively.

This will _probably_ perform it for you:
 sed -i 's/^struct/extern "C" struct/' *.cpp

There are a number of assumptions with that, so YMMV, test it, tweak if
needed, etc.



[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