mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
docs: Fix various typos in main/
Found via `codespell -q 3 -S "./CREDITS" -L abd,asent,atleast,childrens,contentn,crypted,dne,durationm,exten,inout,leapyear,nd,oclock,offsetp,ot,parm,parms,requestor,ser,slanguage,slin,thirdparty,varn,varns,ues`
(cherry picked from commit 03ec0f2d17
)
This commit is contained in:
committed by
Asterisk Development Team
parent
7300a506d0
commit
a82e7c2f89
@@ -629,7 +629,7 @@ static int xmldoc_has_specialtags(struct ast_xml_node *fixnode)
|
||||
* \param rootname Name of the application, function, option, etc. to build the syntax.
|
||||
* \param childname The name of each parameter node.
|
||||
* \param printparenthesis Boolean if we must print parenthesis if not parameters are found in the rootnode.
|
||||
* \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the begining/end.
|
||||
* \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the beginning/end.
|
||||
*
|
||||
* \retval NULL on error.
|
||||
* \retval An ast_malloc'ed string with the syntax generated.
|
||||
@@ -757,7 +757,7 @@ static char *xmldoc_get_syntax_fun(struct ast_xml_node *rootnode, const char *ro
|
||||
paramname = xmldoc_get_syntax_fun(node, argname, "argument", prnparenthesis, prnparenthesis);
|
||||
ast_xml_free_attr(argname);
|
||||
} else {
|
||||
/* Malformed XML, print **UNKOWN** */
|
||||
/* Malformed XML, print **UNKNOWN** */
|
||||
paramname = ast_strdup("**unknown**");
|
||||
}
|
||||
} else {
|
||||
@@ -923,7 +923,7 @@ static char *xmldoc_parse_cmd_enumlist(struct ast_xml_node *fixnode)
|
||||
*
|
||||
* \param fixnode The \<syntax\> node pointer.
|
||||
* \param name The name of the 'command'.
|
||||
* \param printname Print the name of the command before the paramters?
|
||||
* \param printname Print the name of the command before the parameters?
|
||||
*
|
||||
* \return On error, return just 'name'.
|
||||
* \return On success return the generated syntax.
|
||||
@@ -1441,7 +1441,7 @@ static int xmldoc_parse_specialtags(struct ast_xml_node *fixnode, const char *ta
|
||||
|
||||
/* parse <para> elements inside special tags. */
|
||||
for (node = ast_xml_node_get_children(node); node; node = ast_xml_node_get_next(node)) {
|
||||
/* first <para> just print it without tabs at the begining. */
|
||||
/* first <para> just print it without tabs at the beginning. */
|
||||
if ((xmldoc_parse_para(node, "", posttabs, buffer) == 2)
|
||||
|| (xmldoc_parse_info(node, "", posttabs, buffer) == 2)) {
|
||||
ret = 2;
|
||||
@@ -1509,7 +1509,7 @@ static int xmldoc_parse_argument(struct ast_xml_node *fixnode, int insideparamet
|
||||
* \brief Parse a \<variable\> node inside a \<variablelist\> node.
|
||||
*
|
||||
* \param node The variable node to parse.
|
||||
* \param tabs A string to be appended at the begining of the output that will be stored
|
||||
* \param tabs A string to be appended at the beginning of the output that will be stored
|
||||
* in buffer.
|
||||
* \param buffer This must be an already created ast_str. It will be used
|
||||
* to store the result (if already has something it will be appended to the current
|
||||
@@ -1541,7 +1541,7 @@ static int xmldoc_parse_variable(struct ast_xml_node *node, const char *tabs, st
|
||||
ast_str_append(buffer, 0, "\n");
|
||||
printedpara = 1;
|
||||
}
|
||||
/* Parse each <value name='valuename'>desciption</value> */
|
||||
/* Parse each <value name='valuename'>description</value> */
|
||||
valname = ast_xml_get_attribute(tmp, "name");
|
||||
if (valname) {
|
||||
ret = 1;
|
||||
@@ -1570,7 +1570,7 @@ static int xmldoc_parse_variable(struct ast_xml_node *node, const char *tabs, st
|
||||
* \brief Parse a \<variablelist\> node and put all the output inside 'buffer'.
|
||||
*
|
||||
* \param node The variablelist node pointer.
|
||||
* \param tabs A string to be appended at the begining of the output that will be stored
|
||||
* \param tabs A string to be appended at the beginning of the output that will be stored
|
||||
* in buffer.
|
||||
* \param buffer This must be an already created ast_str. It will be used
|
||||
* to store the result (if already has something it will be appended to the current
|
||||
@@ -1653,7 +1653,7 @@ static char *_ast_xmldoc_build_seealso(struct ast_xml_node *node)
|
||||
}
|
||||
|
||||
if (!node || !ast_xml_node_get_children(node)) {
|
||||
/* we couldnt find a <see-also> node. */
|
||||
/* we couldn't find a <see-also> node. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1751,7 +1751,7 @@ static char *_ast_xmldoc_build_since(struct ast_xml_node *node)
|
||||
}
|
||||
|
||||
if (!node || !ast_xml_node_get_children(node)) {
|
||||
/* we couldnt find a <since> node. */
|
||||
/* we couldn't find a <since> node. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1885,7 +1885,7 @@ static int xmldoc_parse_enumlist(struct ast_xml_node *fixnode, const char *tabs,
|
||||
* \brief Parse an \<option\> node.
|
||||
*
|
||||
* \param fixnode An ast_xml pointer to the \<option\> node.
|
||||
* \param tabs A string to be appended at the begining of each line being added to the
|
||||
* \param tabs A string to be appended at the beginning of each line being added to the
|
||||
* buffer string.
|
||||
* \param buffer The output buffer.
|
||||
*
|
||||
@@ -1932,7 +1932,7 @@ static int xmldoc_parse_option(struct ast_xml_node *fixnode, const char *tabs, s
|
||||
* \brief Parse an \<optionlist\> element from the xml documentation.
|
||||
*
|
||||
* \param fixnode Pointer to the optionlist xml node.
|
||||
* \param tabs A string to be appended at the begining of each line being added to the
|
||||
* \param tabs A string to be appended at the beginning of each line being added to the
|
||||
* buffer string.
|
||||
* \param buffer Output buffer to put what is inside the optionlist tag.
|
||||
*/
|
||||
@@ -2337,7 +2337,7 @@ char *ast_xmldoc_build_synopsis(const char *type, const char *name, const char *
|
||||
|
||||
/*!
|
||||
* \internal
|
||||
* \brief Build the descripton for an item
|
||||
* \brief Build the description for an item
|
||||
*
|
||||
* \param node The description node to parse
|
||||
*
|
||||
|
Reference in New Issue
Block a user