From d3e9514ff82ff767fc78ce485aef71ba56f3c0d5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 28 Sep 2015 09:59:53 +0200 Subject: Add GPG_ERR_FALSE and GPG_ERR_TRUE error codes. Signed-off-by: Werner Koch --- 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 -- cgit v1.2.3