[Pkg-gnupg-commit] [libgpg-error] 05/19: Add GPG_ERR_FALSE and GPG_ERR_TRUE error codes.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Dec 15 15:55:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit d3e9514ff82ff767fc78ce485aef71ba56f3c0d5
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Sep 28 09:59:53 2015 +0200

    Add GPG_ERR_FALSE and GPG_ERR_TRUE error codes.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 NEWS               | 2 ++
 doc/errorref.txt   | 6 ++++++
 src/err-codes.h.in | 3 ++-
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 9bfc5b3..8df0a14 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,8 @@ Noteworthy changes in version 1.21 (unreleased) [C17/A17/R0]
  es_set_nonblock                  NEW macro.
  es_get_nonblock                  NEW macro.
  es_poll                          NEW macro.
+ GPG_ERR_TRUE                     NEW.
+ GPG_ERR_FALSE                    NEW.
 
 
 Noteworthy changes in version 1.20 (2015-08-26) [C16/A16/R0]
diff --git a/doc/errorref.txt b/doc/errorref.txt
index a369fbf..268454f 100644
--- a/doc/errorref.txt
+++ b/doc/errorref.txt
@@ -768,8 +768,14 @@ GPG_ERR_INV_LOCK_OBJ		Invalid lock object
              internal problem in libgpg-error or more likely a
              programming error.
 
+GPG_ERR_TRUE			True
 
+    Used to retrun the boolena value True.  Note that GPG_ERR_NO_ERROR
+    (with the value 0) is also often used to indicate the value true.
 
+GPG_ERR_FALSE			False
+
+    Used to return the boolean value False.
 
 GPG_ERR_LDAP_GENERAL		LDAP General error
 
diff --git a/src/err-codes.h.in b/src/err-codes.h.in
index a8846e4..e05d41f 100644
--- a/src/err-codes.h.in
+++ b/src/err-codes.h.in
@@ -283,7 +283,8 @@
 253	GPG_ERR_KEY_ON_CARD		Not possible with a card based key
 254	GPG_ERR_INV_LOCK_OBJ		Invalid lock object
 
-# 255 and 256 are RFU.
+255	GPG_ERR_TRUE			True
+256	GPG_ERR_FALSE			False
 
 # Error codes pertaining to the Assuan IPC interface
 257	GPG_ERR_ASS_GENERAL		General IPC error

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list