[Libreoffice] Need a little help with the easyhack "Strip include guards in idl files"
ChrRossmanith at web.de
Sun Apr 3 12:29:23 PDT 2011
I've executed the modified strip-guards script in the clone directory,
not in a module subdirectory. Afterwards your pcregrep command (see
below in your first message) only found two guards not stripped:
I have not yet built the resulting code tree - but that sounds promising...
Am 27.03.2011 00:20, schrieb Julien Nabet:
> 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.
> I know very little of Perl, does anybody got an idea to avoid to
> process 3700 files by hand ?
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
More information about the LibreOffice