aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-01 22:44:34 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-01 22:44:34 +0000
commit85a2885d4d8b0682d75f63ec7642c91509bc92bc (patch)
tree54be8ef17eee6eca550e1c721f215084edc0c53e /main
parent499ccb7760af9f6c38d1729d0580faaa1f0252ca (diff)
Merged revisions 185912 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r185912 | tilghman | 2009-04-01 15:13:28 -0500 (Wed, 01 Apr 2009) | 4 lines Merge changes from str_substitution that are unrelated to that branch. Included is a small bugfix to an ast_str helper, but most of these changes are simply doxygen fixes. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@185947 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/ast_expr2f.c17
-rw-r--r--main/manager.c2
-rw-r--r--main/strings.c5
-rw-r--r--main/taskprocessor.c6
-rw-r--r--main/tdd.c4
5 files changed, 14 insertions, 20 deletions
diff --git a/main/ast_expr2f.c b/main/ast_expr2f.c
index 528afd9ae..7c8d2f824 100644
--- a/main/ast_expr2f.c
+++ b/main/ast_expr2f.c
@@ -1962,8 +1962,8 @@ YY_BUFFER_STATE ast_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
/** Setup the input buffer state to scan the given bytes. The next call to ast_yylex() will
* scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
* @param yyscanner The scanner object.
* @return the newly allocated buffer state object.
*/
@@ -2124,7 +2124,7 @@ void ast_yyset_lineno (int line_number , yyscan_t yyscanner)
}
/** Set the current column.
- * @param line_number
+ * @param column_no
* @param yyscanner The scanner object.
*/
void ast_yyset_column (int column_no , yyscan_t yyscanner)
@@ -2387,19 +2387,12 @@ void ast_yyfree(void *ptr, yyscan_t yyscanner)
int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
{
- struct parse_io io;
+ struct parse_io io = { .string = expr, .chan = chan };
int return_value = 0;
-
- memset(&io, 0, sizeof(io));
- io.string = expr; /* to pass to the error routine */
- io.chan = chan;
-
+
ast_yylex_init(&io.scanner);
-
ast_yy_scan_string(expr, io.scanner);
-
ast_yyparse ((void *) &io);
-
ast_yylex_destroy(io.scanner);
if (!io.val) {
diff --git a/main/manager.c b/main/manager.c
index b5cc844bd..2282417c7 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -499,7 +499,7 @@ static struct ast_manager_user *get_manager_by_name_locked(const char *name)
}
/*! \brief Get displayconnects config option.
- * \param s manager session to get parameter from.
+ * \param session manager session to get parameter from.
* \return displayconnects config option value.
*/
static int manager_displayconnects (struct mansession_session *session)
diff --git a/main/strings.c b/main/strings.c
index 88c240ff5..aecf4099e 100644
--- a/main/strings.c
+++ b/main/strings.c
@@ -66,7 +66,7 @@ int __ast_str_helper(struct ast_str **buf, size_t max_len,
}
/*
* Ask vsnprintf how much space we need. Remember that vsnprintf
- * does not count the final '\0' so we must add 1.
+ * does not count the final <code>'\0'</code> so we must add 1.
*/
va_copy(aq, ap);
res = vsnprintf((*buf)->__AST_STR_STR + offset, (*buf)->__AST_STR_LEN - offset, fmt, aq);
@@ -156,11 +156,10 @@ char *__ast_str_helper2(struct ast_str **buf, size_t maxlen, const char *src, si
ptr += (*buf)->__AST_STR_STR - oldbase;
}
}
- if (__builtin_expect(!(maxsrc && maxlen), 0)) {
+ if (__builtin_expect(!maxlen, 0)) {
ptr--;
}
*ptr = '\0';
- (*buf)->__AST_STR_USED--;
return (*buf)->__AST_STR_STR;
}
diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 88ba8a07e..9aa86ce00 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -84,10 +84,10 @@ struct ast_taskprocessor {
/*! \brief tps_singletons is the astobj2 container for taskprocessor singletons */
static struct ao2_container *tps_singletons;
-/*! \brief CLI 'taskprocessor ping <blah>' operation requires a ping condition */
+/*! \brief CLI <example>taskprocessor ping &lt;blah&gt;</example> operation requires a ping condition */
static ast_cond_t cli_ping_cond;
-/*! \brief CLI 'taskprocessor ping <blah>' operation requires a ping condition lock */
+/*! \brief CLI <example>taskprocessor ping &lt;blah&gt;</example> operation requires a ping condition lock */
AST_MUTEX_DEFINE_STATIC(cli_ping_cond_lock);
/*! \brief The astobj2 hash callback for taskprocessors */
@@ -101,7 +101,7 @@ static void *tps_processing_function(void *data);
/*! \brief Destroy the taskprocessor when its refcount reaches zero */
static void tps_taskprocessor_destroy(void *tps);
-/*! \brief CLI 'taskprocessor ping <blah>' handler function */
+/*! \brief CLI <example>taskprocessor ping &lt;blah&gt;</example> handler function */
static int tps_ping_handler(void *datap);
/*! \brief Remove the front task off the taskprocessor queue */
diff --git a/main/tdd.c b/main/tdd.c
index 41f2ed2fd..2ae80a3be 100644
--- a/main/tdd.c
+++ b/main/tdd.c
@@ -274,7 +274,9 @@ static inline float tdd_getcarrier(float *cr, float *ci, int bit)
PUT_TDD_STOP; /* Stop bit */ \
} while(0);
-/*! Generate TDD hold tone */
+/*! Generate TDD hold tone
+ * \param buf Result buffer
+ * \todo How big should this be??? */
int tdd_gen_holdtone(unsigned char *buf)
{
int bytes = 0;