Comment fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@184 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-03-23 03:47:56 +00:00
parent 500f445a7e
commit 19ddae75b2
6 changed files with 139 additions and 101 deletions

View file

@ -1,9 +1,6 @@
/* Interface for NSAutoreleasePool for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
Typed by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: August 1994
This file is part of the GNU Objective C Class Library.
This library is free software; you can redistribute it and/or

View file

@ -1,17 +1,25 @@
/* Interface for NSBundle class
*
* Copyright (C) 1993 The Board of Trustees of
* The Leland Stanford Junior University. All Rights Reserved.
*
* Authors: Adam Fedor, Scott Francis and Paul Kunz
*
* This file is part of an Objective-C class library for X/Motif
*
* NSBundle.h,v 1.9 1993/10/20 00:44:51 pfkeb Exp
*/
/* Interface for NSBundle for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
This file is part of the GNU Objective C Class Library.
#ifndef _NS_Bundle_h_
#define _NS_Bundle_h_
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NSBundle_h_OBJECTS_INCLUDE
#define __NSBundle_h_OBJECTS_INCLUDE
#include <foundation/NSObject.h>
@ -55,4 +63,4 @@
@end
#endif /* _NS_Bundle_h_ */
#endif /* __NSBundle_h_OBJECTS_INCLUDE */

View file

@ -1,26 +1,38 @@
/*
NSException - exception handler
Copyright (C) 1995, Adam Fedor
$Id$
*/
/* Interface for NSArray for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
This file is part of the GNU Objective C Class Library.
#ifndef _NSException_include_
#define _NSException_include_
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NSException_h_OBJECTS_INCLUDE
#define __NSException_h_OBJECTS_INCLUDE
#include <foundation/NSObject.h>
#include <setjmp.h>
//#include <stdarg.h>
#include <stdarg.h>
@class NSString;
@class NSDictionary;
@interface NSException : NSObject <NSCoding, NSCopying>
{
NSString *e_name;
NSString *e_reason;
NSDictionary *e_info;
NSString *e_name;
NSString *e_reason;
NSDictionary *e_info;
}
+ (NSException *)exceptionWithName:(NSString *)name
@ -106,4 +118,4 @@ extern void _NSRemoveHandler( NSHandler *handler );
#define NS_VOIDRETURN do { _NSRemoveHandler(&NSLocalHandler); \
return; } while (0)
#endif /* _NSException_include_ */
#endif /* __NSException_h_OBJECTS_INCLUDE */

View file

@ -1,11 +1,25 @@
/* From
* (Preliminary Documentation) Copyright (c) 1994 by NeXT Computer, Inc.
* All Rights Reserved.
*
* NSGeometry.h
*/
#ifndef __NSGeometry_INCLUDE__
#define __NSGeometry_INCLUDE__
/* Interface for NSGeometry routines for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
This file is part of the GNU Objective C Class 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NSGeometry_h_OBJECTS_INCLUDE
#define __NSGeometry_h_OBJECTS_INCLUDE
#include <objc/objc.h>
@ -38,7 +52,7 @@ extern NSPoint NSMakePoint(float x, float y);
extern NSSize NSMakeSize(float w, float h);
extern NSRect NSMakeRect(float x, float y, float w, float h);
/* Get ractangel coordinates */
/* Get rectangle coordinates */
extern float NSMaxX(NSRect aRect);
extern float NSMaxY(NSRect aRect);
extern float NSMidX(NSRect aRect);
@ -71,4 +85,4 @@ extern BOOL NSContainsRect(NSRect aRect, NSRect bRect);
extern BOOL NSIntersectsRect (NSRect aRect, NSRect bRect);
#endif /* _NSGeometry_include_ */
#endif /* __NSGeometry_h_OBJECTS_INCLUDE */

View file

