gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: introduce enum for generic return values


From: gnunet
Subject: [gnunet] branch master updated: introduce enum for generic return values
Date: Wed, 08 Apr 2020 20:34:39 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new ccfb2c2e6 introduce enum for generic return values
ccfb2c2e6 is described below

commit ccfb2c2e6c71bbadf3f7f74b19b4c4128a1a09b6
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 8 20:30:05 2020 +0200

    introduce enum for generic return values
---
 src/include/gnunet_common.h | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index d84f9d77e..212c78f54 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -80,10 +80,15 @@ extern "C" {
  * GNUNET_SYSERR`, `GNUNET_OK != GNUNET_NO`, `GNUNET_NO !=
  * GNUNET_SYSERR` and finally `GNUNET_YES != GNUNET_NO`.
  */
-#define GNUNET_OK 1
-#define GNUNET_SYSERR -1
-#define GNUNET_YES 1
-#define GNUNET_NO 0
+enum GNUNET_GenericReturnValue
+{
+  GNUNET_SYSERR = -1,
+  GNUNET_NO = 0,
+  GNUNET_OK = 1,
+  /* intentionally identical to #GNUNET_OK! */
+  GNUNET_YES = 1,
+};
+
 
 #define GNUNET_MIN(a, b) (((a) < (b)) ? (a) : (b))
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]