From 12b5188bd495e45775c34c8e6263e6be177c03da Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 3 Oct 2014 08:22:53 +0200 Subject: Change gpgrt_pending{,_unlocked} to macros. * src/gpg-error.h.in (gpgrt_pending): Change to a macro. (gpgrt_pending_unlocked): Change to a macro. (_gpgrt_pending, _gpgrt_pending_unlocked): New private functions. * src/visibility.c, src/visibility.h: Change accordingly. * src/gpg-error.vers, src/gpg-error.def.in: Ditto. * src/estream.c (_gpgrt_pending_unlocked): Rename to _gpgrt__pending_unlocked. (_gpgrt_pending): Rename to _gpgrt__pending. -- The function are supposed to be used with gprt_getc and thus we need to avoid the function call overhead. We may want to change them to inline functions, though. gpgrt_pending is changed to a macro with the idea that we eventually can export the samestream flags and thus avoid the function call overhead in the samethread case too. --- src/visibility.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/visibility.c') diff --git a/src/visibility.c b/src/visibility.c index f26f58c..9213ce9 100644 --- a/src/visibility.c +++ b/src/visibility.c @@ -298,15 +298,15 @@ gpgrt_funlockfile (estream_t stream) } int -gpgrt_pending (estream_t stream) +_gpgrt_pending (estream_t stream) { - return _gpgrt_pending (stream); + return _gpgrt__pending (stream); } int -gpgrt_pending_unlocked (estream_t stream) +_gpgrt_pending_unlocked (estream_t stream) { - return _gpgrt_pending_unlocked (stream); + return _gpgrt__pending_unlocked (stream); } int -- cgit v1.2.3