- Various very small optimizations.

- Tells the user about unhandled exceptions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Lyndon Tremblay 2000-09-26 11:45:32 +00:00
parent 8b6e48953b
commit ae0e250a91
3 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2000-09-26 Lyndon Tremblay <humasect@home.com>
* Headers/Foundation/NSObject.h (CREATE_AUTORELEASE_POOL): Saves 1
message call.
(RECREATE_AUTORELEASE_POOL): Added to reuse existing variables.
2000-09-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURLHandle.m: ([-addClient:]) ensure that clients are only

View file

@ -292,6 +292,10 @@ extern NSRecursiveLock *gnustep_global_lock;
#define CREATE_AUTORELEASE_POOL(X)
#endif
#ifndef RECREATE_AUTORELEASE_POOL
#define RECREATE_AUTORELEASE_POOL(X)
#endif
#define IF_NO_GC(X)
#else
@ -388,7 +392,18 @@ if (__value != (id)object) \
#ifndef CREATE_AUTORELEASE_POOL
#define CREATE_AUTORELEASE_POOL(X) \
NSAutoreleasePool *(X) = [NSAutoreleasePool new]
NSAutoreleasePool *(X) = [[NSAutoreleasePool alloc] init]
#endif
/*
* Similar, but allows reuse of variables. Be sure to use DESTROY()
* so the object variable stays nil.
*/
#ifndef RECREATE_AUTORELEASE_POOL
#define RECREATE_AUTORELEASE_POOL(X) \
if (X == nil) \
(X) = [[NSAutoreleasePool alloc] init]
#endif
#define IF_NO_GC(X) X

View file

@ -227,5 +227,5 @@ typedef struct {
* NSPortNameServer.m and re-install the base library with
* the new NSPortNameServer.o
*/
/* #define GDOMAP_PORT_OVERRIDE 6006 */
/* #define GDOMAP_PORT_OVERRIDE 6006 */