]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: tools: split common/standard.h into haproxy/tools{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Jun 2020 16:09:46 +0000 (18:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
commit48fbcae07c00cee2d40967e37b2018959c5347d4
tree4aa5c7728fc0ef0663544ef49b03ef45dcc8eb61
parent2dd7c35052ea7577ca1341724633b5d029fe87fc
REORG: tools: split common/standard.h into haproxy/tools{,-t}.h

And also rename standard.c to tools.c. The original split between
tools.h and standard.h dates from version 1.3-dev and was mostly an
accident. This patch moves the files back to what they were expected
to be, and takes care of not changing anything else. However this
time tools.h was split between functions and types, because it contains
a small number of commonly used macros and structures (e.g. name_desc)
which in turn cause the massive list of includes of tools.h to conflict
with the callers.

They remain the ugliest files of the whole project and definitely need
to be cleaned and split apart. A few types are defined there only for
functions provided there, and some parts are even OS-specific and should
move somewhere else, such as the symbol resolution code.
59 files changed:
Makefile
contrib/mod_defender/defender.c
include/haproxy/tools-t.h [new file with mode: 0644]
include/haproxy/tools.h [moved from include/common/standard.h with 93% similarity]
include/proto/stats.h
include/proto/stick_table.h
include/proto/trace.h
src/acl.c
src/action.c
src/activity.c
src/arg.c
src/cfgparse.c
src/checks.c
src/chunk.c
src/cli.c
src/debug.c
src/ev_epoll.c
src/fcgi-app.c
src/filters.c
src/flt_http_comp.c
src/flt_trace.c
src/freq_ctr.c
src/frontend.c
src/haproxy.c
src/hlua.c
src/hpack-dec.c
src/http.c
src/http_acl.c
src/http_act.c
src/http_conv.c
src/http_fetch.c
src/http_rules.c
src/lb_chash.c
src/listener.c
src/log.c
src/map.c
src/pattern.c
src/peers.c
src/pool.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/protocol.c
src/raw_sock.c
src/regex.c
src/sample.c
src/ssl_ckch.c
src/ssl_crtlist.c
src/ssl_sample.c
src/ssl_sock.c
src/stats.c
src/stick_table.c
src/stream_interface.c
src/task.c
src/tcp_rules.c
src/thread.c
src/time.c
src/tools.c [moved from src/standard.c with 99% similarity]
src/wdt.c