mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
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:
@@ -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
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user