mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Changes from Frith-Macdonald, NSLock fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2791 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
722df94d6e
commit
fe472a3a71
20 changed files with 363 additions and 121 deletions
|
@ -54,10 +54,12 @@ static BOOL debug_textcoder = NO;
|
|||
at: (const void*) d
|
||||
withName: (NSString*) name;
|
||||
{
|
||||
assert(type);
|
||||
assert(*type != '@');
|
||||
assert(*type != '^');
|
||||
assert(*type != ':');
|
||||
if (!type)
|
||||
[NSException raise:NSInvalidArgumentException format:@"type is NULL"];
|
||||
|
||||
NSAssert(*type != '@', @"tried to encode an \"ObjC\" type");
|
||||
NSAssert(*type != '^', @"tried to encode an \"ObjC\" type");
|
||||
NSAssert(*type != ':', @"tried to encode an \"ObjC\" type");
|
||||
|
||||
if (!name || [name length] == 0)
|
||||
name = @"Anonymous";
|
||||
|
@ -191,11 +193,14 @@ if (debug_textcoder) \
|
|||
{
|
||||
char *tmpname;
|
||||
|
||||
assert(type);
|
||||
assert(*type != '@');
|
||||
assert(*type != '^');
|
||||
assert(*type != ':');
|
||||
assert (d);
|
||||
if (!type)
|
||||
[NSException raise:NSInvalidArgumentException format:@"type is NULL"];
|
||||
if (!d)
|
||||
[NSException raise:NSInvalidArgumentException format:@"d is NULL"];
|
||||
|
||||
NSAssert(*type != '@', @"tried to decode an \"ObjC\" type");
|
||||
NSAssert(*type != '^', @"tried to decode an \"ObjC\" type");
|
||||
NSAssert(*type != ':', @"tried to decode an \"ObjC\" type");
|
||||
|
||||
switch (*type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue