style: 禁掉 clang-format 的 AlignConsecutiveAssignments 规则并重新格式化整个项目
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
void layout_result_cleanup(layout_result_t *result) {
|
||||
p_delete(&result->items);
|
||||
result->item_count = 0;
|
||||
result->item_count = 0;
|
||||
result->item_capacity = 0;
|
||||
}
|
||||
|
||||
@@ -31,19 +31,19 @@ void layout_registry_cleanup(layout_registry_t *registry) {
|
||||
}
|
||||
|
||||
p_delete(®istry->slots);
|
||||
registry->slot_count = 0;
|
||||
registry->slot_count = 0;
|
||||
registry->slot_capacity = 0;
|
||||
}
|
||||
|
||||
bool layout_registry_move(layout_registry_t *src, layout_registry_t *dest) {
|
||||
if (!src || !dest) return false;
|
||||
|
||||
dest->slots = src->slots;
|
||||
dest->slot_count = src->slot_count;
|
||||
dest->slots = src->slots;
|
||||
dest->slot_count = src->slot_count;
|
||||
dest->slot_capacity = src->slot_capacity;
|
||||
|
||||
src->slots = nullptr;
|
||||
src->slot_count = 0;
|
||||
src->slots = nullptr;
|
||||
src->slot_count = 0;
|
||||
src->slot_capacity = 0;
|
||||
|
||||
return true;
|
||||
@@ -71,11 +71,11 @@ layout_id_t layout_register(
|
||||
layout_id_t id = (layout_id_t)registry->slot_count;
|
||||
layout_slot_t *r =
|
||||
array_push(registry->slots, registry->slot_count, registry->slot_capacity);
|
||||
r->id = id;
|
||||
r->name = p_strdup(name);
|
||||
r->symbol = p_strdup(symbol);
|
||||
r->id = id;
|
||||
r->name = p_strdup(name);
|
||||
r->symbol = p_strdup(symbol);
|
||||
r->description = p_strdup_nullable(description);
|
||||
r->fn = fn;
|
||||
r->fn = fn;
|
||||
|
||||
return r->id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user