mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 00:14:31 +00:00
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:
parent
bcc6733fab
commit
d62af6abe4
@ -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);
|
||||
|
@ -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 {
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user