From f261cc72bd96ca65bc7b8f02c8cb1fce11561479 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Tue, 2 Jul 2013 22:41:33 -0400 Subject: Updated remaining references to mailcore::logEnabled. --- example/ios/iOS UI Test/iOS UI Test/main.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/ios/iOS UI Test/iOS UI Test/main.mm b/example/ios/iOS UI Test/iOS UI Test/main.mm index 7793820a..0089973b 100644 --- a/example/ios/iOS UI Test/iOS UI Test/main.mm +++ b/example/ios/iOS UI Test/iOS UI Test/main.mm @@ -12,6 +12,6 @@ #import int main(int argc, char *argv[]) { - mailcore::logEnabled = true; + MCLogEnabled = true; return UIApplicationMain(argc, argv, nil, @"AppDelegate"); } -- cgit v1.2.3 From 7f6923f520745ff9f1dd4df142de96ecbe64e045 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Wed, 3 Jul 2013 00:04:57 -0400 Subject: Updated type of MCLogEnabled to int instead of bool. --- example/ios/iOS UI Test/iOS UI Test/main.mm | 2 +- src/core/basetypes/MCLog.c | 3 +-- src/core/basetypes/MCLog.h | 2 +- tests/test-all.mm | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) (limited to 'example') diff --git a/example/ios/iOS UI Test/iOS UI Test/main.mm b/example/ios/iOS UI Test/iOS UI Test/main.mm index 0089973b..e6253102 100644 --- a/example/ios/iOS UI Test/iOS UI Test/main.mm +++ b/example/ios/iOS UI Test/iOS UI Test/main.mm @@ -12,6 +12,6 @@ #import int main(int argc, char *argv[]) { - MCLogEnabled = true; + MCLogEnabled = 1; return UIApplicationMain(argc, argv, nil, @"AppDelegate"); } diff --git a/src/core/basetypes/MCLog.c b/src/core/basetypes/MCLog.c index f3ce2318..8744f2dd 100644 --- a/src/core/basetypes/MCLog.c +++ b/src/core/basetypes/MCLog.c @@ -7,10 +7,9 @@ #include #include #include -#include static pid_t sPid = -1; -bool MCLogEnabled = false; +int MCLogEnabled = 0; __attribute__((constructor)) static void initialize() { diff --git a/src/core/basetypes/MCLog.h b/src/core/basetypes/MCLog.h index f4e940e2..de75314f 100644 --- a/src/core/basetypes/MCLog.h +++ b/src/core/basetypes/MCLog.h @@ -10,7 +10,7 @@ namespace mailcore { - extern bool MCLogEnabled; + extern int MCLogEnabled; #ifndef __printflike #define __printflike(a,b) diff --git a/tests/test-all.mm b/tests/test-all.mm index 4155bbb2..fdb0888c 100644 --- a/tests/test-all.mm +++ b/tests/test-all.mm @@ -351,7 +351,7 @@ void testAll() displayName = MCSTR("My Email"); mailcore::AutoreleasePool * pool = new mailcore::AutoreleasePool(); - MCLogEnabled = true; + MCLogEnabled = 1; mailstream_debug = 1; //mailcore::Data * data = testMessageBuilder(); -- cgit v1.2.3