nightmaremail

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

commit 9175e79ba34ff745dfdb0948ba04aedff07f2f8e
parent d52e4b288fe54c6b056d51b0e42768f95d6563d0
Author: Rolf Eike Beer <eike@sf-mail.de>
Date:   Fri,  8 May 2020 20:26:36 +0200

genalloc: reorder functions in header

This only moves the code blocks, but does not change any code at all.

Diffstat:
Mgen_allocdefs.h | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gen_allocdefs.h b/gen_allocdefs.h @@ -1,11 +1,11 @@ #ifndef GEN_ALLOC_DEFS_H #define GEN_ALLOC_DEFS_H -#define GEN_ALLOC_ready(ta,type,field,len,a,i,n,x,base,ta_ready) \ -int ta_ready(x,n) register ta *x; register unsigned int n; \ +#define GEN_ALLOC_readyplus(ta,type,field,len,a,i,n,x,base,ta_rplus) \ +int ta_rplus(x,n) register ta *x; register unsigned int n; \ { register unsigned int i; \ if (x->field) { \ - i = x->a; \ + i = x->a; n += x->len; \ if (n > i) { \ x->a = base + n + (n >> 3); \ if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ @@ -14,11 +14,11 @@ int ta_ready(x,n) register ta *x; register unsigned int n; \ x->len = 0; \ return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } -#define GEN_ALLOC_readyplus(ta,type,field,len,a,i,n,x,base,ta_rplus) \ -int ta_rplus(x,n) register ta *x; register unsigned int n; \ +#define GEN_ALLOC_ready(ta,type,field,len,a,i,n,x,base,ta_ready) \ +int ta_ready(x,n) register ta *x; register unsigned int n; \ { register unsigned int i; \ if (x->field) { \ - i = x->a; n += x->len; \ + i = x->a; \ if (n > i) { \ x->a = base + n + (n >> 3); \ if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \