]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: include: move the BUG_ON() code to haproxy/bug.h
authorWilly Tarreau <w@1wt.eu>
Wed, 27 May 2020 14:51:33 +0000 (16:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:56 +0000 (10:18 +0200)
commit58017eef3f8740be7690f67e9ca5bd356b36bc00
tree00d5496d78a6f5fb15a340f8b5d20fcf2797230a
parenteb6f701b99cd5a6578fbfa3496d5b65f06d284dc
REORG: include: move the BUG_ON() code to haproxy/bug.h

This one used to be stored into debug.h but the debug tools got larger
and require a lot of other includes, which can't use BUG_ON() anymore
because of this. It does not make sense and instead this macro should
be placed into the lower includes and given its omnipresence, the best
solution is to create a new bug.h with the few surrounding macros needed
to trigger bugs and place assertions anywhere.

Another benefit is that it won't be required to add include <debug.h>
anymore to use BUG_ON, it will automatically be covered by api.h. No
less than 32 occurrences were dropped.

The FSM_PRINTF macro was dropped since not used at all anymore (probably
since 1.6 or so).
35 files changed:
include/common/buf.h
include/common/debug.h
include/haproxy/api.h
include/haproxy/bug.h [new file with mode: 0644]
include/proto/session.h
src/backend.c
src/cli.c
src/connection.c
src/ev_epoll.c
src/filters.c
src/flt_spoe.c
src/frontend.c
src/h1_htx.c
src/http_acl.c
src/http_act.c
src/http_ana.c
src/http_conv.c
src/http_fetch.c
src/http_htx.c
src/http_rules.c
src/lb_chash.c
src/lb_fas.c
src/lb_fwlc.c
src/lb_fwrr.c
src/lb_map.c
src/memory.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/raw_sock.c
src/session.c
src/ssl_sock.c
src/stream.c
src/stream_interface.c
src/tcp_rules.c