From f14883b92b7df63f9b7c368d138a551c75c8c977 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 13 Mar 2009 19:45:21 +0000 Subject: [Author: dmaclach] Fix up StackTrace so that it uses BOOLs correctly, and puts a - in front of regular methods. It was putting a + in front of basically all methods. DELTA=4 (0 added, 0 deleted, 4 changed) R=thomasvl --- Foundation/GTMStackTrace.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Foundation/GTMStackTrace.m') diff --git a/Foundation/GTMStackTrace.m b/Foundation/GTMStackTrace.m index 0b28743..05843b5 100644 --- a/Foundation/GTMStackTrace.m +++ b/Foundation/GTMStackTrace.m @@ -93,7 +93,7 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], // Iterate through the stack. for (NSUInteger i = 0; i < count; ++i) { const char *class_name = NULL; - Boolean is_class_method = FALSE; + BOOL is_class_method = NO; size_t smallest_diff = SIZE_MAX; struct GTMAddressDescriptor *currDesc = &outDescs[i]; currDesc->address = pcs[i]; @@ -108,7 +108,7 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], if (diff < smallest_diff) { best_method = class_descs[j].class_methods[k]; class_name = class_descs[j].class_name; - is_class_method = TRUE; + is_class_method = YES; smallest_diff = diff; } } @@ -121,7 +121,7 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], if (diff < smallest_diff) { best_method = class_descs[j].instance_methods[k]; class_name = class_descs[j].class_name; - is_class_method = TRUE; + is_class_method = NO; smallest_diff = diff; } } @@ -140,7 +140,7 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], dladdr(currDesc->address, &info); if ((size_t)currDesc->address - (size_t)info.dli_saddr < smallest_diff) { currDesc->symbol = info.dli_sname; - currDesc->is_class_method = FALSE; + currDesc->is_class_method = NO; currDesc->class_name = NULL; } currDesc->filename = info.dli_fname; -- cgit v1.2.3