/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/basic/static-destruct.c
22 строки
667 B
Zbigniew Jędrzejewski-Szmek
tree-wide: get rid of most uses of ALIGN_PTR
16 май 2026, 19:32
16 май 2026, 19:32
cf88903
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #include "static-destruct.h" void static_destruct_impl(const StaticDestructor *start, const StaticDestructor *end) { if (!start) return; for (const StaticDestructor *d = start; d < end; d++) switch (d->type) { case STATIC_DESTRUCTOR_SIMPLE: d->simple.destroy(d->simple.data); break; case STATIC_DESTRUCTOR_ARRAY: array_cleanup(&d->array); break; default: assert_not_reached(); } }