Skip to content

Commit e725a8c

Browse files
committed
Apply clang-format
1 parent 9e6d09c commit e725a8c

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

call.c

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ static void commandExit(pipe_buffer *target) {
1919

2020
// clear command
2121

22-
static struct { int16_t id; } windowid;
22+
static struct {
23+
int16_t id;
24+
} windowid;
2325

2426
_Static_assert(sizeof windowid == 2, "wrong windowid align");
2527

@@ -117,7 +119,9 @@ static void commandImageAdd(pipe_buffer *target) {
117119

118120
// remove image
119121

120-
static struct { int16_t id; } imageid;
122+
static struct {
123+
int16_t id;
124+
} imageid;
121125

122126
_Static_assert(sizeof imageid == 2, "wrong imageid align");
123127

@@ -151,7 +155,9 @@ static void commandFont(pipe_buffer *target) { parameters_alloc_to_call(target,
151155

152156
// remove font
153157

154-
static struct { int16_t id; } fontid;
158+
static struct {
159+
int16_t id;
160+
} fontid;
155161

156162
_Static_assert(sizeof fontid == 2, "wrong fontid align");
157163

@@ -188,7 +194,9 @@ static void commandSplit(pipe_buffer *target) { parameters_alloc_to_call(target,
188194

189195
// text rect
190196

191-
static struct { int16_t fontid; } textrect;
197+
static struct {
198+
int16_t fontid;
199+
} textrect;
192200

193201
static void rectText(void *text) {
194202
int16_t width, height;
@@ -251,7 +259,9 @@ static void commandLayout(pipe_buffer *target) { parameters_to_call(target, &lay
251259

252260
// layout drop
253261

254-
static struct { int16_t id; } layoutid;
262+
static struct {
263+
int16_t id;
264+
} layoutid;
255265

256266
static void dropLayout() { layout_destroy(layoutid.id); }
257267

@@ -376,7 +386,9 @@ static void commandMenuItem(pipe_buffer *target) {
376386

377387
// clipboard
378388

379-
static struct { int16_t id; } clipboardtypeid;
389+
static struct {
390+
int16_t id;
391+
} clipboardtypeid;
380392

381393
_Static_assert(sizeof clipboardtypeid == 2, "wrong copy align");
382394

four/call.c

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ static void commandExit(pipe_buffer *target) {
1919

2020
// clear command
2121

22-
static struct { int16_t id; } windowid;
22+
static struct {
23+
int16_t id;
24+
} windowid;
2325

2426
_Static_assert(sizeof windowid == 2, "wrong windowid align");
2527

@@ -117,7 +119,9 @@ static void commandImageAdd(pipe_buffer *target) {
117119

118120
// remove image
119121

120-
static struct { int16_t id; } imageid;
122+
static struct {
123+
int16_t id;
124+
} imageid;
121125

122126
_Static_assert(sizeof imageid == 2, "wrong imageid align");
123127

@@ -151,7 +155,9 @@ static void commandFont(pipe_buffer *target) { parameters_alloc_to_call(target,
151155

152156
// remove font
153157

154-
static struct { int16_t id; } fontid;
158+
static struct {
159+
int16_t id;
160+
} fontid;
155161

156162
_Static_assert(sizeof fontid == 2, "wrong fontid align");
157163

@@ -188,7 +194,9 @@ static void commandSplit(pipe_buffer *target) { parameters_alloc_to_call(target,
188194

189195
// text rect
190196

191-
static struct { int16_t fontid; } textrect;
197+
static struct {
198+
int16_t fontid;
199+
} textrect;
192200

193201
static void rectText(void *text) {
194202
int16_t width, height;
@@ -247,7 +255,9 @@ static void commandLayout(pipe_buffer *target) { parameters_to_call(target, &lay
247255

248256
// layout drop
249257

250-
static struct { int16_t id; } layoutid;
258+
static struct {
259+
int16_t id;
260+
} layoutid;
251261

252262
static void dropLayout() { layout_destroy(layoutid.id); }
253263

@@ -372,7 +382,9 @@ static void commandMenuItem(pipe_buffer *target) {
372382

373383
// clipboard
374384

375-
static struct { int16_t id; } clipboardtypeid;
385+
static struct {
386+
int16_t id;
387+
} clipboardtypeid;
376388

377389
_Static_assert(sizeof clipboardtypeid == 2, "wrong copy align");
378390

0 commit comments

Comments
 (0)