doc: Let's suggest GNU guidelines for bit checking.
-- While educating students we can also get them to use useful habits, in particular to parenthese bit tests. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
7880335273
commit
ecb0e3280a
@ -4952,7 +4952,7 @@ signature is valid without any restrictions. This means that
|
|||||||
you can check for GPGME_SIGSUM_VALID like this:
|
you can check for GPGME_SIGSUM_VALID like this:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
if (sig.summary & GPGME_SIGSUM_VALID)
|
if ((sig.summary & GPGME_SIGSUM_VALID))
|
||||||
@{
|
@{
|
||||||
..do stuff if valid..
|
..do stuff if valid..
|
||||||
@}
|
@}
|
||||||
|
Loading…
Reference in New Issue
Block a user