nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit edf54c818e5549026098acd95ae44f0ddf6a7722
parent 8fd5473a2572c7ac39459f5059f1cc8bdc32d59c
Author: Rolf Eike Beer <eike@sf-mail.de>
Date:   Sun, 10 May 2020 15:33:41 +0200

include alloc.h in gen_allocdefs.h

alloc() is used in the generated code, so directly include it in this header
instead of all the callers.

Diffstat:
Mgen_allocdefs.h | 2++
Mipalloc.c | 1-
Mprioq.c | 1-
Mqmail-inject.c | 1-
Mqmail-remote.c | 1-
Mqreceipt.c | 1-
Mstralloc_eady.c | 1-
Mstralloc_pend.c | 1-
Mtoken822.c | 1-
9 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/gen_allocdefs.h b/gen_allocdefs.h @@ -1,6 +1,8 @@ #ifndef GEN_ALLOC_DEFS_H #define GEN_ALLOC_DEFS_H +#include "alloc.h" + #define GEN_ALLOC_readyplus(ta,type,field,len,a,base,ta_rplus) \ static int ta_rplus ## _internal (ta *x, unsigned int n, unsigned int pluslen) \ { \ diff --git a/ipalloc.c b/ipalloc.c @@ -1,4 +1,3 @@ -#include "alloc.h" #include "gen_allocdefs.h" #include "ip.h" #include "ipalloc.h" diff --git a/prioq.c b/prioq.c @@ -1,4 +1,3 @@ -#include "alloc.h" #include "gen_allocdefs.h" #include "prioq.h" diff --git a/qmail-inject.c b/qmail-inject.c @@ -4,7 +4,6 @@ #include "subfd.h" #include "sgetopt.h" #include "getln.h" -#include "alloc.h" #include "str.h" #include "fmt.h" #include "hfield.h" diff --git a/qmail-remote.c b/qmail-remote.c @@ -12,7 +12,6 @@ #include "auto_qmail.h" #include "control.h" #include "dns.h" -#include "alloc.h" #include "quote.h" #include "ip.h" #include "ipalloc.h" diff --git a/qreceipt.c b/qreceipt.c @@ -4,7 +4,6 @@ #include "stralloc.h" #include "subfd.h" #include "getln.h" -#include "alloc.h" #include "str.h" #include "hfield.h" #include "token822.h" diff --git a/stralloc_eady.c b/stralloc_eady.c @@ -1,4 +1,3 @@ -#include "alloc.h" #include "stralloc.h" #include "gen_allocdefs.h" diff --git a/stralloc_pend.c b/stralloc_pend.c @@ -1,4 +1,3 @@ -#include "alloc.h" #include "stralloc.h" #include "gen_allocdefs.h" diff --git a/token822.c b/token822.c @@ -1,5 +1,4 @@ #include "stralloc.h" -#include "alloc.h" #include "str.h" #include "token822.h" #include "gen_allocdefs.h"