Permalink
Browse files

Cleanup of include-statements in .c and .h files

  • Loading branch information...
1 parent 46ad2c1 commit d552a77bc1ef1f2ba3454739ec2557a6f2051bbf @andreykruglyak andreykruglyak committed Nov 3, 2011
View
@@ -1,7 +1,6 @@
#ifndef COCOA_EXTERN_H
#define COCOA_EXTERN_H
-#include "timber.h"
#include "CocoaDef.h"
extern pthread_mutex_t rts;
View
@@ -1,6 +1,8 @@
#ifndef CTBUTTON_EXTERN_H_
#define CTBUTTON_EXTERN_H_
+#include "CocoaDef.h"
+
Int initButton_CTButton(World,Int);
Size_CocoaDef buttonSetTitle_CTButton(Int,LIST,Int);
TUP0 buttonSetPosition_CTButton(Int,Position_CocoaDef,Int);
@@ -1,4 +1,5 @@
#include "CTContainer.extern.h"
+#import <Cocoa/Cocoa.h>
#import "CTContainer.extern.m"
Int initContainer_CTContainer(World w, Int dummy) {
@@ -1,6 +1,8 @@
#ifndef CTCONTAINER_EXTERN_H_
#define CTCONTAINER_EXTERN_H_
+#include "CocoaDef.h"
+
Int initContainer_CTContainer(World,Int);
TUP0 destroyContainer_CTContainer(Int,Int);
TUP0 containerSetBackgroundColor_CTContainer(Int,Color_CocoaDef,Int);
@@ -1,5 +1,3 @@
-#import <Cocoa/Cocoa.h>
-
// ------------- CocoaView ----------------------------
@interface CocoaView : NSView {
@private
View
@@ -1,4 +1,5 @@
#include "CTDropDown.extern.h"
+#import <Cocoa/Cocoa.h>
#import "CTDropDown.extern.m"
// --------- DropDown ----------------------------------------------
View
@@ -2,7 +2,6 @@
#define CTDROPDOWN_EXTERN_H_
#include "CocoaDef.h"
-#include "rts.h"
#define DROPDOWN_HEIGHT 22
View
@@ -1,4 +1,3 @@
-#import <Cocoa/Cocoa.h>
#include "CTDropDown.extern.h"
@interface DropDownClickHandler : NSObject {
View
@@ -1,6 +1,8 @@
#ifndef CTTEXTAREA_EXTERN_H_
#define CTTEXTAREA_EXTERN_H_
+#include "CocoaDef.h"
+
Int initTextArea_CTTextArea(World,Int);
TUP0 textAreaSetText_CTTextArea(Int,LIST,Int);
TUP0 textAreaSetPosition_CTTextArea(Int,Position_CocoaDef,Int);
View
@@ -1,4 +1,5 @@
#include "CTWindow.extern.h"
+#import <Cocoa/Cocoa.h>
#import "CTWindow.extern.m"
Bool compareKeys_CTWindow(CocoaKey_CocoaDef aKey, CocoaKey_CocoaDef anotherKey) {
View
@@ -1,8 +1,8 @@
#ifndef CTWINDOW_EXTERN_H_
#define CTWINDOW_EXTERN_H_
+#include "CocoaDef.h"
#include "rts.h"
-#include "timber.h"
extern pthread_mutex_t rts;
extern int rootsDirty;
View
@@ -1,5 +1,5 @@
-#import <Cocoa/Cocoa.h>
#include "Cocoa.extern.h"
+#include "rts.h"
// ------------- WindowDelegate ----------------------------
// Window delegate allows interception of window close events

0 comments on commit d552a77

Please sign in to comment.