Apply patch by Eric Wasylishen for OSX compatibility

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28471 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-08-19 07:04:21 +00:00
parent 0e2e4aa752
commit 25dd1c7962
2 changed files with 24 additions and 17 deletions

View file

@ -1,19 +1,26 @@
2009-08-19 Eric Wasylishen <ewasylishen@gmail.com>
* Source/Additions/GSObjCRuntime.m:
Behave consistently with MacOS-X when a getter or setter method
returns a type of data which is not supported by KVC.
2009-08-15 David Chisnall <theraven@gna.org>
* Source/NSObject:
- Tweaked NSObject to use atomic ops with LLVM as well as gcc (this
probably isn't actually needed)
- Fixed SIGFPE problem on FreeBSD using proper interfaces instead of
an asm hack.
* Removes various mframe things from being compiled when ffcall/libffi is
used (mframe.m, NSConnection.m, NSInvocation.m)
- Tweaked NSObject to use atomic ops with LLVM as well as gcc (this
probably isn't actually needed)
- Fixed SIGFPE problem on FreeBSD using proper interfaces instead of
an asm hack.
* Removes various mframe things from being compiled when ffcall/libffi
is used (mframe.m, NSConnection.m, NSInvocation.m)
* Turned a nested function in make_strings.m into a macro.
2009-08-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSData.m: Remove some redundant methods and add checks for
attempts to use a null pointer to set bytes in the data.
* Source/NSCharacterSet.m: Save mem with index set rather than bitmap set
* Source/NSCharacterSet.m: Save mem with index set rather than
bitmap set
2009-08-11 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -1841,14 +1841,14 @@ GSObjCGetVal(NSObject *self, const char *key, SEL sel,
}
else
{
[NSException raise: NSInvalidArgumentException
format: @"key-value get method unsupported struct"];
val = [self valueForUndefinedKey:
[NSString stringWithUTF8String: key]];
}
break;
default:
[NSException raise: NSInvalidArgumentException
format: @"key-value get method has unsupported type"];
val = [self valueForUndefinedKey:
[NSString stringWithUTF8String: key]];
}
return val;
}
@ -1897,8 +1897,8 @@ GSObjCSetVal(NSObject *self, const char *key, id val, SEL sel,
}
if (type == NULL)
{
[self setValue: val
forUndefinedKey: [NSString stringWithUTF8String: key]];
[self setValue: val forUndefinedKey:
[NSString stringWithUTF8String: key]];
}
else if ((val == nil || val == null) && *type != _C_ID && *type != _C_CLASS)
{
@ -2255,14 +2255,14 @@ GSObjCSetVal(NSObject *self, const char *key, id val, SEL sel,
}
else
{
[NSException raise: NSInvalidArgumentException
format: @"key-value set method unsupported struct"];
[self setValue: val forUndefinedKey:
[NSString stringWithUTF8String: key]];
}
break;
default:
[NSException raise: NSInvalidArgumentException
format: @"key-value set method has unsupported type"];
[self setValue: val forUndefinedKey:
[NSString stringWithUTF8String: key]];
}
}
}