aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/strings.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 15:26:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 15:26:24 +0000
commit96afbd28904b34203a3cff3fa22bda883b950b10 (patch)
treee03c553bf26ea496fde0f4b79fa8cb341f8bb76b /include/asterisk/strings.h
parent023e0980e026fb312dce9a955ad38035c49343be (diff)
convert ast_copy_string to use AST_INLINE_API macro (bug #4682)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6108 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/strings.h')
-rwxr-xr-xinclude/asterisk/strings.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 4fef8691c..2b845a837 100755
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -135,12 +135,8 @@ char *ast_strip_quoted(char *s, const char *beg_quotes, const char *end_quotes);
reduced buffer size to this function (unlike \a strncpy), and the buffer does not need
to be initialized to zeroes prior to calling this function.
*/
-void ast_copy_string(char *dst, const char *src, size_t size);
-#if !defined(LOW_MEMORY) && !defined(AST_API_MODULE)
-extern inline
-#endif
-#if !defined(LOW_MEMORY) || defined(AST_API_MODULE)
-void ast_copy_string(char *dst, const char *src, size_t size)
+AST_INLINE_API(
+void ast_copy_string(char *dst, const char *src, size_t size),
{
while (*src && size) {
*dst++ = *src++;
@@ -150,7 +146,7 @@ void ast_copy_string(char *dst, const char *src, size_t size)
dst--;
*dst = '\0';
}
-#endif
+)
/*!
\brief Build a string in a buffer, designed to be called repeatedly