]> git.kaiwu.me - haproxy.git/commit
REORG: mworker: move proc_self from global to mworker
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 10:30:50 +0000 (12:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 10:34:44 +0000 (12:34 +0200)
commit15f9ac3c59e9bef455b75ab97020f41155c4ea7a
treeee22fe0743aa032fd6813bdf049c4441025cf685
parente8ceea13457babbd33c573447f56f8a27bedb97d
REORG: mworker: move proc_self from global to mworker

Only mworker uses proc_self, and it was declared in global.h, forcing
users of global.h to include mworker and its dependencies.

Moving it to mworker reduces the preprocessed size of version.c from
170 to 125kB by shrinking the number of local includes from 30 to 16
and the number of system includes from 147 to 132.
include/haproxy/cli.h
include/haproxy/global.h
include/haproxy/mworker.h
src/haproxy.c
src/mworker.c