run clang-format (3.5.0)
Not quite sure why there are so many differences. Perhaps we’ve gotten out of the habit of running clang-format after every change. I guess it’d be best to have a travis hook that runs clang-format for us and reports any problems on pull requests.
This commit is contained in:
16
src/util.c
16
src/util.c
@ -42,17 +42,17 @@ bool rect_contains(Rect rect, uint32_t x, uint32_t y) {
|
||||
}
|
||||
|
||||
Rect rect_add(Rect a, Rect b) {
|
||||
return (Rect) {a.x + b.x,
|
||||
a.y + b.y,
|
||||
a.width + b.width,
|
||||
a.height + b.height};
|
||||
return (Rect){a.x + b.x,
|
||||
a.y + b.y,
|
||||
a.width + b.width,
|
||||
a.height + b.height};
|
||||
}
|
||||
|
||||
Rect rect_sub(Rect a, Rect b) {
|
||||
return (Rect) {a.x - b.x,
|
||||
a.y - b.y,
|
||||
a.width - b.width,
|
||||
a.height - b.height};
|
||||
return (Rect){a.x - b.x,
|
||||
a.y - b.y,
|
||||
a.width - b.width,
|
||||
a.height - b.height};
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user