mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-17 02:30:47 +03:00
chore(style): format with clang
This commit is contained in:
parent
45a0da8293
commit
bdc1215cae
@ -6,25 +6,25 @@ static int32_t lmin(int32_t a, int32_t b) { return a < b ? a : b; }
|
||||
|
||||
bool box_parse(struct swappy_box *box, const char *str) {
|
||||
char *end = NULL;
|
||||
box->x = (int32_t) strtol(str, &end, 10);
|
||||
box->x = (int32_t)strtol(str, &end, 10);
|
||||
if (end[0] != ',') {
|
||||
return false;
|
||||
}
|
||||
|
||||
char *next = end + 1;
|
||||
box->y = (int32_t) strtol(next, &end, 10);
|
||||
box->y = (int32_t)strtol(next, &end, 10);
|
||||
if (end[0] != ' ') {
|
||||
return false;
|
||||
}
|
||||
|
||||
next = end + 1;
|
||||
box->width = (int32_t) strtol(next, &end, 10);
|
||||
box->width = (int32_t)strtol(next, &end, 10);
|
||||
if (end[0] != 'x') {
|
||||
return false;
|
||||
}
|
||||
|
||||
next = end + 1;
|
||||
box->height = (int32_t) strtol(next, &end, 10);
|
||||
box->height = (int32_t)strtol(next, &end, 10);
|
||||
if (end[0] != '\0') {
|
||||
return false;
|
||||
}
|
||||
|
@ -158,8 +158,7 @@ static void global_registry_handler(void *data, struct wl_registry *registry,
|
||||
|
||||
static void global_registry_remove_handler(void *data,
|
||||
struct wl_registry *wl_registry,
|
||||
uint32_t name) {
|
||||
}
|
||||
uint32_t name) {}
|
||||
|
||||
static struct wl_registry_listener registry_listener = {
|
||||
.global = global_registry_handler,
|
||||
|
Loading…
Reference in New Issue
Block a user