diff options
Diffstat (limited to 'src/gpgrt-int.h')
-rw-r--r-- | src/gpgrt-int.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h index 4db330f..c226e2b 100644 --- a/src/gpgrt-int.h +++ b/src/gpgrt-int.h @@ -85,6 +85,14 @@ #endif /*_GPGRT_NEED_AFLOCAL*/ +/* + * Common helper macros. + */ +#ifndef DIM +# define DIM(array) (sizeof (array) / sizeof (*array)) +#endif + + /* * Local error function prototypes. @@ -103,8 +111,12 @@ void _gpgrt_set_alloc_func (void *(*f)(void *a, size_t n)); void *_gpgrt_realloc (void *a, size_t n); void *_gpgrt_malloc (size_t n); -void _gpgrt_free (void *a); void *_gpgrt_calloc (size_t n, size_t m); +char *_gpgrt_strdup (const char *string); +char *_gpgrt_strconcat (const char *s1, ...) GPGRT_ATTR_SENTINEL(0); +void _gpgrt_free (void *a); +/* The next is only to be used by visibility.c. */ +char *_gpgrt_strconcat_core (const char *s1, va_list arg_ptr); const char *_gpg_error_check_version (const char *req_version); |