mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-09 23:39:55 +00:00
CLEANUP: tree-wide: only include ebtree-t from type files
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.
This commit is contained in:
parent
9b7a617a0e
commit
1db546eecd
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <haproxy/list.h>
|
||||
|
||||
#include <import/eb64tree.h>
|
||||
#include <import/ebtree-t.h>
|
||||
|
||||
/* QUIC frame types. */
|
||||
enum quic_frame_type {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user