tidy indentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-01-07 21:39:35 +00:00
parent 8024b3a84b
commit 4f4ab32e92

View file

@ -757,7 +757,7 @@ static BOOL useTinyStrings;
static int tinyStrings = 0; static int tinyStrings = 0;
static void logTinyStringCount(void) static void logTinyStringCount(void)
{ {
fprintf(stderr, "%d tiny strings created\n", tinyStrings); fprintf(stderr, "%d tiny strings created\n", tinyStrings);
} }
#endif #endif
@implementation GSTinyString @implementation GSTinyString
@ -3752,12 +3752,14 @@ agree, create a new GSCInlineString otherwise.
{ {
if (!_flags.wide) if (!_flags.wide)
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} }
if (_flags.owned) if (_flags.owned)
{ {
@ -3776,12 +3778,14 @@ agree, create a new GSCInlineString otherwise.
} }
if (!_flags.wide) if (!_flags.wide)
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} }
return [super substringWithRange: aRange]; return [super substringWithRange: aRange];
} }
@ -4087,12 +4091,14 @@ agree, create a new GSCInlineString otherwise.
{ {
if (!_flags.wide) if (!_flags.wide)
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} }
if (_flags.owned) if (_flags.owned)
{ {
@ -4106,12 +4112,14 @@ agree, create a new GSCInlineString otherwise.
{ {
if (!_flags.wide) if (!_flags.wide)
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} }
if (_flags.owned) if (_flags.owned)
{ {
@ -5119,19 +5127,22 @@ NSAssert(_flags.owned == 1 && _zone != 0, NSInternalInconsistencyException);
} }
else else
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} else
{ {
GSCInlineString *o; GSCInlineString *o;
o = [newCInline(aRange.length, [self zone]) autorelease]; o = [newCInline(aRange.length, [self zone]) autorelease];
memcpy(o->_contents.c, _contents.c + aRange.location, aRange.length); memcpy(o->_contents.c, _contents.c + aRange.location, aRange.length);
return o; return o;
}
} }
} }
@ -5154,19 +5165,22 @@ NSAssert(_flags.owned == 1 && _zone != 0, NSInternalInconsistencyException);
} }
else else
{ {
id tinyString = createTinyString((char*)_contents.c + aRange.location, aRange.length); id tinyString;
tinyString = createTinyString((char*)_contents.c + aRange.location,
aRange.length);
if (tinyString) if (tinyString)
{ {
return tinyString; return tinyString;
} }
} else
{ {
GSCInlineString *o; GSCInlineString *o;
o = [newCInline(aRange.length, [self zone]) autorelease]; o = [newCInline(aRange.length, [self zone]) autorelease];
memcpy(o->_contents.c, _contents.c + aRange.location, aRange.length); memcpy(o->_contents.c, _contents.c + aRange.location, aRange.length);
return o; return o;
}
} }
} }