Updates for 10.5 API changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-02-23 20:42:32 +00:00
parent 0b528e776c
commit 30cf8bf35b
138 changed files with 2094 additions and 1536 deletions

View file

@ -42,8 +42,6 @@
#include <stdio.h>
static NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
#define _e_info (((id*)_reserved)[0])
#define _e_stack (((id*)_reserved)[1])
@ -60,8 +58,8 @@ typedef struct { @defs(NSThread) } *TInfo;
- (NSString*) description;
- (NSEnumerator*) enumerator;
- (NSMutableArray*) frames;
- (id) frameAt: (unsigned)index;
- (unsigned) frameCount;
- (id) frameAt: (NSUInteger)index;
- (NSUInteger) frameCount;
- (id) initWithAddresses: (NSArray*)stack;
- (NSEnumerator*) reverseEnumerator;
@ -152,8 +150,8 @@ GSPrivateBaseAddress(void *addr, void **base)
address: (void*)address
file: (NSString*)file
function: (NSString*)function
line: (int)lineNo;
- (int) lineNumber;
line: (NSInteger)lineNo;
- (NSInteger) lineNumber;
- (GSBinaryFileInfo*) module;
@end
@ -216,7 +214,7 @@ GSPrivateBaseAddress(void *addr, void **base)
address: (void*)address
file: (NSString*)file
function: (NSString*)function
line: (int)lineNo
line: (NSInteger)lineNo
{
_module = RETAIN(module);
_address = address;
@ -227,7 +225,7 @@ GSPrivateBaseAddress(void *addr, void **base)
return self;
}
- (int) lineNumber
- (NSInteger) lineNumber
{
return _lineNo;
}
@ -552,12 +550,12 @@ GSListModules()
return [frames objectEnumerator];
}
- (id) frameAt: (unsigned)index
- (id) frameAt: (NSUInteger)index
{
return [frames objectAtIndex: index];
}
- (unsigned) frameCount
- (NSUInteger) frameCount
{
return [frames count];
}
@ -724,6 +722,10 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception)
_terminate();
}
static NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler
= _NSFoundationUncaughtExceptionHandler;
#if defined(_NATIVE_OBJC_EXCEPTIONS) && defined(HAVE_UNEXPECTED)
static void
callUncaughtHandler(id value)
{
@ -733,6 +735,8 @@ callUncaughtHandler(id value)
}
_NSFoundationUncaughtExceptionHandler(value);
}
#endif
@implementation NSException