[asterisk-commits] eliel: branch group/appdocsxml r149569 - /team/group/appdocsxml/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 15 09:31:17 CDT 2008
Author: eliel
Date: Wed Oct 15 09:31:16 2008
New Revision: 149569
URL: http://svn.digium.com/view/asterisk?view=rev&rev=149569
Log:
Cleanup the code (remove useless big IF blocks).
Modified:
team/group/appdocsxml/main/pbx.c
Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=149569&r1=149568&r2=149569
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Wed Oct 15 09:31:16 2008
@@ -3952,23 +3952,12 @@
ret = 1;
}
} else {
- /* for output style purpose, there is no other difference. */
- if (insideparameter) {
- if (xmldoc_parse_para(node, paramtabs, "\n", buffer) == 2) {
- count++;
- ret = 1;
- } else if (xmldoc_parse_specialtags(node, paramtabs, "\n", buffer) == 2) {
- count++;
- ret = 1;
- }
- } else {
- if (xmldoc_parse_para(node, " - ", "\n", buffer) == 2) {
- count++;
- ret = 1;
- } else if (xmldoc_parse_specialtags(node, " - ", "\n", buffer) == 2) {
- count++;
- ret = 1;
- }
+ if (xmldoc_parse_para(node, (insideparameter ? paramtabs : " - "), "\n", buffer) == 2) {
+ count++;
+ ret = 1;
+ } else if (xmldoc_parse_specialtags(node, (insideparameter ? paramtabs : " - "), "\n", buffer) == 2) {
+ count++;
+ ret = 1;
}
}
node = node->AST_XML_NEXT;
More information about the asterisk-commits
mailing list