Home GnuPG

Change gpgrt_pending{,_unlocked} to macros.
12b5188bd495Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
wernerAuthored on Oct 3 2014, 8:22 AM
Parents
rEe8b04bed1093: w32: Make it build again.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rE12b5188bd495: Change gpgrt_pending{,_unlocked} to macros. (authored by Werner Koch <wk@gnupg.org>).Oct 3 2014, 8:22 AM