[asterisk-commits] tilghman: branch 1.6.1 r177764 - /branches/1.6.1/include/asterisk/strings.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 20 16:15:38 CST 2009
Author: tilghman
Date: Fri Feb 20 16:15:38 2009
New Revision: 177764
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177764
Log:
Oops, last merge broke 1.6.1 branch
Modified:
branches/1.6.1/include/asterisk/strings.h
Modified: branches/1.6.1/include/asterisk/strings.h
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/include/asterisk/strings.h?view=diff&rev=177764&r1=177763&r2=177764
==============================================================================
--- branches/1.6.1/include/asterisk/strings.h (original)
+++ branches/1.6.1/include/asterisk/strings.h Fri Feb 20 16:15:38 2009
@@ -346,6 +346,11 @@
#define DS_STATIC ((struct ast_threadstorage *)3) /* not supported yet */
char str[0]; /*!< The string buffer */
};
+
+#define ast_str_size(a) ((a)->len)
+#define ast_str_strlen(a) ((a)->used)
+#define ast_str_buffer(a) ((a)->str)
+#define ast_str_update(a) (a)->used = strlen((a)->str)
/*!
* \brief Create a malloc'ed dynamic length string
More information about the asterisk-commits
mailing list