[asterisk-commits] dlee: branch dlee/stasis-http r380573 - /team/dlee/stasis-http/include/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 30 15:48:03 CST 2013


Author: dlee
Date: Wed Jan 30 15:47:59 2013
New Revision: 380573

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380573
Log:
Apparently you can't ast_assert from an AST_INLINE_API function. Go figure.

Modified:
    team/dlee/stasis-http/include/asterisk/strings.h

Modified: team/dlee/stasis-http/include/asterisk/strings.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/include/asterisk/strings.h?view=diff&rev=380573&r1=380572&r2=380573
==============================================================================
--- team/dlee/stasis-http/include/asterisk/strings.h (original)
+++ team/dlee/stasis-http/include/asterisk/strings.h Wed Jan 30 15:47:59 2013
@@ -89,8 +89,7 @@
   \param prefix Prefix to look for.
   \param 1 if \a str begins with \a prefix, 0 otherwise.
  */
-AST_INLINE_API(
-int attribute_pure ast_begins_with(const char *str, const char *prefix),
+static int force_inline attribute_pure ast_begins_with(const char *str, const char *prefix)
 {
 	ast_assert(str != NULL);
 	ast_assert(prefix != NULL);
@@ -100,7 +99,6 @@
 	}
 	return *prefix == '\0';
 }
-)
 
 /*
   \brief Checks whether a string ends with another.
@@ -109,8 +107,7 @@
   \param suffix Suffix to look for.
   \param 1 if \a str ends with \a suffix, 0 otherwise.
  */
-AST_INLINE_API(
-int attribute_pure ast_ends_with(const char *str, const char *suffix),
+static int force_inline attribute_pure ast_ends_with(const char *str, const char *suffix)
 {
 	size_t str_len = strlen(str);
 	size_t suffix_len = strlen(suffix);
@@ -126,8 +123,6 @@
 
 	return strcmp(str + str_len - suffix_len, suffix) == 0;
 }
-)
-
 
 /*!
   \brief Gets a pointer to the first non-whitespace character in a string.




More information about the asterisk-commits mailing list