CLEANUP: include: don't include stddef.h directly

Directly including stddef.h in many files results in it being processed
multiple times while it can be centralized in api-t.h and be guarded
against multiple inclusions. Doing so reduces the number of preprocessed
lines by 1200!
This commit is contained in:
Willy Tarreau 2020-06-05 15:37:34 +02:00
parent bcc6733fab
commit d62af6abe4
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
#ifndef _HAPROXY_BASE64_H
#define _HAPROXY_BASE64_H
#include <stddef.h>
#include <haproxy/api.h>
int a2base64(char *in, int ilen, char *out, int olen);
int base64dec(const char *in, size_t ilen, char *out, size_t olen);

View File

@ -28,7 +28,7 @@
#ifndef _HAPROXY_BUF_T_H
#define _HAPROXY_BUF_T_H
#include <stddef.h>
#include <haproxy/api-t.h>
/* Structure defining a buffer's head */
struct buffer {

View File

@ -23,9 +23,9 @@
#ifndef _HAPROXY_HTTP_H
#define _HAPROXY_HTTP_H
#include <stddef.h>
#include <string.h>
#include <import/ist.h>
#include <haproxy/api.h>
#include <haproxy/http-t.h>
extern const int http_err_codes[HTTP_ERR_SIZE];

View File

@ -23,8 +23,8 @@
#ifndef _HAPROXY_NAMESPACE_T_H
#define _HAPROXY_NAMESPACE_T_H
#include <stddef.h>
#include <import/ebpttree.h>
#include <haproxy/api-t.h>
/* the struct is just empty if namespaces are not supported */
struct netns_entry