mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
d40f5cc498
We already allowed variables to be declared in the middle of a function (whenever a new scope was opened), so this isn't such a big change. Sometimes we would open a scope just to work around this prohibition. But sometimes the code can be much clearer if the variable is declared somewhere in the middle of a scope, in particular if the declaration is combined with initialization or acquisition of some resources. So let's allow this, but keep things in the old style, unless there's a good reason to move the variable declaration to a different place. |
||
---|---|---|
.. | ||
sysvinit | ||
var-log | ||
CGROUP_DELEGATION.md | ||
CODE_QUALITY.md | ||
CODING_STYLE | ||
DISTRO_PORTING | ||
ENVIRONMENT.md | ||
HACKING | ||
PORTABLE_SERVICES.md | ||
TRANSIENT-SETTINGS.md | ||
TRANSLATORS | ||
UIDS-GIDS.md |