Home GnuPG
Diffusion GnuPG a9cbdcfd9c36

gpg: Rename struct pubkey to pukey_s and add pubkey_t.
a9cbdcfd9c36Unpublished

Unpublished Commit · Learn More

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

Description

gpg: Rename struct pubkey to pukey_s and add pubkey_t.

* g10/keydb.h (struct pubkey): Rename to pubkey_s.
(pubkey_t): New.  Change all struct pubkey_s to use this type.
* g10/getkey.c (get_pubkeys): Rename arg keys to r_keys.

It is common in GnuPG to use a suffix of _s for struct names. There
is no technical need for this (actually this pattern comes from pre
ANSI C compilers which had no separate namespaces) but it avoid
surprises when reading the code.

Adding the pubkey_t type is mainly to improve font locking by using
the common suffix _t for a typedefed type.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 23 2015, 3:45 PM
Parents
rG363ed2e892ad: gpg: Simplify status message code from commit b30c15bf.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGa9cbdcfd9c36: gpg: Rename struct pubkey to pukey_s and add pubkey_t. (authored by Werner Koch <wk@gnupg.org>).Dec 23 2015, 3:46 PM