style: 禁掉 clang-format 的 AlignConsecutiveAssignments 规则并重新格式化整个项目
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
bool rules_move(rules_t *src, rules_t *dest) {
|
||||
if (!dest || !src) return false;
|
||||
|
||||
dest->items = src->items;
|
||||
dest->count = src->count;
|
||||
dest->items = src->items;
|
||||
dest->count = src->count;
|
||||
dest->capacity = src->capacity;
|
||||
|
||||
src->items = nullptr;
|
||||
src->count = 0;
|
||||
src->items = nullptr;
|
||||
src->count = 0;
|
||||
src->capacity = 0;
|
||||
|
||||
return true;
|
||||
@@ -23,7 +23,7 @@ bool rules_move(rules_t *src, rules_t *dest) {
|
||||
|
||||
void rules_cleanup(rules_t *rules) {
|
||||
for (size_t i = 0; i < rules->count; ++i) {
|
||||
rule_match_t *match = &rules->items[i].match;
|
||||
rule_match_t *match = &rules->items[i].match;
|
||||
rule_action_t *action = &rules->items[i].action;
|
||||
|
||||
p_delete(&match->app_id);
|
||||
@@ -37,7 +37,7 @@ void rules_cleanup(rules_t *rules) {
|
||||
|
||||
p_delete(&rules->items);
|
||||
rules->capacity = 0;
|
||||
rules->count = 0;
|
||||
rules->count = 0;
|
||||
}
|
||||
|
||||
static inline bool str_match(const char *pattern, const char *value) {
|
||||
@@ -59,9 +59,9 @@ static void rule_action_merge(const rule_action_t *src, rule_action_t *dest) {
|
||||
dest->workspace = src->workspace;
|
||||
}
|
||||
dest->switch_to_workspace |= src->switch_to_workspace;
|
||||
dest->fullscreen |= src->fullscreen;
|
||||
dest->maximize |= src->maximize;
|
||||
dest->floating |= src->floating;
|
||||
dest->fullscreen |= src->fullscreen;
|
||||
dest->maximize |= src->maximize;
|
||||
dest->floating |= src->floating;
|
||||
}
|
||||
|
||||
bool rules_resolve(
|
||||
|
||||
Reference in New Issue
Block a user