[svn] gpg-error - r224 - in trunk: . src
svn author marcus
cvs at cvs.gnupg.org
Mon Oct 26 17:45:05 CET 2009
Author: marcus
Date: 2009-10-26 17:45:05 +0100 (Mon, 26 Oct 2009)
New Revision: 224
Modified:
trunk/ChangeLog
trunk/src/gpg-error.h.in
Log:
2009-10-26 Marcus Brinkmann <marcus at g10code.de>
* src/gpg-error.h.in (GPG_ERR_SOURCE_DIM): Reduce to 128.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-10-16 12:32:05 UTC (rev 223)
+++ trunk/ChangeLog 2009-10-26 16:45:05 UTC (rev 224)
@@ -1,3 +1,7 @@
+2009-10-26 Marcus Brinkmann <marcus at g10code.de>
+
+ * src/gpg-error.h.in (GPG_ERR_SOURCE_DIM): Reduce to 128.
+
2009-09-21 Werner Koch <wk at g10code.com>
* src/err-sources.h.in (GPG_ERR_SOURCE_G13): New.
Modified: trunk/src/gpg-error.h.in
===================================================================
--- trunk/src/gpg-error.h.in 2009-10-16 12:32:05 UTC (rev 223)
+++ trunk/src/gpg-error.h.in 2009-10-26 16:45:05 UTC (rev 224)
@@ -74,7 +74,7 @@
@include err-sources.h.in
/* This is one more than the largest allowed entry. */
- GPG_ERR_SOURCE_DIM = 256
+ GPG_ERR_SOURCE_DIM = 128
} gpg_err_source_t;
@@ -109,10 +109,14 @@
/* Bits 17 to 24 are reserved. */
-/* We use the upper 8 bits of gpg_error_t for error sources. */
+/* We use the upper 7 bits of gpg_error_t for error sources. */
#define GPG_ERR_SOURCE_MASK (GPG_ERR_SOURCE_DIM - 1)
#define GPG_ERR_SOURCE_SHIFT 24
+/* The highest bit is reserved. It shouldn't be used to prevent
+ potential negative numbers when transmitting error values as
+ text. */
+
/* GCC feature test. */
#undef _GPG_ERR_HAVE_CONSTRUCTOR
More information about the Gnupg-commits
mailing list