]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[CLEANUP] remove many #include <types/xxx> from C files
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Jul 2008 22:22:45 +0000 (00:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Jul 2008 08:30:42 +0000 (10:30 +0200)
commitec6c5df018c2365b7c11a40e183642c3016ef850
treed44e0f1c9d3aad8d78144b86f29a970b8e8d60d9
parent284648e079a64fa02812cd84b663d33ffbf54b98
[CLEANUP] remove many #include <types/xxx> from C files

It should be stated as a rule that a C file should never
include types/xxx.h when proto/xxx.h exists, as it gives
less exposure to declaration conflicts (one of which was
caught and fixed here) and it complicates the file headers
for nothing.

Only types/global.h, types/capture.h and types/polling.h
have been found to be valid includes from C files.
29 files changed:
include/proto/log.h
src/acl.c
src/appsession.c
src/backend.c
src/cfgparse.c
src/checks.c
src/client.c
src/cttproxy.c
src/dumpstats.c
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c
src/fd.c
src/haproxy.c
src/hdr_idx.c
src/log.c
src/proto_http.c
src/proto_tcp.c
src/proto_uxst.c
src/protocols.c
src/proxy.c
src/queue.c
src/senddata.c
src/server.c
src/session.c
src/stream_sock.c
src/task.c