mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-02 04:41:05 +00:00
Minor tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27583 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b830b55dee
commit
b06e718ad0
3 changed files with 4 additions and 4 deletions
|
@ -52,6 +52,6 @@ int main()
|
||||||
NSSetUncaughtExceptionHandler(handler);
|
NSSetUncaughtExceptionHandler(handler);
|
||||||
[NSException raise: NSGenericException format: @"an exception"];
|
[NSException raise: NSGenericException format: @"an exception"];
|
||||||
|
|
||||||
DESTROY(arp);
|
IF_NO_GC(DESTROY(arp));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ int counter;
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
NSLog(@"%@ for thread %d\n", localException, ident);
|
NSLog(@"%@ for thread %d\n", localException, ident);
|
||||||
NS_ENDHANDLER
|
NS_ENDHANDLER
|
||||||
DESTROY(pool);
|
IF_NO_GC(DESTROY(pool));
|
||||||
counter--;
|
counter--;
|
||||||
[NSThread exit];
|
[NSThread exit];
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,6 @@ int main()
|
||||||
fprintf(stderr, "There's a runaway exception! Something is wrong!\n");
|
fprintf(stderr, "There's a runaway exception! Something is wrong!\n");
|
||||||
NS_ENDHANDLER
|
NS_ENDHANDLER
|
||||||
fclose(file);
|
fclose(file);
|
||||||
DESTROY(pool);
|
IF_NO_GC(DESTROY(pool));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@ int main(int argc, char **argv, char **env)
|
||||||
{
|
{
|
||||||
NSLog(@"ERROR ... retain count is %d, expected 1", [o retainCount]);
|
NSLog(@"ERROR ... retain count is %d, expected 1", [o retainCount]);
|
||||||
}
|
}
|
||||||
DESTROY(arp);
|
IF_NO_GC(DESTROY(arp));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue