mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
8c277a62b6
commit
8131ba831a
1 changed files with 20 additions and 6 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue