[svn-commits] tilghman: trunk r115159 - in /trunk: ./ include/asterisk/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu May 1 21:56:40 CDT 2008
Author: tilghman
Date: Thu May 1 21:56:39 2008
New Revision: 115159
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115159
Log:
Okay, maybe FreeBSD will like this better.
Modified:
trunk/configure
trunk/configure.ac
trunk/include/asterisk/autoconfig.h.in
trunk/include/asterisk/compiler.h
trunk/include/asterisk/config.h
Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=115159&r1=115158&r2=115159
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu May 1 21:56:39 2008
@@ -437,6 +437,7 @@
AST_GCC_ATTRIBUTE(unused)
AST_GCC_ATTRIBUTE(always_inline)
AST_GCC_ATTRIBUTE(deprecated)
+AST_GCC_ATTRIBUTE(sentinel)
AC_MSG_CHECKING(for -ffunction-sections support)
saved_CFLAGS="${CFLAGS}"
Modified: trunk/include/asterisk/autoconfig.h.in
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/autoconfig.h.in?view=diff&rev=115159&r1=115158&r2=115159
==============================================================================
--- trunk/include/asterisk/autoconfig.h.in (original)
+++ trunk/include/asterisk/autoconfig.h.in Thu May 1 21:56:39 2008
@@ -103,6 +103,9 @@
/* Define to 1 if your GCC C compiler supports the 'pure' attribute. */
#undef HAVE_ATTRIBUTE_pure
+
+/* Define to 1 if your GCC C compiler supports the 'sentinel' attribute. */
+#undef HAVE_ATTRIBUTE_sentinel
/* Define to 1 if your GCC C compiler supports the 'unused' attribute. */
#undef HAVE_ATTRIBUTE_unused
Modified: trunk/include/asterisk/compiler.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compiler.h?view=diff&rev=115159&r1=115158&r2=115159
==============================================================================
--- trunk/include/asterisk/compiler.h (original)
+++ trunk/include/asterisk/compiler.h Thu May 1 21:56:39 2008
@@ -53,4 +53,10 @@
#define attribute_malloc
#endif
+#if HAVE_ATTRIBUTE_sentinel
+#define attribute_sentinel __attribute__((sentinel))
+#else
+#define attribute_sentinel
+#endif
+
#endif /* _ASTERISK_COMPILER_H */
Modified: trunk/include/asterisk/config.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/config.h?view=diff&rev=115159&r1=115158&r2=115159
==============================================================================
--- trunk/include/asterisk/config.h (original)
+++ trunk/include/asterisk/config.h Thu May 1 21:56:39 2008
@@ -182,8 +182,8 @@
* that unlike the variables in ast_config, the resulting list of variables
* MUST be freed with ast_variables_destroy() as there is no container.
*/
-struct ast_variable *ast_load_realtime(const char *family, ...) __attribute__((sentinel));
-struct ast_variable *ast_load_realtime_all(const char *family, ...) __attribute__((sentinel));
+struct ast_variable *ast_load_realtime(const char *family, ...) attribute_sentinel;
+struct ast_variable *ast_load_realtime_all(const char *family, ...) attribute_sentinel;
/*!
* \brief Retrieve realtime configuration
@@ -194,7 +194,7 @@
* is thus stored inside a taditional ast_config structure rather than
* just returning a linked list of variables.
*/
-struct ast_config *ast_load_realtime_multientry(const char *family, ...) __attribute__((sentinel));
+struct ast_config *ast_load_realtime_multientry(const char *family, ...) attribute_sentinel;
/*!
* \brief Update realtime configuration
@@ -204,7 +204,7 @@
* This function is used to update a parameter in realtime configuration space.
*
*/
-int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...) __attribute__((sentinel));
+int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...) attribute_sentinel;
/*!
* \brief Create realtime configuration
@@ -212,7 +212,7 @@
* This function is used to create a parameter in realtime configuration space.
*
*/
-int ast_store_realtime(const char *family, ...) __attribute__((sentinel));
+int ast_store_realtime(const char *family, ...) attribute_sentinel;
/*!
* \brief Destroy realtime configuration
@@ -223,7 +223,7 @@
* Additional params are used as keys.
*
*/
-int ast_destroy_realtime(const char *family, const char *keyfield, const char *lookup, ...) __attribute__((sentinel));
+int ast_destroy_realtime(const char *family, const char *keyfield, const char *lookup, ...) attribute_sentinel;
/*!
* \brief Check if realtime engine is configured for family
More information about the svn-commits
mailing list