mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cf0e40cddc
commit
47bb41343b
2 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-01-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/autogsdoc.m: Fixup bug in html relocation code ... was
|
||||
failing to adjust string length variable correctly.
|
||||
|
||||
2002-01-03 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/NSString.h: Extern constant string class
|
||||
|
|
|
@ -351,6 +351,7 @@ main(int argc, char **argv, char **env)
|
|||
BOOL showDependencies = NO;
|
||||
BOOL autoIndex = NO;
|
||||
BOOL modifiedRefs = NO;
|
||||
BOOL verbose = NO;
|
||||
NSDate *rDate = nil;
|
||||
NSMutableArray *files = nil;
|
||||
NSMutableArray *hFiles = nil;
|
||||
|
@ -376,6 +377,7 @@ main(int argc, char **argv, char **env)
|
|||
nil]];
|
||||
|
||||
autoIndex = [defs boolForKey: @"AutoIndex"];
|
||||
verbose = [defs boolForKey: @"Verbose"];
|
||||
ignoreDependencies = [defs boolForKey: @"IgnoreDependencies"];
|
||||
showDependencies = [defs boolForKey: @"ShowDependencies"];
|
||||
if (ignoreDependencies == YES)
|
||||
|
@ -1263,9 +1265,18 @@ main(int argc, char **argv, char **env)
|
|||
inUnit: unit
|
||||
isRef: YES];
|
||||
}
|
||||
if (verbose == YES)
|
||||
{
|
||||
NSLog(@"Replace %@ with %@",
|
||||
[s substringWithRange: replace],
|
||||
repstr ? repstr : @"self");
|
||||
}
|
||||
if (repstr != nil)
|
||||
{
|
||||
p += ([repstr length] - replace.length);
|
||||
int offset = [repstr length] - replace.length;
|
||||
|
||||
p += offset;
|
||||
l += offset;
|
||||
[s replaceCharactersInRange: replace withString: repstr];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue