REORG: vars: move the "proc" scope variables out of the global struct
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 09:41:28 +0000 (11:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 10:11:29 +0000 (12:11 +0200)
commitcfc4f24d80eb1fbdb25592bc9459a9265a1d9678
tree1c8ca5ee617ef796a85258c7e02d01e24a5f1f5b
parent9eec7e206e06aaa9157762cdb29102828cad6200
REORG: vars: move the "proc" scope variables out of the global struct

The presence of this field causes a long dependency chain because almost
everyone includes global-t.h, and vars include sample_data which include
some system includes as well as HTTP parts.

There is absolutely no reason for having the process-wide variables in
the global struct, let's just move them into vars.c and vars.h. This
reduces from ~190k to ~170k the preprocessed output of version.c.
addons/ot/src/vars.c
include/haproxy/global-t.h
include/haproxy/global.h
include/haproxy/vars.h
src/haproxy.c
src/vars.c