format objective c files
This commit is contained in:
parent
3dec3ff0da
commit
e2f34df4e3
3 changed files with 268 additions and 251 deletions
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
Language: Cpp
|
||||
UseTab: Always
|
||||
TabWidth: 8
|
||||
AlignConsecutiveAssignments:
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ print(OUT " cp -rf include \$(DESTDIR)\$(PREFIX)/\n");
|
|||
print(OUT "\n");
|
||||
print(OUT "format:\n");
|
||||
print(OUT
|
||||
" clang-format --verbose -i `find src include examples -name \"*.c\" -or -name \"*.h\"`\n"
|
||||
" clang-format --verbose -i `find src include examples -name \"*.c\" -or -name \"*.h\" -or -name \"*.m\"`\n"
|
||||
);
|
||||
print(OUT
|
||||
" perltidy -b -bext=\"/\" --paren-tightness=2 `find tools pl Makefile.pl -name \"*.pl\"`\n"
|
||||
|
|
|
|||
|
|
@ -248,7 +248,11 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
|||
MwLLCreateCommon(r);
|
||||
|
||||
MilskoCocoa* o =
|
||||
[MilskoCocoa newWithParent:parent x:x y:y width:width height:height];
|
||||
[MilskoCocoa newWithParent:parent
|
||||
x:x
|
||||
y:y
|
||||
width:width
|
||||
height:height];
|
||||
r->cocoa.real = o;
|
||||
|
||||
return r;
|
||||
|
|
@ -264,9 +268,13 @@ static void MwLLDestroyImpl(MwLL handle) {
|
|||
free(handle);
|
||||
}
|
||||
|
||||
static void MwLLBeginDrawImpl(MwLL handle) { (void)handle; }
|
||||
static void MwLLBeginDrawImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
}
|
||||
|
||||
static void MwLLEndDrawImpl(MwLL handle) { (void)handle; }
|
||||
static void MwLLEndDrawImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
}
|
||||
|
||||
static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count,
|
||||
MwLLColor color) {
|
||||
|
|
@ -309,7 +317,9 @@ static void MwLLSetWHImpl(MwLL handle, int w, int height) {
|
|||
[h setW:w H:height];
|
||||
}
|
||||
|
||||
static void MwLLFreeColorImpl(MwLLColor color) { free(color); }
|
||||
static void MwLLFreeColorImpl(MwLLColor color) {
|
||||
free(color);
|
||||
}
|
||||
|
||||
static int MwLLPendingImpl(MwLL handle) {
|
||||
MilskoCocoa* h = handle->cocoa.real;
|
||||
|
|
@ -417,7 +427,9 @@ static void MwLLSetClipboardImpl(MwLL handle, const char *text) {
|
|||
[h setClipboard:text];
|
||||
}
|
||||
|
||||
static void MwLLGetClipboardImpl(MwLL handle) { (void)handle; }
|
||||
static void MwLLGetClipboardImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
}
|
||||
|
||||
static void MwLLMakeToolWindowImpl(MwLL handle) {
|
||||
|
||||
|
|
@ -435,11 +447,17 @@ static void MwLLGetScreenSizeImpl(MwLL handle, MwRect *rect) {
|
|||
[h getScreenSize:rect];
|
||||
}
|
||||
|
||||
static void MwLLBeginStateChangeImpl(MwLL handle) { MwLLShow(handle, 0); }
|
||||
static void MwLLBeginStateChangeImpl(MwLL handle) {
|
||||
MwLLShow(handle, 0);
|
||||
}
|
||||
|
||||
static void MwLLEndStateChangeImpl(MwLL handle) { MwLLShow(handle, 1); }
|
||||
static void MwLLEndStateChangeImpl(MwLL handle) {
|
||||
MwLLShow(handle, 1);
|
||||
}
|
||||
|
||||
static int MwLLCocoaCallInitImpl(void) { return 0; }
|
||||
static int MwLLCocoaCallInitImpl(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include "call.c"
|
||||
CALL(Cocoa);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue