[Nagios-checkins] SF.net SVN: nagios:[2096] nagioscore/trunk

ageric at users.sourceforge.net ageric at users.sourceforge.net
Sun Aug 26 20:02:42 UTC 2012


Revision: 2096
          http://nagios.svn.sourceforge.net/nagios/?rev=2096&view=rev
Author:   ageric
Date:     2012-08-26 20:02:42 +0000 (Sun, 26 Aug 2012)
Log Message:
-----------
lib/lnag-utils.h: Janitor fixes

Doxygen stuff, and making __attribute__ available for all library code.

Signed-off-by: Andreas Ericsson <ae at op5.se>

Modified Paths:
--------------
    nagioscore/trunk/include/nagios.h
    nagioscore/trunk/lib/lnag-utils.h

Modified: nagioscore/trunk/include/nagios.h
===================================================================
--- nagioscore/trunk/include/nagios.h	2012-08-26 20:02:16 UTC (rev 2095)
+++ nagioscore/trunk/include/nagios.h	2012-08-26 20:02:42 UTC (rev 2096)
@@ -20,9 +20,6 @@
 #ifndef _NAGIOS_H
 #define _NAGIOS_H
 
-#ifndef __GNUC__
-# define __attribute__(x) /* nothing */
-#endif
 #ifndef NSCORE
 # define NSCORE
 #endif

Modified: nagioscore/trunk/lib/lnag-utils.h
===================================================================
--- nagioscore/trunk/lib/lnag-utils.h	2012-08-26 20:02:16 UTC (rev 2095)
+++ nagioscore/trunk/lib/lnag-utils.h	2012-08-26 20:02:42 UTC (rev 2096)
@@ -1,20 +1,32 @@
 #ifndef LIBNAGIOS_lnag_utils_h__
 #define LIBNAGIOS_lnag_utils_h__
 
+/**
+ * @file lnag-utils.h
+ * @brief libnagios helper functions that lack a "real" home.
+ *
+ * @{
+ */
+
 #ifdef __cplusplus
+/**
+ * C++ compatibility macro that avoids confusing indentation programs
+ */
 # define NAGIOS_BEGIN_DECL extern "C" {
+/**
+ * Use at end of header file declarations to obtain C++ compatibility
+ * ... without confusing indentation programs
+ */
 # define NAGIOS_END_DECL }
 #else
 # define NAGIOS_BEGIN_DECL /* nothing */
 # define NAGIOS_END_DECL /* more of nothing */
 #endif
 
-/**
- * @file lnag-utils.h
- * @brief libnagios helper functions that lack a "real" home.
- *
- * @{
- */
+#ifndef __GNUC__
+/** So we can safely use the gcc extension */
+# define __attribute__(x) /* nothing */
+#endif
 
 /*
  * These macros are widely used throughout Nagios

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Nagios-commits mailing list