From ad46a5206759c49e30d7df70eea1f6117922a394 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Wed, 5 Dec 2007 22:54:48 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1290 d1b88da0-ebda-0310-925b-ed51d893ca5b --- Main/GNUmakefile | 3 +-- Main/NSException+Stacktrace.m | 36 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/Main/GNUmakefile b/Main/GNUmakefile index ab489728..9feb7639 100644 --- a/Main/GNUmakefile +++ b/Main/GNUmakefile @@ -6,7 +6,7 @@ include ../Version include ./Version ADDITIONAL_INCLUDE_DIRS += -I../SOPE/ -D_GNU_SOURCE -ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ -lbfd +ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ SOGOD = sogod-$(MAJOR_VERSION).$(MINOR_VERSION) TOOL_NAME = $(SOGOD) @@ -17,7 +17,6 @@ all:: $(SOGOD)_OBJC_FILES += \ sogod.m \ - NSException+Stacktrace.m\ SOGo.m \ SOGoProductLoader.m \ build.m diff --git a/Main/NSException+Stacktrace.m b/Main/NSException+Stacktrace.m index c08bc21a..8fac8800 100644 --- a/Main/NSException+Stacktrace.m +++ b/Main/NSException+Stacktrace.m @@ -77,7 +77,7 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) // // -#define STACKSYMBOLS 1 +// #define STACKSYMBOLS 1 @interface GSStackTrace : NSObject { @@ -94,7 +94,7 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) @end -#ifdef STACKSYMBOLS +// #ifdef STACKSYMBOLS // GSStackTrace inspired by FYStackTrace.m // created by Wim Oudshoorn on Mon 11-Apr-2006 @@ -467,7 +467,7 @@ GSLoadModule(NSString *fileName) return module; } -#endif /* STACKSYMBOLS */ +// #endif /* STACKSYMBOLS */ // @@ -749,14 +749,12 @@ GSListModules() + (GSStackTrace*) currentStack { - return [[[GSStackTrace alloc] init] autorelease]; + return [[GSStackTrace new] autorelease]; } - (oneway void) dealloc { [frames release]; - frames = nil; - [super dealloc]; } @@ -794,11 +792,11 @@ GSListModules() // grab the current stack - (id) init { -#if defined(STACKSYMBOLS) +// #if defined(STACKSYMBOLS) int i; int n; - frames = [[NSMutableArray alloc] init]; + frames = [NSMutableArray new]; n = NSCountFrames(); for (i = 0; i < n; i++) @@ -860,20 +858,20 @@ GSListModules() } [frames addObject: aFrame]; } -#else - int i; - int n; +// #else +// int i; +// int n; - frames = [[NSMutableArray alloc] init]; - n = NSCountFrames(); +// frames = [NSMutableArray new]; +// n = NSCountFrames(); - for (i = 0; i < n; i++) - { - void *address = NSReturnAddress(i); +// for (i = 0; i < n; i++) +// { +// void *address = NSReturnAddress(i); - [frames addObject: [NSString stringWithFormat: @"%p", address]]; - } -#endif +// [frames addObject: [NSString stringWithFormat: @"%p", address]]; +// } +// #endif return self; } -- 2.39.5