diff options
author | Ben Laurie <ben@openssl.org> | 2000-05-16 19:53:50 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2000-05-16 19:53:50 +0000 |
commit | f2716dada0527bcf200e628fd572514bd395fbfb (patch) | |
tree | 553848697e188489bedef2341b6f1889503cfe73 /crypto/stack | |
parent | b4604683fa66963af4596aff7517c3a009ba7087 (diff) |
Typesafety Thought Police Part 2.
Diffstat (limited to 'crypto/stack')
-rw-r--r-- | crypto/stack/safestack.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h index c3b2dd799d..da631581f6 100644 --- a/crypto/stack/safestack.h +++ b/crypto/stack/safestack.h @@ -57,13 +57,14 @@ #include <openssl/stack.h> -#define STACK_OF(type) STACK_##type +#define STACK_OF(type) struct stack_st_##type +#define PREDECLARE_STACK_OF(type) STACK_OF(type); #define DECLARE_STACK_OF(type) \ -typedef struct stack_st_##type \ +STACK_OF(type) \ { \ STACK stack; \ - } STACK_OF(type); \ + }; \ STACK_OF(type) *sk_##type##_new(int (*cmp)(type **,type **)); \ STACK_OF(type) *sk_##type##_new_null(void); \ void sk_##type##_free(STACK_OF(type) *sk); \ |