diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/memory.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 9c2b65312..f83aae32b 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2003-09-27 Werner Koch <[email protected]> + + * memory.h (xmalloc): Define xmalloc macros in terms of m_alloc. + 2003-09-04 David Shaw <[email protected]> * cipher.h: Drop TIGER/192 support. diff --git a/include/memory.h b/include/memory.h index 959f2999e..2482d083f 100644 --- a/include/memory.h +++ b/include/memory.h @@ -90,4 +90,13 @@ unsigned secmem_get_flags(void); EXTERN_UNLESS_MAIN_MODULE int memory_debug_mode; EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode; +/* To prepare a migration to the xmalloc suite of function as used in + 1.9 we define a couple of macros. */ +#define xmalloc(n) m_alloc ((n)) +#define xcalloc(n,m) m_alloc_clear ((n)*(m)) +#define xmalloc_secure(n) m_alloc_secure (n) +#define xcalloc_secure(n) m_alloc_secure_clear ((n)*(m)) +#define xfree(a) m_free (a) + + #endif /*G10_MEMORY_H*/ |