CLEANUP: include: remove excessive includes of common/standard.h

Some of them were simply removed as unused (possibly some leftovers
from an older cleanup session), some were turned to haproxy/bitops.h
and a few had to be added (hlua.c and stick-table.h need standard.h
for parse_time_err; htx.h requires chunk.h but used to get it through
standard.h).
This commit is contained in:
Willy Tarreau 2020-06-01 12:09:26 +02:00
parent aea4635c38
commit 889faf467b
16 changed files with 10 additions and 12 deletions

View File

@ -24,7 +24,6 @@
#include <stdio.h>
#include <haproxy/api.h>
#include <common/standard.h>
#include <haproxy/buf-t.h>
#include <import/ist.h>

View File

@ -23,11 +23,11 @@
#define _COMMON_H1_H
#include <haproxy/api.h>
#include <haproxy/intops.h>
#include <common/buffer.h>
#include <common/http.h>
#include <common/http-hdr.h>
#include <import/ist.h>
#include <common/standard.h>
/* Possible states while parsing HTTP/1 messages (request|response) */

View File

@ -26,9 +26,9 @@
#include <haproxy/api.h>
#include <haproxy/buf.h>
#include <import/ist.h>
#include <common/chunk.h>
#include <common/http.h>
#include <common/http-hdr.h>
#include <common/standard.h>
/*
* The internal representation of an HTTP message, called HTX, is a structure

View File

@ -28,7 +28,7 @@
#define _COMMON_NET_HELPER_H
#include <haproxy/api.h>
#include <common/standard.h>
#include <haproxy/intops.h>
#include <arpa/inet.h>
/* Functions to read/write various integers that may be unaligned */

View File

@ -53,7 +53,6 @@
#define _COMMON_TICKS_H
#include <haproxy/api.h>
#include <common/standard.h>
#define TICK_ETERNITY 0

View File

@ -24,7 +24,7 @@
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <common/standard.h>
#include <haproxy/intops.h>
#include <haproxy/time.h>
#include <types/freq_ctr.h>

View File

@ -25,7 +25,6 @@
#include <string.h>
#include <haproxy/api.h>
#include <common/standard.h>
#include <types/pattern.h>
/* pattern management function arrays */

View File

@ -12,7 +12,6 @@
*/
#include <signal.h>
#include <common/standard.h>
#include <haproxy/thread.h>
#include <types/signal.h>

View File

@ -22,7 +22,7 @@
#ifndef _PROTO_SPOE_H
#define _PROTO_SPOE_H
#include <common/standard.h>
#include <haproxy/intops.h>
#include <types/spoe.h>

View File

@ -23,6 +23,7 @@
#ifndef _PROTO_STATS_H
#define _PROTO_STATS_H
#include <common/standard.h>
#include <haproxy/api.h>
#include <types/applet.h>
#include <types/stream_interface.h>

View File

@ -24,6 +24,7 @@
#define _PROTO_STICK_TABLE_H
#include <haproxy/errors.h>
#include <common/standard.h>
#include <common/ticks.h>
#include <haproxy/time.h>
#include <types/stick_table.h>

View File

@ -27,8 +27,8 @@
#include <haproxy/api.h>
#include <common/memory.h>
#include <haproxy/intops.h>
#include <haproxy/list.h>
#include <common/standard.h>
#include <common/ticks.h>
#include <haproxy/thread.h>

View File

@ -24,6 +24,7 @@
#include <haproxy/api.h>
#include <common/buffer.h>
#include <common/standard.h>
#include <import/ist.h>
#include <haproxy/list.h>
#include <types/log.h>

View File

@ -16,7 +16,6 @@
#include <haproxy/api-t.h>
#include <import/ebpttree.h>
#include <common/standard.h>
#include <import/ist.h>
#include <haproxy/list-t.h>
#include <common/regex.h>

View File

@ -18,7 +18,6 @@
#include <signal.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <common/standard.h>
/* flags for -> flags */
#define SIG_F_ONE_SHOOT 0x0001 /* unregister handler before calling it */

View File

@ -28,6 +28,7 @@
#include <haproxy/thread.h>
#include <common/xref.h>
#include <common/h1.h>
#include <common/standard.h>
#include <types/cli.h>
#include <types/hlua.h>