gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r3057 - GNUnet/src/include


From: durner
Subject: [GNUnet-SVN] r3057 - GNUnet/src/include
Date: Sun, 25 Jun 2006 13:48:50 -0700 (PDT)

Author: durner
Date: 2006-06-25 13:48:44 -0700 (Sun, 25 Jun 2006)
New Revision: 3057

Added:
   GNUnet/src/include/gnunet_util_common.h
Modified:
   GNUnet/src/include/Makefile.am
   GNUnet/src/include/gnunet_util_error.h
Log:
move common definitions to separate header

Modified: GNUnet/src/include/Makefile.am
===================================================================
--- GNUnet/src/include/Makefile.am      2006-06-25 20:19:03 UTC (rev 3056)
+++ GNUnet/src/include/Makefile.am      2006-06-25 20:48:44 UTC (rev 3057)
@@ -41,6 +41,7 @@
   gnunet_transport.h \
   gnunet_transport_service.h \
   gnunet_util.h \
+  gnunet_util_common.h \
   gnunet_util_config.h \
   gnunet_util_config_impl.h \
   gnunet_util_containers.h \

Added: GNUnet/src/include/gnunet_util_common.h
===================================================================
--- GNUnet/src/include/gnunet_util_common.h     2006-06-25 20:19:03 UTC (rev 
3056)
+++ GNUnet/src/include/gnunet_util_common.h     2006-06-25 20:48:44 UTC (rev 
3057)
@@ -0,0 +1,42 @@
+/*
+     This file is part of GNUnet.
+     (C) 2006 Christian Grothoff (and other contributing authors)
+
+     GNUnet is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published
+     by the Free Software Foundation; either version 2, or (at your
+     option) any later version.
+
+     GNUnet is distributed in the hope that it will be useful, but
+     WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     General Public License for more details.
+
+     You should have received a copy of the GNU General Public License
+     along with GNUnet; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+     Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file include/gnunet_util_common.h
+ * @brief commonly used definitions
+ *
+ * @author Nils Durner
+ */
+
+#ifndef GNUNET_UTIL_COMMON_H_
+#define GNUNET_UTIL_COMMON_H_
+
+/**
+ * Named constants for return values.  The following
+ * invariants hold: "NO == 0" (to allow "if (NO)")
+ * "OK != SYSERR", "OK != NO", "NO != SYSERR"
+ * and finally "YES != NO".
+ */
+#define OK      1
+#define SYSERR -1
+#define YES     1
+#define NO      0
+
+#endif /*GNUNET_UTIL_COMMON_H_*/

Modified: GNUnet/src/include/gnunet_util_error.h
===================================================================
--- GNUnet/src/include/gnunet_util_error.h      2006-06-25 20:19:03 UTC (rev 
3056)
+++ GNUnet/src/include/gnunet_util_error.h      2006-06-25 20:48:44 UTC (rev 
3057)
@@ -37,19 +37,11 @@
 #endif
 #endif
 
-/**
- * Named constants for return values.  The following
- * invariants hold: "NO == 0" (to allow "if (NO)")
- * "OK != SYSERR", "OK != NO", "NO != SYSERR"
- * and finally "YES != NO".
- */
-#define OK      1
-#define SYSERR -1
-#define YES     1
-#define NO      0
+#include "gnunet_util_common.h"
 
 
 
+
 /**
  * Context required to log messages.
  */





reply via email to

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