CLEANUP: tree-wide: only include ebtree-t from type files
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 16:31:48 +0000 (18:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:41:14 +0000 (01:41 +0200)
No need to include the full tree management code, type files only
need the definitions. Doing so reduces the whole code size by around
3.6% and the build time is down to just 6s.

28 files changed:
include/haproxy/check-t.h
include/haproxy/connection-t.h
include/haproxy/dict-t.h
include/haproxy/dns-t.h
include/haproxy/fcgi-app-t.h
include/haproxy/hlua-t.h
include/haproxy/lb_chash-t.h
include/haproxy/lb_fas-t.h
include/haproxy/lb_fwlc-t.h
include/haproxy/lb_fwrr-t.h
include/haproxy/listener-t.h
include/haproxy/mux_quic-t.h
include/haproxy/namespace-t.h
include/haproxy/pattern-t.h
include/haproxy/peers-t.h
include/haproxy/protocol-t.h
include/haproxy/proxy-t.h
include/haproxy/queue-t.h
include/haproxy/quic_frame-t.h
include/haproxy/resolvers-t.h
include/haproxy/server-t.h
include/haproxy/ssl_ckch-t.h
include/haproxy/ssl_crtlist-t.h
include/haproxy/ssl_sock-t.h
include/haproxy/stick_table-t.h
include/haproxy/task-t.h
include/haproxy/tcpcheck-t.h
include/haproxy/xprt_quic-t.h

index 084b15e..21b744d 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef _HAPROXY_CHECKS_T_H
 #define _HAPROXY_CHECKS_T_H
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 #include <import/ist.h>
 #include <haproxy/api-t.h>
 #include <haproxy/buf-t.h>
index 0372ebf..0ba8555 100644 (file)
@@ -28,7 +28,7 @@
 #include <netinet/ip.h>
 #include <netinet/ip6.h>
 
-#include <import/ebmbtree.h>
+#include <import/ebtree-t.h>
 #include <import/ist.h>
 
 #include <haproxy/api-t.h>
index cb2ea90..b8124e3 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef _HAPROXY_DICT_T_H
 #define _HAPROXY_DICT_T_H
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 #include <haproxy/api-t.h>
 #include <haproxy/thread-t.h>
 
index 1e68944..461a5d1 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_DNS_T_H
 #define _HAPROXY_DNS_T_H
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/connection-t.h>
 #include <haproxy/buf-t.h>
index 10cb178..542d586 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_HTTP_FCGI_T_H
 #define _HAPROXY_HTTP_FCGI_T_H
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 #include <import/ist.h>
 
 #include <haproxy/acl-t.h>
index fa694b5..3d33834 100644 (file)
@@ -27,7 +27,7 @@
 #include <lua.h>
 #include <lauxlib.h>
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/proxy-t.h>
 #include <haproxy/regex-t.h>
index e96193e..c437981 100644 (file)
@@ -22,8 +22,7 @@
 #ifndef _HAPROXY_LB_CHASH_T_H
 #define _HAPROXY_LB_CHASH_T_H
 
-#include <import/eb32tree.h>
-#include <import/ebtree.h>
+#include <import/ebtree-t.h>
 
 struct lb_chash {
        struct eb_root act;     /* weighted chash entries of active servers */
index e5b1aeb..cfb274c 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_LB_FAS_T_H
 #define _HAPROXY_LB_FAS_T_H
 
-#include <import/ebtree.h>
+#include <import/ebtree-t.h>
 
 struct lb_fas {
        struct eb_root act;     /* weighted least conns on the active servers */
index e5064be..258a6ab 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_LB_FWLC_T_H
 #define _HAPROXY_LB_FWLC_T_H
 
-#include <import/ebtree.h>
+#include <import/ebtree-t.h>
 
 struct lb_fwlc {
        struct eb_root act;     /* weighted least conns on the active servers */
index 0e12e1b..f7b746e 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_LB_FWRR_T_H
 #define _HAPROXY_LB_FWRR_T_H
 
-#include <import/ebtree.h>
+#include <import/ebtree-t.h>
 
 /* This structure is used to apply fast weighted round robin on a server group */
 struct fwrr_group {
index 70839ee..66cabee 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/obj_type-t.h>
index 8907249..4dc86d2 100644 (file)
@@ -32,7 +32,7 @@
 #include <haproxy/connection-t.h>
 #include <haproxy/dynbuf-t.h>
 
-#include <import/eb64tree.h>
+#include <import/ebtree-t.h>
 
 /* Bit shift to get the stream sub ID for internal use which is obtained
  * shifting the stream IDs by this value, knowing that the
index b86ae31..fe46577 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef _HAPROXY_NAMESPACE_T_H
 #define _HAPROXY_NAMESPACE_T_H
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 #include <haproxy/api-t.h>
 
 /* the struct is just empty if namespaces are not supported */
index 27305b2..32802d4 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_PATTERN_T_H
 #define _HAPROXY_PATTERN_T_H
 
-#include <import/ebmbtree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/regex-t.h>
index 0c712e5..6d2a968 100644 (file)
@@ -27,7 +27,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/dict-t.h>
index ce92765..7ce73db 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 #include <haproxy/api-t.h>
 
 /* some pointer types referenced below */
index 38a6ca9..5ef47c3 100644 (file)
@@ -27,8 +27,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include <import/eb32tree.h>
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/arg-t.h>
index 2667449..8f6a1ec 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_QUEUE_T_H
 #define _HAPROXY_QUEUE_T_H
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 #include <haproxy/api-t.h>
 
 struct proxy;
index 13b4cbf..f174073 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <haproxy/list.h>
 
-#include <import/eb64tree.h>
+#include <import/ebtree-t.h>
 
 /* QUIC frame types. */
 enum quic_frame_type {
index 97c0d9e..463e24b 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _HAPROXY_RESOLVERS_T_H
 #define _HAPROXY_RESOLVERS_T_H
 
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/connection-t.h>
 #include <haproxy/dns-t.h>
index fbd3cb7..80c9864 100644 (file)
@@ -25,8 +25,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include <import/eb32tree.h>
-#include <import/ebmbtree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/check-t.h>
index 2589a52..7f13f3d 100644 (file)
@@ -33,7 +33,7 @@
 #define _HAPROXY_SSL_CKCH_T_H
 #ifdef USE_OPENSSL
 
-#include <import/ebmbtree.h>
+#include <import/ebtree-t.h>
 #include <haproxy/buf-t.h>
 #include <haproxy/openssl-compat.h>
 
index 7ec8aa9..dc7a376 100644 (file)
@@ -23,8 +23,7 @@
 #define _HAPROXY_SSL_CRTLIST_T_H
 #ifdef USE_OPENSSL
 
-#include <import/ebmbtree.h>
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 
 
 /* forward declarations for structures below */
index 6772b98..6a23971 100644 (file)
@@ -23,9 +23,7 @@
 #define _HAPROXY_SSL_SOCK_T_H
 #ifdef USE_OPENSSL
 
-#include <import/eb64tree.h>
-#include <import/ebmbtree.h>
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/buf-t.h>
 #include <haproxy/connection-t.h> /* struct wait_event */
index f1f9d23..d8527b0 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef _HAPROXY_STICK_TABLE_T_H
 #define _HAPROXY_STICK_TABLE_T_H
 
-#include <import/eb32tree.h>
-#include <import/ebmbtree.h>
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/freq_ctr-t.h>
index 415a490..5081d98 100644 (file)
@@ -24,8 +24,7 @@
 
 #include <sys/time.h>
 
-#include <import/eb32sctree.h>
-#include <import/eb32tree.h>
+#include <import/ebtree-t.h>
 
 #include <haproxy/api-t.h>
 #include <haproxy/thread-t.h>
index 29cb4cc..dcd6e3d 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef _HAPROXY_TCPCHECK_T_H
 #define _HAPROXY_TCPCHECK_T_H
 
-#include <import/ebpttree.h>
+#include <import/ebtree-t.h>
 #include <import/ist.h>
 #include <haproxy/api-t.h>
 #include <haproxy/buf-t.h>
index 30a28a2..6e83594 100644 (file)
@@ -38,8 +38,7 @@
 #include <haproxy/quic_loss-t.h>
 #include <haproxy/task.h>
 
-#include <import/eb64tree.h>
-#include <import/ebmbtree.h>
+#include <import/ebtree-t.h>
 
 typedef unsigned long long ull;