diff options
author | Niels Möller <nisse@lysator.liu.se> | 1998-12-31 05:06:30 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 1998-12-31 05:06:30 +0100 |
commit | fb2c4cd19b13a64699bcd18ff1d3f03e0211940b (patch) | |
tree | a955f9cb9a4bf94c1362168f6cfa41934455d35f /include | |
parent | 6d47bab98a1c5c29228be831d384bfe114f1eec9 (diff) | |
download | nettle-fb2c4cd19b13a64699bcd18ff1d3f03e0211940b.tar.gz |
Moved some macros from lsh_types.h to crypto_types.h. This is not
quite right, it would be better to move stuff out into an lsh_object.h
file.
Rev: src/symmetric/include/crypto_types.h:1.5
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto_types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/crypto_types.h b/include/crypto_types.h index c0212b46..1c42f6cf 100644 --- a/include/crypto_types.h +++ b/include/crypto_types.h @@ -13,6 +13,13 @@ # define UINT8 unsigned INT8 #else /* !PIKE */ +/* FIXME: Reorganize the header files for definitions. This stuff + * should probably live in lsh_types.h, and object definitions should + * move into a separate header file. + * + * FIXME: some of the crypto implementations could well use the + * READ_UINT32 and WRITE_UINT32 macros. */ + # ifdef LSH # ifdef HAVE_CONFIG_H # include "config.h" @@ -44,4 +51,14 @@ # endif /* !PIKE */ #endif +#ifdef __GNUC__ +#define NORETURN __attribute__ ((noreturn)) +#define PRINTF_STYLE(f, a) __attribute__ ((format(printf, f, a))) +#define UNUSED __attribute__ ((unused)) +#else +#define NORETURN +#define PRINTF_STYLE(f, a) +#define UNUSED +#endif + #endif /* CRYPTO_TYPES_H_INCLUDED */ |