diff options
| author | 2026-01-09 19:19:17 +0100 | |
|---|---|---|
| committer | 2026-01-09 19:24:41 +0100 | |
| commit | 95301a8b8ece4b6d823e84bcff8a67d518840491 (patch) | |
| tree | 11b0aba86ae26b5b3330a01c9d082dc92405a3b2 /test | |
| parent | 0355a01d205983737d0fe1bcb1d542be6b12491e (diff) | |
cpp: fix pasting ident+keyword
Diffstat (limited to 'test')
| -rw-r--r-- | test/07-pp.c | 16 |
1 files changed, 16 insertions, 0 deletions
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) |