]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: init: convert all trivial registration calls to initcalls
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2018 18:14:37 +0000 (19:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commit0108d90c6cda977cce89125f75ff277bc1320a6a
treed79a8ef39b736274fed2f1ae69c34f46d198bd47
parent5794fb0c22241f970483a139d3da184e9be14fe8
MEDIUM: init: convert all trivial registration calls to initcalls

This switches explicit calls to various trivial registration methods for
keywords, muxes or protocols from constructors to INITCALL1 at stage
STG_REGISTER. All these calls have in common to consume a single pointer
and return void. Doing this removes 26 constructors. The following calls
were addressed :

- acl_register_keywords
- bind_register_keywords
- cfg_register_keywords
- cli_register_kw
- flt_register_keywords
- http_req_keywords_register
- http_res_keywords_register
- protocol_register
- register_mux_proto
- sample_register_convs
- sample_register_fetches
- srv_register_keywords
- tcp_req_conn_keywords_register
- tcp_req_cont_keywords_register
- tcp_req_sess_keywords_register
- tcp_res_cont_keywords_register
- flt_register_keywords
43 files changed:
doc/internals/filters.txt
src/51d.c
src/acl.c
src/activity.c
src/backend.c
src/cache.c
src/cli.c
src/compression.c
src/connection.c
src/da.c
src/dns.c
src/filters.c
src/flt_http_comp.c
src/flt_spoe.c
src/flt_trace.c
src/frontend.c
src/hlua.c
src/http_acl.c
src/http_act.c
src/http_conv.c
src/http_fetch.c
src/listener.c
src/log.c
src/map.c
src/memory.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/payload.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/proxy.c
src/queue.c
src/sample.c
src/server.c
src/ssl_sock.c
src/stats.c
src/stick_table.c
src/stream.c
src/tcp_rules.c
src/vars.c
src/wurfl.c