Remove an XXX comment noting that it would be nice for a declaration to be

inside of a function.  (Yes, it would!)  Replace it with a note that explains
why it can't be done using the way that the AST_THREADSTORAGE macro is
currently defined.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-07-30 19:31:27 +00:00
parent 935982d15b
commit 06f618a1ca

View File

@@ -832,8 +832,15 @@ static int send_string(struct mansession *s, char *string)
return n < 0 ? -1 : 0;
}
/* XXX see if it can be moved inside the function */
/*!
* \brief thread local buffer for astman_append
*
* \note This can not be defined within the astman_append() function
* because it declares a couple of functions that get used to
* initialize the thread local storage key.
*/
AST_THREADSTORAGE(astman_append_buf);
/*! \brief initial allocated size for the astman_append_buf */
#define ASTMAN_APPEND_BUF_INITSIZE 256
/*!