[Asterisk-cvs] asterisk/include/asterisk strings.h,1.2,1.3
russell at lists.digium.com
russell at lists.digium.com
Tue Jul 12 11:18:14 CDT 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17210/include/asterisk
Modified Files:
strings.h
Log Message:
convert ast_copy_string to use AST_INLINE_API macro (bug #4682)
Index: strings.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/strings.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- strings.h 11 Jul 2005 23:25:31 -0000 1.2
+++ strings.h 12 Jul 2005 15:26:24 -0000 1.3
@@ -135,12 +135,8 @@
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 @@
dst--;
*dst = '\0';
}
-#endif
+)
/*!
\brief Build a string in a buffer, designed to be called repeatedly
More information about the svn-commits
mailing list