Tidy up use of white space so we have it after if/for/while and not after (

or before ) or padding at end of line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20773 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-02-22 11:22:44 +00:00
parent c5f49ccbcb
commit 0708409c1b
180 changed files with 2181 additions and 2156 deletions

View file

@ -1,28 +1,28 @@
/** Implementation of NSObject for GNUStep
Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
Date: August 1994
This file is part of the GNUstep Base Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
<title>NSObject class reference</title>
$Date$ $Revision$
*/
*/
#include "config.h"
#include "GNUstepBase/preface.h"
@ -167,7 +167,7 @@ static void GSLogZombie(id o, SEL sel)
/*
* Define a structure to hold information that is held locally
* (before the start) in each object.
*/
*/
typedef struct obj_layout_unpadded {
#if defined(REFCNT_LOCAL)
unsigned retained;
@ -874,7 +874,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
// See libgnustep-base-entry.m
extern void gnustep_base_socket_init(void);
gnustep_base_socket_init();
#else
#else
#ifdef SIGPIPE
/*
@ -917,7 +917,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
#endif
#endif
#endif
#ifdef __FreeBSD__
// Manipulate the FPU to add the exception mask. (Fixes SIGFPE
// problems on *BSD)
@ -980,7 +980,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
/**
* This is the basic method to create a new instance. It
* allocates a new instance of the receiver from the specified
* memory zone.
* memory zone.
* <p>
* Memory for an instance of the receiver is allocated; a
* pointer to this newly created instance is returned. All
@ -1032,7 +1032,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
* <p><code>
* NSObject *object = [NSObject new];
* </code></p>
* is exactly the same as
* is exactly the same as
* <p><code>
* NSObject *object = [[NSObject alloc] init];
* </code></p>
@ -1041,11 +1041,11 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
* methods are supposed to return a newly allocated and
* initialized instance, as would be generated by an
* <code>alloc</code> method followed by a corresponding
* <code>init...</code> method. Please note that if you are
* not using a garbage collector, this means that instances
* generated by the <code>new...</code> methods are not
* autoreleased, that is, you are responsible for releasing
* (autoreleasing) the instances yourself. So when you use
* <code>init...</code> method. Please note that if you are
* not using a garbage collector, this means that instances
* generated by the <code>new...</code> methods are not
* autoreleased, that is, you are responsible for releasing
* (autoreleasing) the instances yourself. So when you use
* <code>new</code> you typically do something like:
* </p>
* <p>
@ -1068,23 +1068,23 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
* </p>
* <p>
* <code>initWithName:</code>
* </p>
* </p>
* <p>
* it might be handy for you to have a class method
* it might be handy for you to have a class method
* </p>
* <p>
* <code>newWithName:</code>
* </p>
* </p>
* <p>
* which combines <code>alloc</code> and
* <code>initWithName:</code>. You would implement it as follows:
* </p>
* <p>
* <code>
* + (id) newWithName: (NSString *)aName
* {
* return [[self alloc] initWithName: aName];
* }
* <code>
* + (id) newWithName: (NSString *)aName
* {
* return [[self alloc] initWithName: aName];
* }
* </code>
* </p>
*/
@ -1162,9 +1162,9 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
* release/autorelease mechanism determines that an object is
* no longer needed (which happens when its retain count
* reaches 0), it will call the <code>dealloc</code> method
* to actually deallocate the object. This means that normally,
* you should not need to call <code>dealloc</code> directly as
* the gnustep base library automatically calls it for you when
* to actually deallocate the object. This means that normally,
* you should not need to call <code>dealloc</code> directly as
* the gnustep base library automatically calls it for you when
* the retain count of an object reaches 0.
* </p>
* <p>
@ -1292,7 +1292,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
proto_list; proto_list = proto_list->next)
{
unsigned int i;
for (i = 0; i < proto_list->count; i++)
{
/* xxx We should add conformsToProtocol to Protocol class. */
@ -1302,7 +1302,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
}
}
}
if ([self superclass])
{
return [[self superclass] conformsToProtocol: aProtocol];
@ -1376,7 +1376,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
return mth ? [NSMethodSignature signatureWithObjCTypes:mth->method_types]
: nil;
}
/**
* Returns the method signature describing how the receiver would handle
* a message with aSelector.
@ -1491,7 +1491,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
{
[NSException raise: NSInvalidArgumentException
format: @"%s(%s) does not recognize %s",
GSClassNameFromObject(self),
GSClassNameFromObject(self),
GSObjCIsInstance(self) ? "instance" : "class",
aSelector ? GSNameFromSelector(aSelector) : "(null)"];
}
@ -1597,7 +1597,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
* The default implementation returns self if the receiver is being
* sent <em>bycopy</em> and returns a proxy otherwise.<br />
* Subclasses may override this method to change this behavior,
* eg. to ensure that they are always copied.
* eg. to ensure that they are always copied.
*/
- (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder
{
@ -1773,7 +1773,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
if (aSelector == 0)
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
msg = get_imp(GSObjCClass(self), aSelector);
if (!msg)
{
@ -1798,12 +1798,12 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
if (aSelector == 0)
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
msg = get_imp(GSObjCClass(self), aSelector);
if (!msg)
{
[NSException raise: NSGenericException
format: @"invalid selector passed to %s",
format: @"invalid selector passed to %s",
GSNameFromSelector(_cmd)];
return nil;
}
@ -1826,7 +1826,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
if (aSelector == 0)
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
msg = get_imp(GSObjCClass(self), aSelector);
if (!msg)
{
@ -2123,7 +2123,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
{
[NSException raise: NSGenericException
format: @"%s(%s) does not recognize %s",
GSClassNameFromObject(self),
GSClassNameFromObject(self),
GSObjCIsInstance(self) ? "instance" : "class",
aSel ? GSNameFromSelector(aSel) : "(null)"];
return nil;
@ -2136,7 +2136,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
- (id) perform: (SEL)sel with: (id)anObject with: (id)anotherObject
{
return [self performSelector:sel withObject:anObject
return [self performSelector:sel withObject:anObject
withObject:anotherObject];
}
@ -2267,7 +2267,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
return ((struct objc_method_description *)
GSGetMethod((GSObjCIsInstance(self)
GSGetMethod((GSObjCIsInstance(self)
? GSObjCClass(self) : (Class)self),
aSel,
GSObjCIsInstance(self),
@ -2338,7 +2338,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
*/
- (id) read: (TypedStream*)aStream
{
// [super read: aStream];
// [super read: aStream];
return self;
}