Tidy include/import lines

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23051 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-06-12 14:47:51 +00:00
parent eb791c7d94
commit d69c67bc5b

View file

@ -349,12 +349,26 @@ main(int argc, char** argv, char **env)
}
}
/* repair indentation
*/
while (pos-- > 0)
{
[line replaceCharactersInRange: NSMakeRange(0, 0)
withString: @" "];
if ([line hasPrefix: @"#"])
{
[line replaceString: @"#import" withString: @"#include"];
if ([line hasPrefix: @"#include"])
{
[line replaceString: @"< " withString: @"<"];
[line replaceString: @" >" withString: @">"];
[line replaceString: @"> " withString: @">"];
[line replaceString: @" / " withString: @"/"];
}
}
else
{
/* repair indentation
*/
while (pos-- > 0)
{
[line replaceCharactersInRange: NSMakeRange(0, 0)
withString: @" "];
}
}
[lines replaceObjectAtIndex: j withObject: line];