From 4960324c8ec2b830ad4daf8ca313de82b2dc2b2c Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 31 Mar 2010 01:53:03 +0000 Subject: Minor tidy up. Remove uneccessary import and rename pre-compiled header. --- Source/Sequel-Pro.pch | 23 +++++++++++++++++++++++ Source/main.m | 2 -- Source/sequel-pro_Prefix.pch | 23 ----------------------- 3 files changed, 23 insertions(+), 25 deletions(-) create mode 100644 Source/Sequel-Pro.pch delete mode 100644 Source/sequel-pro_Prefix.pch (limited to 'Source') diff --git a/Source/Sequel-Pro.pch b/Source/Sequel-Pro.pch new file mode 100644 index 00000000..07fdf502 --- /dev/null +++ b/Source/Sequel-Pro.pch @@ -0,0 +1,23 @@ +// +// Prefix header for all source files of the 'sequel-pro' target in the 'sequel-pro' project. +// + +#ifdef __OBJC__ + #import +#endif + +#ifdef DEBUG + #define DLog(...) NSLog(__VA_ARGS__) +#else + #define DLog(...) +#endif + +#define ALog(...) NSLog(__VA_ARGS__) + +#ifndef enumerate +#define enumerate(container,var) for(NSEnumerator* _enumerator = [container objectEnumerator]; var = [_enumerator nextObject]; ) +#endif + +#ifndef sizeofA +#define sizeofA(a) (sizeof(a)/sizeof(a[0])) +#endif diff --git a/Source/main.m b/Source/main.m index 7314ba6d..abd404da 100644 --- a/Source/main.m +++ b/Source/main.m @@ -22,8 +22,6 @@ // // More info at -#import - int main(int argc, char *argv[]) { return NSApplicationMain(argc, (const char **) argv); diff --git a/Source/sequel-pro_Prefix.pch b/Source/sequel-pro_Prefix.pch deleted file mode 100644 index 6801cbd0..00000000 --- a/Source/sequel-pro_Prefix.pch +++ /dev/null @@ -1,23 +0,0 @@ -// -// Prefix header for all source files of the 'sequel-pro' target in the 'sequel-pro' project. -// - -#ifdef __OBJC__ - #import -#endif - -#ifdef DEBUG - #define DLog(...) NSLog(__VA_ARGS__) -#else - #define DLog(...) /* */ -#endif - -#define ALog(...) NSLog(__VA_ARGS__) - -#ifndef enumerate -#define enumerate(container,var) for(NSEnumerator* _enumerator = [container objectEnumerator]; var = [_enumerator nextObject]; ) -#endif - -#ifndef sizeofA -#define sizeofA(a) (sizeof(a)/sizeof(a[0])) -#endif -- cgit v1.2.3