Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Sorry,

Please move my last e-mail to /dev/null...only .idl files were changed

Christina

Am 27.03.2011 00:20, schrieb Julien Nabet:
Hello,


Concerning the easyhack "Strip include guards in idl files", I pushed 2 patches for the directory "ure/udkapi".

For the first patch I only used the strip-guards script with just a change to apply for idl + remove of the "includes" block between the 2 final "Find".

Then to check it was ok, i used this command to search ifndef line followed by include line in idl files :
find . -name "*.idl"|xargs pcregrep -M 'ifndef.*\n.*include'

pcregrep is multiline grep (available for Debian, I don't know for the other Linux distribs, MacOs or Windows).

There were few to process manually so I did it and pushed a second patch.


Then I took a look at the directory "ure/offapi". There are about 3700 files and the strip-guards script lets a lot (more than 3000!) of "#ifndef" with "#include".( I don't know why, a pb of Unix/Dos end-of-line perhaps ?)
This time it's too much to do it manually.
Some idea to improve the strip-guards script ?


BTW I saw there were idl files in some "test" or "qa" directories of ure but I don't think they could cause pb.

Julien.





I know very little of Perl, does anybody got an idea to avoid to process 3700 files by hand ?

Julien.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.