From 95301a8b8ece4b6d823e84bcff8a67d518840491 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 9 Jan 2026 19:19:17 +0100 Subject: cpp: fix pasting ident+keyword --- test/07-pp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/07-pp.c') diff --git a/test/07-pp.c b/test/07-pp.c index 071b359..14bef33 100644 --- a/test/07-pp.c +++ b/test/07-pp.c @@ -34,6 +34,22 @@ s #define gnu_ext(a, c...) a(c) +# define STACK_OF(type) struct stack_st_##type + +/* Helper macro for internal use */ +# define SKM_DEFINE_STACK_OF_INTERNAL(t1, t2, t3) \ + STACK_OF(t1); \ + typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \ + typedef void (*sk_##t1##_freefunc)(t3 *a); \ + typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \ + +struct crypto_ex_data_st { + void *ctx; + STACK_OF(void) *sk; +}; + +SKM_DEFINE_STACK_OF_INTERNAL(void, void, void) + #ifdef CMD_WORKING int main(V) -- cgit v1.2.3