mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-02-06 15:33:16 +00:00
format objective c files
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
Language: Cpp
|
|
||||||
UseTab: Always
|
UseTab: Always
|
||||||
TabWidth: 8
|
TabWidth: 8
|
||||||
AlignConsecutiveAssignments:
|
AlignConsecutiveAssignments:
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ print(OUT " cp -rf include \$(DESTDIR)\$(PREFIX)/\n");
|
|||||||
print(OUT "\n");
|
print(OUT "\n");
|
||||||
print(OUT "format:\n");
|
print(OUT "format:\n");
|
||||||
print(OUT
|
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
|
print(OUT
|
||||||
" perltidy -b -bext=\"/\" --paren-tightness=2 `find tools pl Makefile.pl -name \"*.pl\"`\n"
|
" 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);
|
MwLLCreateCommon(r);
|
||||||
|
|
||||||
MilskoCocoa* o =
|
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;
|
r->cocoa.real = o;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
@@ -264,9 +268,13 @@ static void MwLLDestroyImpl(MwLL handle) {
|
|||||||
free(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,
|
static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count,
|
||||||
MwLLColor color) {
|
MwLLColor color) {
|
||||||
@@ -309,7 +317,9 @@ static void MwLLSetWHImpl(MwLL handle, int w, int height) {
|
|||||||
[h setW:w H: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) {
|
static int MwLLPendingImpl(MwLL handle) {
|
||||||
MilskoCocoa* h = handle->cocoa.real;
|
MilskoCocoa* h = handle->cocoa.real;
|
||||||
@@ -417,7 +427,9 @@ static void MwLLSetClipboardImpl(MwLL handle, const char *text) {
|
|||||||
[h setClipboard:text];
|
[h setClipboard:text];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MwLLGetClipboardImpl(MwLL handle) { (void)handle; }
|
static void MwLLGetClipboardImpl(MwLL handle) {
|
||||||
|
(void)handle;
|
||||||
|
}
|
||||||
|
|
||||||
static void MwLLMakeToolWindowImpl(MwLL handle) {
|
static void MwLLMakeToolWindowImpl(MwLL handle) {
|
||||||
|
|
||||||
@@ -435,11 +447,17 @@ static void MwLLGetScreenSizeImpl(MwLL handle, MwRect *rect) {
|
|||||||
[h getScreenSize: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"
|
#include "call.c"
|
||||||
CALL(Cocoa);
|
CALL(Cocoa);
|
||||||
|
|||||||
Reference in New Issue
Block a user