@ -1,9 +1,6 @@
/* Interface for NSObject for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
Typed by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: August 1994
This file is part of the GNU Objective C Class Library.
This library is free software; you can redistribute it and/or
@ -26,7 +23,8 @@
#include <foundation/NSObject.h>
typedef struct _NSRange {
typedef struct _NSRange
{
unsigned int location;
unsigned int length;
} NSRange;

View file

@ -1,12 +1,25 @@
/*
NSValue.h - Object encapsulation for C types.
Copyright 1994 NeXT, Inc. All rights reserved.
/* Interface for NSArray for GNUStep
Copyright (C) 1994 NeXT Computer, Inc.
This file is part of the GNU Objective C Class 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NSValue_INCLUDE_GNU_
#define __NSValue_INCLUDE_GNU_
#ifndef __NSValue_h_OBJECTS_INCLUDE
#define __NSValue_h_OBJECTS_INCLUDE
#include <foundation/NSObject.h>
#include <foundation/NSGeometry.h>
@ -14,34 +27,29 @@
@class NSString;
@interface NSValue : NSObject <NSCopying, NSCoding>
{
void *_dataptr;
NSString *objctype;
}
// Allocating and Initializing
+ (NSValue *)value:(const void *)value
withObjCType:(const char *)type;
+ (NSValue *)valueWithNonretainedObject: (id)anObject;
+ (NSValue *)valueWithPoint:(NSPoint)point;
+ (NSValue *)valueWithPointer:(const void *)pointer;
+ (NSValue *)valueWithRect:(NSRect)rect;
+ (NSValue *)valueWithSize:(NSSize)size;
+ (NSValue*) value: (const void*)value withObjCType: (const char*)type;
+ (NSValue*) valueWithNonretainedObject: (id)anObject;
+ (NSValue*) valueWithPoint: (NSPoint)point;
+ (NSValue*) valueWithPointer: (const void*)pointer;
+ (NSValue*) valueWithRect: (NSRect)rect;
+ (NSValue*) valueWithSize: (NSSize)size;
/* Note: not in OpenStep specification */
- initValue:(const void *)value
withObjCType:(const char *)type;
- initValue: (const void*)value
withObjCType: (const char*)type;
// Accessing Data
- (void)getValue:(void *)value;
- (const char *)objCType;
- (id)nonretainedObjectValue;
- (void *)pointerValue;
- (NSRect)rectValue;
- (NSSize)sizeValue;
- (NSPoint)pointValue;
- (void) getValue: (void*)value;
- (const char*) objCType;
- (id) nonretainedObjectValue;
- (void*) pointerValue;
- (NSRect) rectValue;
- (NSSize) sizeValue;
- (NSPoint) pointValue;
@end
@ -51,38 +59,39 @@
// Allocating and Initializing
+ (NSNumber *)numberWithBool:(BOOL)value;
+ (NSNumber *)numberWithChar:(char)value;
+ (NSNumber *)numberWithDouble:(double)value;
+ (NSNumber *)numberWithFloat:(float)value;
+ (NSNumber *)numberWithInt:(int)value;
+ (NSNumber *)numberWithLong:(long)value;
+ (NSNumber *)numberWithLongLong:(long long)value;
+ (NSNumber *)numberWithShort:(short)value;
+ (NSNumber *)numberWithUnsignedChar:(unsigned char)value;
+ (NSNumber *)numberWithUnsignedInt:(unsigned int)value;
+ (NSNumber *)numberWithUnsignedLong:(unsigned long)value;
+ (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value;
+ (NSNumber *)numberWithUnsignedShort:(unsigned short)value;
+ (NSNumber*) numberWithBool: (BOOL)value;
+ (NSNumber*) numberWithChar: (char)value;
+ (NSNumber*) numberWithDouble: (double)value;
+ (NSNumber*) numberWithFloat: (float)value;
+ (NSNumber*) numberWithInt: (int)value;
+ (NSNumber*) numberWithLong: (long)value;
+ (NSNumber*) numberWithLongLong: (long long)value;
+ (NSNumber*) numberWithShort: (short)value;
+ (NSNumber*) numberWithUnsignedChar: (unsigned char)value;
+ (NSNumber*) numberWithUnsignedInt: (unsigned int)value;
+ (NSNumber*) numberWithUnsignedLong: (unsigned long)value;
+ (NSNumber*) numberWithUnsignedLongLong: (unsigned long long)value;
+ (NSNumber*) numberWithUnsignedShort: (unsigned short)value;
// Accessing Data
- (BOOL)boolValue;
- (char)charValue;
- (double)doubleValue;
- (float)floatValue;
- (int)intValue;
- (long long)longLongValue;
- (long)longValue;
- (short)shortValue;
- (NSString *)stringValue;
- (unsigned char)unsignedCharValue;
- (unsigned int)unsignedIntValue;
- (unsigned long long)unsignedLongLongValue;
- (unsigned long)unsignedLongValue;
- (unsigned short)unsignedShortValue;
- (BOOL) boolValue;
- (char) charValue;
- (double) doubleValue;
- (float) floatValue;
- (int) intValue;
- (long long) longLongValue;
- (long) longValue;
- (short) shortValue;
- (NSString*) stringValue;
- (unsigned char) unsignedCharValue;
- (unsigned int) unsignedIntValue;
- (unsigned long long) unsignedLongLongValue;
- (unsigned long) unsignedLongValue;
- (unsigned short) unsignedShortValue;
- (NSComparisonResult)compare:(NSNumber *)otherNumber;
- (NSComparisonResult) compare: (NSNumber*)otherNumber;
@end
#endif
#endif /* __NSValue_h_OBJECTS_INCLUDE */