mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
formatting/coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35574 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b9b63476ef
commit
8ec0deff44
8 changed files with 871 additions and 771 deletions
|
@ -218,65 +218,73 @@ void
|
|||
|
||||
// Sorting functions that select the adequate algorithms
|
||||
void
|
||||
GSSortUnstable(id* buffer, NSRange range, id descriptorOrComparator, GSComparisonType type, void* context)
|
||||
GSSortUnstable(id* buffer, NSRange range, id descriptorOrComparator,
|
||||
GSComparisonType type, void* context)
|
||||
{
|
||||
if (NULL != _GSSortUnstable)
|
||||
{
|
||||
_GSSortUnstable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortUnstable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
else if (NULL != _GSSortStable)
|
||||
{
|
||||
_GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
else
|
||||
{
|
||||
[NSException raise: @"NSInternalInconsistencyException"
|
||||
format: @"The GNUstep-base library was compiled without sorting support."];
|
||||
}
|
||||
{
|
||||
[NSException raise: @"NSInternalInconsistencyException" format:
|
||||
@"The GNUstep-base library was compiled without sorting support."];
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
GSSortStable(id* buffer, NSRange range, id descriptorOrComparator, GSComparisonType type, void* context)
|
||||
GSSortStable(id* buffer, NSRange range, id descriptorOrComparator,
|
||||
GSComparisonType type, void* context)
|
||||
{
|
||||
if (NULL != _GSSortStable)
|
||||
{
|
||||
_GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
else
|
||||
{
|
||||
[NSException raise: @"NSInternalInconsistencyException"
|
||||
format: @"The GNUstep-base library was compiled without a stable sorting algorithm."];
|
||||
}
|
||||
{
|
||||
[NSException raise: @"NSInternalInconsistencyException" format:
|
||||
@"The GNUstep-base library was compiled without a"
|
||||
@" stable sorting algorithm."];
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
GSSortStableConcurrent(id* buffer, NSRange range, id descriptorOrComparator, GSComparisonType type, void* context)
|
||||
GSSortStableConcurrent(id* buffer, NSRange range, id descriptorOrComparator,
|
||||
GSComparisonType type, void* context)
|
||||
{
|
||||
if (NULL != _GSSortStableConcurrent)
|
||||
{
|
||||
_GSSortStableConcurrent(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortStableConcurrent(buffer, range, descriptorOrComparator,
|
||||
type, context);
|
||||
}
|
||||
else
|
||||
{
|
||||
GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
GSSortStable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
GSSortUnstableConcurrent(id* buffer, NSRange range, id descriptorOrComparator, GSComparisonType type, void* context)
|
||||
GSSortUnstableConcurrent(id* buffer, NSRange range, id descriptorOrComparator,
|
||||
GSComparisonType type, void* context)
|
||||
{
|
||||
if (NULL != _GSSortUnstableConcurrent)
|
||||
{
|
||||
_GSSortUnstableConcurrent(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortUnstableConcurrent(buffer, range, descriptorOrComparator,
|
||||
type, context);
|
||||
}
|
||||
else if (NULL != _GSSortStableConcurrent)
|
||||
{
|
||||
_GSSortStableConcurrent(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
_GSSortStableConcurrent(buffer, range, descriptorOrComparator,
|
||||
type, context);
|
||||
}
|
||||
else
|
||||
{
|
||||
GSSortUnstable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
{
|
||||
GSSortUnstable(buffer, range, descriptorOrComparator, type, context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -401,6 +409,4 @@ SortRange(id *objects, NSRange range, id *descriptors,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue