From 49693e8e45ec9233f779e8f1d8a30f54b683c6ff Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 4 Nov 2009 18:13:44 +0000 Subject: 2009-11-04 Marcus Brinkmann * ath.h (ath_self): New prototype. Include * ath.c, ath-pth.c, ath-pthread.c (ath_self): New function. * debug.h: Rewrite most macros to beautify debug output. (_gpgme_debug_buffer): Remove tagname and tag argument. (_gpgme_debug_frame_begin, _gpgme_debug_frame_end): New prototypes. * debug.c: Include . Don't include assuan.h. (frame_nr, FRAME_NR): New thread-specific variable and macro. (debug_init): Do not initialize assuan. Call _gpgme_debug after initialization instead using printf directly. (_gpgme_debug): Do not call debug_init (we now ensure proper initialization by user). Add timestamp and thread/process ID. (_gpgme_debug_buffer): Do not take tagname and tag argument. (_gpgme_debug_frame_begin, _gpgme_debug_frame_end): New functions. * version.c (gpgme_check_version_internal, gpgme_check_version): Fix debug string. Do not initialize assuan. * posix-io.c (get_max_fds): Use 0 not NULL (nicer debug output). --- src/ath.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ath.h') diff --git a/src/ath.h b/src/ath.h index 7491f72e..26d0cb25 100644 --- a/src/ath.h +++ b/src/ath.h @@ -21,6 +21,9 @@ #ifndef ATH_H #define ATH_H +#ifdef HAVE_STDINT_H +#include +#endif #ifdef HAVE_W32_SYSTEM /* fixme: Check how we did it in libgcrypt. */ struct msghdr { int dummy; }; @@ -68,6 +71,8 @@ typedef void *ath_mutex_t; #define ATH_MUTEX_INITIALIZER 0; +uintptr_t ath_self (void); + /* Functions for mutual exclusion. */ int ath_mutex_init (ath_mutex_t *mutex); int ath_mutex_destroy (ath_mutex_t *mutex); -- cgit v1.2.3