diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-12 19:47:18 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-12 19:47:18 +0200 |
commit | 979a7f4a10151b13a31298398935b93f4ca287f1 (patch) | |
tree | cdc42fa93f4033d305d70c7e6c1271d251f0fc68 | |
parent | 339954714f69bbd395aa9bbe46850dcaa98e9f29 (diff) |
Make macros in genalloc generate static definitions.
-rw-r--r-- | include/genalloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/genalloc.h b/include/genalloc.h index 351fb98..ebeef9f 100644 --- a/include/genalloc.h +++ b/include/genalloc.h @@ -48,7 +48,7 @@ /* file: gen_allocdefs.h (deprecated) */ // used in: ipalloc, prioq, qmail-remote, qmail-inject, token822 #define GEN_ALLOC_ready(ta, type, field, len, a, i, n, x, base, ta_ready) \ - int ta_ready(ta *x, unsigned int n) \ + static int ta_ready(ta *x, unsigned int n) \ { \ unsigned int i; \ if (x->field) { \ @@ -66,7 +66,7 @@ } #define GEN_ALLOC_readyplus(ta, type, field, len, a, i, n, x, base, ta_rplus) \ - int ta_rplus(ta *x, unsigned int n) \ + static int ta_rplus(ta *x, unsigned int n) \ { \ unsigned int i; \ if (x->field) { \ @@ -85,7 +85,7 @@ } #define GEN_ALLOC_append(ta, type, field, len, a, i, n, x, base, ta_rplus, ta_append) \ - int ta_append(ta *x, type *i) \ + static int ta_append(ta *x, type *i) \ { \ if (!ta_rplus(x, 1)) return 0; \ x->field[x->len++] = *i; \ |